Creating an rpm from scratch

Reindl Harald h.reindl at thelounge.net
Thu Mar 14 19:51:15 UTC 2013



Am 14.03.2013 20:43, schrieb Bill Davidsen:
> I am happy to say the last rpm I had to create was back during 2.5 development testing days. Now I would find it
> convenient to roll another, and I'm hoping there's by now a better tools to help create an rpm from scratch,
> something more intuitive than the man page in one window and vi in the other.
> 
> Is there?

* rpmbuild
* the sources
* a SPEC file

https://www.google.at/search?q=fdora+rpmbuild
http://fedoraproject.org/wiki/How_to_create_an_RPM_package

* read the prepare steps
* taje a existig src.rpm
* unpack it
* try to understand it
* rpmbuild -bb specfile.spec
* wise: rpmbuild -bs specfile.spec to have your won ".src.rpm"
  whiche can be installed with "rpm -ivh" on any hosts and any
  users rpmbuild-tree to reuse it and contains any sources, patches
  and the SPEC

DO NOT BUILD RPMS AS ROOT

i am dealing with this since years each day for override
fedora packages or build unpacked things because my personal
rule is "anything for which i can not build my own RPM
is strictly not allowed on any of my machines"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130314/d3cf4476/attachment.sig>


More information about the users mailing list