packit / specfile

A library for parsing and manipulating RPM spec files
MIT License
24 stars 15 forks source link

Instantiate Specfile with a string #248

Open danishprakash opened 1 year ago

danishprakash commented 1 year ago

Description

Currently, it's possible to do this via a file path. In my use case, all I'm doing is fetching the specfile for multiple packages via OSC API and then trying to parse them using Specfile. I'm currently creating a temp file and then passing it on to the package.

Is this something that can be supported or have there been any discussions in the past about this that ruled it out?

Benefit

No response

Importance

No response

Workaround

Participation

nforro commented 1 year ago

This should definitely be possible, let me think about implementation.

danishprakash commented 1 year ago

That's great, let me know If I can help with this.

lachmanfrantisek commented 3 months ago

Still relevant. @danishprakash by any chance, would you be interested in contributing this? (We can definitely help.)