Hi, For software development, projects are built through makefile. After building, I can run binary program. rpm is more convenient. Is there some tool that can build rpm? Thanks! Regards Andrew
On Fri, 29 Jul 2016 12:12:51 +0800 (CST) qw wrote:> For software development, projects are built through makefile. After > building, I can run binary program. rpm is more convenient. Is there some > tool that can build rpm?There are numerous articles that can be found through google that describe the process. I personally find it easiest to find a rpm with a structure that's similar to what I want to create, and use that spec file as a pattern. You will want to install rpmdevtools on your computer so you can build and test rpms as a user instead of root. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
On Fri, Jul 29, 2016 at 4:12 PM, qw <applemax82 at 163.com> wrote:> Hi, > > For software development, projects are built through makefile. After > building, I can run binary program. rpm is more convenient. Is there some > tool that can build rpm? > > Thanks! > > Regards > > Andrew >Hi Andrew, if you are expecting a program or tool that can automatically create an RPM for you then no but if you understand processes like ./configure, make and make install then in a lot of cases creating your own rpms is reasonably easy. As a start check out things like rpmbuild and mock https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment It can also be useful to check out source RPMS to see how other rpms have been created. https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment> _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
On Fri, Jul 29, 2016 at 4:25 PM, Clint Dilks <clintd at waikato.ac.nz> wrote:> > > On Fri, Jul 29, 2016 at 4:12 PM, qw <applemax82 at 163.com> wrote: > >> Hi, >> >> For software development, projects are built through makefile. After >> building, I can run binary program. rpm is more convenient. Is there some >> tool that can build rpm? >> >> Thanks! >> >> Regards >> >> Andrew >> > > Hi Andrew, if you are expecting a program or tool that can automatically > create an RPM for you then no but if you understand processes like > ./configure, make and make install then in a lot of cases creating your own > rpms is reasonably easy. As a start check out things like rpmbuild and > mock https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment > > It can also be useful to check out source RPMS to see how other rpms have > been created. https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment > > > > Sorry second link was supposed to be > https://wiki.centos.org/HowTos/RebuildSRPM > > > > > > > > > > > > > > > > >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos >> > >
On 29/07/16 16:12, qw wrote:> For software development, projects are built through makefile. After > building, I can run binary program. rpm is more convenient. Is there > some tool that can build rpm?You need to learn how to write a spec file, as another person suggested, grabbign one from a similar rpm to use as a template makes this much easier. Other than that I highly recommend mock, which you can get from the EPEL repository. Google for "fedora mock" for more info about mock. Peter
On 29 July 2016 at 05:12, qw <applemax82 at 163.com> wrote:> Hi, > > For software development, projects are built through makefile. After > building, I can run binary program. rpm is more convenient. Is there some > tool that can build rpm? > > Thanks! > > >Rather than googling for articles, which unless you have the experience already to filter the chaff from the wheat, here's a link the an article I wrote a little while back. https://www.hogarthuk.com/?q=node/11 It'll take you through building a minimal package, fedora guidelines (which even for personal/internal stuff can help keep clean easier to maintain spec files), usage of mock for clean builds and repo creation.
On 07/29/2016 06:12 AM, qw wrote:> Hi, > > For software development, projects are built through makefile. After building, I can run binary program. rpm is more convenient. Is there some tool that can build rpm? > > Thanks! > > Regards > > Andrew > _______________________________________________Detailed guidelines to create a RPM: https://fedoraproject.org/wiki/How_to_create_an_RPM_package -- --- Antonio Trande mailto: sagitter 'at' fedoraproject 'dot' org http://fedoraos.wordpress.com/ https://fedoraproject.org/wiki/User:Sagitter GPG Key: 0x6CE6D08A Check on https://keys.fedoraproject.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20160729/fcaed710/attachment-0001.sig>
On Fri, Jul 29, 2016 at 09:03:06AM +0100, James Hogarth wrote:> Rather than googling for articles, which unless you have the experience > already to filter the chaff from the wheat, here's a link the an article I > wrote a little while back. > > https://www.hogarthuk.com/?q=node/11 > > It'll take you through building a minimal package, fedora guidelines (which > even for personal/internal stuff can help keep clean easier to maintain > spec files), usage of mock for clean builds and repo creation.In addition to the above's excellent instructions, I'd also like to point out these: http://rpm-guide.readthedocs.io/en/latest/ -- Jonathan Billings <billings at negate.org>