diff --git a/flac.spec b/flac.spec index 3869608..485bdaf 100644 --- a/flac.spec +++ b/flac.spec @@ -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/*