split documentation to base and devel subpackages
This commit is contained in:
parent
9ba3f2e8d0
commit
2497fc4bd8
11
flac.spec
11
flac.spec
@ -55,7 +55,12 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
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
|
rm %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
@ -67,14 +72,14 @@ make -C test check FLAC__TEST_LEVEL=0 &> /dev/null
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS COPYING* README
|
%doc AUTHORS COPYING* README flac-doc/*
|
||||||
%{_bindir}/flac
|
%{_bindir}/flac
|
||||||
%{_bindir}/metaflac
|
%{_bindir}/metaflac
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc doc/html
|
%doc flac-doc-devel/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
|
Loading…
Reference in New Issue
Block a user