Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building proper source rpms? #17

Closed
jordansissel opened this issue Apr 22, 2011 · 7 comments
Closed

Building proper source rpms? #17

jordansissel opened this issue Apr 22, 2011 · 7 comments

Comments

@jordansissel
Copy link
Owner

From BayLISA last night -

Some folks really like srpms. It would be awesome if fpm could produce these.

This will likely require the 'fpm build recipe' stuff lusis and I have been discussing, where you have a tool similar to freebsd ports, gentoo ebuild, or homebrew, that knows how to download, version, and build things (so we can put them in the rpm spec).

@jordansissel
Copy link
Owner Author

We'll try to solve this during the devopsdays fpm hackathon - https://github.com/jordansissel/fpm/wiki/Ideas-for-Hackfest

@jordansissel
Copy link
Owner Author

I gave this some thought, and I think building srpms is out of scope for fpm.

Let's say you want python 3 on centos 5. You download, configure, make, make install, fpm.

You should put all of those steps into a reusable script. You should share that script. Building an SRPM? Not as awesome. Not as sharable. not as readable.

Producing a source rpm requires knowledge currently far outside of what fpm does (the download, configure, make, etc steps).

Closing WONTFIX

@7AC
Copy link

7AC commented Jan 18, 2016

Shouldn't the %{SOURCERPM} attribute be empty then?

@jordansissel
Copy link
Owner Author

@7AC in the built rpm? Hmm.. I suppose. I never looked at that tag/macro so I wasn't aware of it. Can you show me what you mean?

@7AC
Copy link

7AC commented Jan 18, 2016

The SOURCERPM tag is set to something that doesn't exist. It would be great to generate the SRPM as well, but without it knowing there isn't one would help work around it in my scripts.

> rpm -qp --qf='%{SOURCERPM}\n' built-with-fpm.i686.rpm 
built-with-fpm-1.0.0-1.src.rpm
> yumdownloader --source built-with-fpm
No Match for argument built-with-fpm

@jordansissel
Copy link
Owner Author

Interesting. I don't know how to remove that tag/field from the rpm, but I agree with you that fpm should remove that information, if possible.

@bby-bishopclark
Copy link

You should put all of those steps into a reusable script. You should share that script. Building an SRPM? Not as awesome. Not as sharable. not as readable.

The SRPMs you've seen don't have the SPEC file encapsulated in the archive in well-preserved state that's trivially easily to parse? The ability to share an SRPM (or archive it) seems to have been pretty important, and I've done just that - repeated a build and shared a build script - both with new ones and one more than a decade old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants