Am 12.05.2014 22:05, schrieb Götz Reinicke - IT Koordinator: > Hi, > Am 24.04.14 21:23, schrieb Reindl Harald: >> >> >> Am 24.04.2014 19:37, schrieb Asai: >>> I'm not very experienced in building Source RPMs and we're in need of a >>> Dovecot RPM for version 2.2.12 for CentOS >>> 5. It seems that the ATRPMs repo maintained by Axel Thimm hasn't seen >>> much activity lately and the task of >>> updating a source RPM is more than I have time for as a busy developer who >>> does systems admin on the side. >>> >>> Could anybody recommend another repo where there would be the latest >>> Dovecot binaries? Or perhaps tell me of any >>> gotchas and catches which might arise if I go ahead and build 2.2.12 from >>> source over the RPM I currently have >>> installed (2.2.10)? >> >> you only need to replace the tarball and the version in the SPEC >> and rebuild the package - for monir updates you don't need anything >> else if upstream has no broken release strategy, dovecot's is fine >> >> i am building dovecot the last two years without any SPEC change >> except version and changelog - but you won't be happy with my >> stripped down SPEC following our infrastructure (no configs etc.) > > I downloaded the ATRPM specfile (http://dl.atrpms.net/all/dovecot.spec) > and the recent dovecot file and get a > > Fehler: Ungültige Quelle: > /root/rpmbuild/SOURCES/dovecot-2.1-defaultconfig.patch: Datei oder > Verzeichnis nicht gefunden > > when I do rpmbuild -ba dovecot.spec > > May be I'm heading into the total wrong direction, as I never did build > a rpm before... > > May be someone can point me into the right direction?
where is that file? you should not only download the SPEC * download the src.rpm * rpm -ivh package.src.rpm *as user* * this will unpack the tarball, SPEC and patches to the correct locations * normally you have ~/rpmbuild with subfolders SOURCES, SPECS, RPMS here you go: http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment some patches may be needed and re-define distribution specific things some pacthes *may be* obsolete and no longer match -> remove them from the SPEC and you can build your own src.rpm with "rpmbuild -bs ~/rpmbuild/SPECS/dovecot.spec" which contains all the patches and spec-file changes you recently used
signature.asc
Description: OpenPGP digital signature
