From: Elan Ruusamäe Date: Thu, 26 Sep 2013 05:10:27 +0000 (+0300) Subject: move html docs to -devel, make install re-entrant X-Git-Tag: auto/th/flac-1.3.0-2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=3ee523f413f30ab814a88e5d2a150dc081b40260;p=packages%2Fflac.git move html docs to -devel, make install re-entrant --- diff --git a/flac.spec b/flac.spec index a49ad94..b3f163e 100644 --- a/flac.spec +++ b/flac.spec @@ -7,7 +7,7 @@ Summary: Free Lossless Audio Codec Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio Name: flac Version: 1.3.0 -Release: 1 +Release: 2 License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins) Group: Libraries Source0: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz @@ -131,14 +131,18 @@ Wtyczka dla XMMS umożliwiająca odtwarzanie plików w formacie FLAC. %{__make} +rm -rf doc-html +cp -a doc/html doc-html +# no makefiles in doc dirs +%{__rm} doc-html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*} + %install rm -rf $RPM_BUILD_ROOT - %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -# no makefiles in doc dirs -%{__rm} doc/html/{Makefile*,images/Makefile*,images/hw/Makefile*,ru/Makefile*} +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} + %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la %if %{with static_libs} %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.a @@ -155,8 +159,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS COPYING.Xiph README doc/html/{*.html,images} -%lang(ru) %doc doc/html/ru +%doc AUTHORS COPYING.Xiph README %attr(755,root,root) %{_bindir}/flac %attr(755,root,root) %{_bindir}/metaflac %attr(755,root,root) %{_libdir}/libFLAC.so.*.*.* @@ -166,6 +169,8 @@ rm -rf $RPM_BUILD_ROOT %files devel %defattr(644,root,root,755) +%doc doc-html/{*.html,images} +%lang(ru) %doc doc-html/ru %attr(755,root,root) %{_libdir}/libFLAC.so %{_libdir}/libFLAC.la %{_includedir}/FLAC