Re: tutorial or guide to write RPM Spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Sep 23, 2012 at 8:20 AM, Joseph L. Casale
<jcasale@xxxxxxxxxxxxxxxxx> wrote:
>>Are there tutorials available in official CentOS documentation for
>>writing RPM Spec file
>
> See this page: http://fedoraproject.org/wiki/How_to_create_an_RPM_package
>
> There are a few pointers you should get used to and after a few you'll be fine.
>
> Don't build as root, do something like this:
>
> yum install rpm-build redhat-rpm-config rpmdevtools
> useradd rpmbuilder
> su - rpmbuilder
> echo "timestamping = on" >.wgetrc
> rpmdev-setuptree
>
> The vim-common package also provides a template spec, but I would suggest
> downloading some srpm's and extracting them and looking at the specs they
> have.
>
> wget 'http://vault.centos.org/6.3/os/Source/SPackages/postfix-2.6.6-2.2.el6_1.src.rpm'
> rpm2cpio postfix-2.6.6-2.2.el6_1.src.rpm |cpio -dim
> vi postfix.spec
>
> Look at a few, google the cmds you don't understand...
> jlc

Thanks Joseph for the reply with lucid explanation. really appreciated
and will definitely post questions to this mailing list if i get into
any issues.

Regards

Kaushal

Kaushal
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux