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.
This commit is contained in:
Kalev Lember 2011-05-18 14:44:42 +03:00
parent 0cbb56e6b1
commit 8ebb47aa64

View File

@ -40,14 +40,12 @@ sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|' etc/opensc.conf.in
%configure --disable-static \ %configure --disable-static \
--disable-assert \ --disable-assert \
--enable-pcsc \ --enable-pcsc \
--enable-doc \
--with-pcsc-provider=libpcsclite.so.1 --with-pcsc-provider=libpcsclite.so.1
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
rm -rf _docs
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
install -Dpm 644 etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf install -Dpm 644 etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf
# use NEWS file timestamp as reference for configuration file # 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 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 # Upstream considers libopensc API internal and no longer ships
# public headers and pkgconfig files. # public headers and pkgconfig files.