From 8ebb47aa64402f40ccd861c46aee82fbb0447cc5 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 18 May 2011 14:44:42 +0300 Subject: [PATCH] Removed --enable-doc configure option Instead of building and then discarding the doc files, disable the configure option. While at it, also fixed 'fedpkg install --short-circuit' by removing /usr/share/doc/opensc instead of renaming it in the %install section. --- opensc.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opensc.spec b/opensc.spec index 5fb2e37..c72bf41 100644 --- a/opensc.spec +++ b/opensc.spec @@ -40,14 +40,12 @@ sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|' etc/opensc.conf.in %configure --disable-static \ --disable-assert \ --enable-pcsc \ - --enable-doc \ --with-pcsc-provider=libpcsclite.so.1 make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -rm -rf _docs make install DESTDIR=$RPM_BUILD_ROOT install -Dpm 644 etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf # use NEWS file timestamp as reference for configuration file @@ -55,7 +53,7 @@ touch -r NEWS $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" | xargs rm -mv -T $RPM_BUILD_ROOT%{_datadir}/doc/%{name} docdir +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/opensc # Upstream considers libopensc API internal and no longer ships # public headers and pkgconfig files.