I want to relate my experience in packaging the latest RH RPM for CentOS 7:
I first checked out the package sources from Fedora. This is the spec file
and patches but not the SA tarballs. I already have a regular user for
building packages and have run rpmdev-setuptree to create a packaging
environment. The spec file uses the gpgverify macro so I needed to install
the epel-rpm-macros package. My .rpmacros contains this:
%_topdir %(echo $HOME)/rpmbuild
%dist kp
(I use my initials for the dist tag to remember which packages on my system
are ones I built myself.)
I cd to ~/Download/Fedora and run this:
$ git clone https://src.fedoraproject.org/rpms/spamassassin.git
I cd into the new working directory and fetch the external sources from the
Apache site that are specified in the Fedora Rawhide spec file:
$ rpmbuild --undefine=_disable_source_fetch --define '_sourcedir .' -ba
spamassassin.spec
Finally, I build the package with this:
$ rpmbuild --define "_sourcedir ${PWD}" -ba spamassassin.spec
My next step will be to tar up my old config from /etc/mail/spamassassin
/etc/sysconfig/spamassassin and then install the new package using "yum
update spamassassin-4.0.0-7kp.x86_64.rpm".
I first checked out the package sources from Fedora. This is the spec file
and patches but not the SA tarballs. I already have a regular user for
building packages and have run rpmdev-setuptree to create a packaging
environment. The spec file uses the gpgverify macro so I needed to install
the epel-rpm-macros package. My .rpmacros contains this:
%_topdir %(echo $HOME)/rpmbuild
%dist kp
(I use my initials for the dist tag to remember which packages on my system
are ones I built myself.)
I cd to ~/Download/Fedora and run this:
$ git clone https://src.fedoraproject.org/rpms/spamassassin.git
I cd into the new working directory and fetch the external sources from the
Apache site that are specified in the Fedora Rawhide spec file:
$ rpmbuild --undefine=_disable_source_fetch --define '_sourcedir .' -ba
spamassassin.spec
Finally, I build the package with this:
$ rpmbuild --define "_sourcedir ${PWD}" -ba spamassassin.spec
My next step will be to tar up my old config from /etc/mail/spamassassin
/etc/sysconfig/spamassassin and then install the new package using "yum
update spamassassin-4.0.0-7kp.x86_64.rpm".