split documentation to base and devel subpackages

This commit is contained in:
Miroslav Lichvar 2012-12-04 14:19:01 +01:00
parent 9ba3f2e8d0
commit 2497fc4bd8

View File

@ -55,7 +55,12 @@ make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
find doc/ -name "Makefile*" -exec rm -f {} \;
# split documentation
mv %{buildroot}%{_docdir}/flac* ./flac-doc
mkdir -p flac-doc-devel
mv flac-doc{/html/api,-devel}
rm flac-doc/FLAC.tag
rm %{buildroot}%{_libdir}/*.la
@ -67,14 +72,14 @@ make -C test check FLAC__TEST_LEVEL=0 &> /dev/null
%postun -p /sbin/ldconfig
%files
%doc AUTHORS COPYING* README
%doc AUTHORS COPYING* README flac-doc/*
%{_bindir}/flac
%{_bindir}/metaflac
%{_libdir}/*.so.*
%{_mandir}/man1/*
%files devel
%doc doc/html
%doc flac-doc-devel/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*