[pkg-opensc-commit] [pkcs11-helper] 12/253: Update rpm spec file
Eric Dorland
eric at moszumanska.debian.org
Fri Jan 6 23:38:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository pkcs11-helper.
commit d4fb0cdf8733eec8f208c653d2dc6df435c4b08b
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date: Mon Nov 27 19:44:11 2006 +0000
Update rpm spec file
---
Makefile.am | 2 +-
pkcs11-helper.spec.in | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index c587025..2c34ece 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -57,5 +57,5 @@ SUBDIRS=man include lib m4dir doc tests
dist_doc_DATA=README COPYING.GPL COPYING.BSD COPYING
-EXTRA_DIST=config-w32-vc.h
+EXTRA_DIST=config-w32-vc.h pkcs11-helper.spec
diff --git a/pkcs11-helper.spec.in b/pkcs11-helper.spec.in
index 9b3dcfa..ce3e7a8 100644
--- a/pkcs11-helper.spec.in
+++ b/pkcs11-helper.spec.in
@@ -2,6 +2,7 @@
%define version @VERSION@
%define release 2
%define prefix /usr
+%define with_doc 0
Summary: pkcs11-helper is a helper library for the use with smart cards and the PKCS#11 API
Name: %{name}
@@ -14,7 +15,9 @@ Group: Applications/System
Url: http://www.opensc-project.org
Source: http://www.opensc-project.org/%{name}/%{name}-%{version}.tar.bz2
BuildRoot: /var/tmp/%{name}-%{version}-%{release}
+%if %{?with_doc:1}0
BuildRequires: doxygen
+%endif
BuildRequires: openssl-devel >= 0.9.7a
Requires: openssl >= 0.9.7a
Provides: %{name} = %{version}
@@ -37,7 +40,9 @@ pkcs11-helper development files.
%build
%configure -q \
--disable-rpath \
+%if %{?with_doc}
--enable-doc
+%endif
# --without-crypto-engine-openssl \
# --without-crypto-engine-gnutls \
@@ -70,12 +75,13 @@ if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
%{_includedir}/*
#%{_libdir}/pkgconfig/*
%{_datadir}/aclocal/*
+%if %{?with_doc}
%{_docdir}/%{name}-%{version}/api/*
-
+%endif
%changelog
* Mon Nov 27 2006 Eddy Nigg <eddy_nigg at startcom.org>
-- Fix documentation.
+- Fix documentation. Make doc build optional.
* Sun Nov 26 2006 Eddy Nigg <eddy_nigg at startcom.org>
- Initial build for StartCom Linux 5.0.x
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git
More information about the pkg-opensc-commit
mailing list