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

Re: how to become a co-maintainer for an _existing_ RPM pkg



On Sun, 13 Sep 2009 19:32:23 +0200, Stefan wrote:

> https://bugzilla.redhat.com/show_bug.cgi?id=522933

A couple of relevant guideline sections that comment on issues
found quickly in the three spec files:

https://fedoraproject.org/wiki/Packaging:Guidelines#Explicit_Requires
https://fedoraproject.org/wiki/Packaging/Guidelines#Shared_Libraries
https://fedoraproject.org/wiki/Packaging/Guidelines#StaticLibraries

> %post
> /sbin/ldconfig
> ...

> %postun
> /sbin/ldconfig
> ...

With shell scriptlets, there is no automatic dependency on tools executed
within the script body. You only get an automatic dep on /bin/sh. Hence
more accurate would be to add

Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

Arguably, that one is part of glibc and should be available. It's just
easy to forget such dependencies for other tools executed in RPM scriptlets.
For example, /usr/bin/xmlcatalog in your %post/postun, even if the
dependency on libxml2 is automatic via the libxml2 library SONAME
(and the tool is included in that package currently).

> %doc %{_mandir}/man1/pbbcmd.1.gz
> %doc %{_mandir}/man1/pbbuttonsd.1.gz
> %doc %{_mandir}/man5/pbbuttonsd.cnf.5.gz

%doc is automatic for files below %_mandir.
Using "*" instead of ".gz" is more convenient as the compression
technique applied by rpmbuild may change.


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