[Fedora-packaging] Question about File listeng in the spec file

Jussi Lehtola jussilehtola at fedoraproject.org
Tue Feb 22 00:36:26 UTC 2011


On Mon, 21 Feb 2011 21:22:25 -0300
Sergio Belkin <sebelk at gmail.com> wrote:

> 2011/2/21 Jussi Lehtola <jussilehtola at fedoraproject.org>:
> > On Mon, 21 Feb 2011 18:46:02 -0300
> > Sergio Belkin <sebelk at gmail.com> wrote:
> >> At
> >> http://fedoraproject.org/wiki/Packaging/ReviewGuidelines#Package_Review_Process
> >> it states
> >>
> >> "A Fedora package must not list a file more than once in the spec
> >> file's %files listings. (Notable exception: license texts in
> >> specific situations)."
> >>
> >> But what about a subpackage "static" (library)? What if there are
> >> some basic documentation files common to both non-static and static
> >> packages?
> >
> > Packaging static libraries is a bit unusual in Fedora, since it is
> > better to link things dynamically; only few packages provide static
> > libraries.
> 
> Thanks Jussi, So, definitely Can I disable the static subpackage with
> no feeling of remorse :) ?

Yes - you can either disable the build of the static library altogether
(if the program uses autotools, adding --disable-static to the
configure flags should work), or remove it at the end of the %install
phase with
 rm %{buildroot}%{_libdir}/*.a
-- 
Jussi Lehtola
Fedora Project Contributor
jussilehtola at fedoraproject.org


More information about the packaging mailing list