From 739d881cbace2e212c794bc14287c16c9a9eb087 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 4 Dec 2012 14:43:11 +0100 Subject: [PATCH] create libs subpackage --- flac.spec | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/flac.spec b/flac.spec index 485bdaf..8413da9 100644 --- a/flac.spec +++ b/flac.spec @@ -13,6 +13,8 @@ Source0: %{name}-%{gitdate}git%{gitrev}.tar.xz #Source: http://prdownloads.sourceforge.net/flac/flac-%{version}.tar.gz URL: http://flac.sourceforge.net/ +Requires: %{name}-libs = %{version}-%{release} + BuildRequires: libogg-devel BuildRequires: automake autoconf libtool gettext-devel doxygen %ifarch %{ix86} @@ -28,10 +30,26 @@ flac, a command-line program to encode and decode FLAC files, metaflac, a command-line metadata editor for FLAC files and input plugins for various music players. +This package contains the command-line tools and documentation. + +%package libs +Summary: Libraries for the Free Lossless Audio Codec +Group: System Environment/Libraries + +%description libs +FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC +is similar to Ogg Vorbis, but lossless. The FLAC project consists of +the stream format, reference encoders and decoders in library form, +flac, a command-line program to encode and decode FLAC files, metaflac, +a command-line metadata editor for FLAC files and input plugins for +various music players. + +This package contains the FLAC libraries. + %package devel Summary: Development libraries and header files from FLAC Group: Development/Libraries -Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} Requires: pkgconfig %description devel @@ -67,17 +85,20 @@ rm %{buildroot}%{_libdir}/*.la %check make -C test check FLAC__TEST_LEVEL=0 &> /dev/null -%post -p /sbin/ldconfig +%post libs -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig %files -%doc AUTHORS COPYING* README flac-doc/* +%doc flac-doc/* %{_bindir}/flac %{_bindir}/metaflac -%{_libdir}/*.so.* %{_mandir}/man1/* +%files libs +%doc AUTHORS COPYING* README +%{_libdir}/*.so.* + %files devel %doc flac-doc-devel/* %{_includedir}/*