[pkg-opensc-commit] [pkcs11-helper] 01/05: distro: spec: cleanups

Eric Dorland eric at moszumanska.debian.org
Sun Jun 11 16:23:42 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 bdbce52e3160fb426b38bb484bb3543caf997e2f
Author: Alon Bar-Lev <alon.barlev at amdocs.com>
Date:   Sat Jan 14 23:24:15 2017 +0200

    distro: spec: cleanups
---
 distro/rpm/pkcs11-helper.spec.in | 55 +++++++++++++++++++---------------------
 1 file changed, 26 insertions(+), 29 deletions(-)

diff --git a/distro/rpm/pkcs11-helper.spec.in b/distro/rpm/pkcs11-helper.spec.in
index 030fa17..61f3462 100644
--- a/distro/rpm/pkcs11-helper.spec.in
+++ b/distro/rpm/pkcs11-helper.spec.in
@@ -6,29 +6,27 @@
 %define		release		2
 %define		prefix		/usr
 
-Summary:	pkcs11-helper is a helper library for the use with smart cards and the PKCS#11 API
+Summary:	A helper library for the use with smart cards and the PKCS#11 API
 Name:		%{name}
 Version:	%{version}
 Release:	%{release}
-License:	GPL-2/BSD
-Vendor:		The OpenSC Project, http://www.opensc-project.org
+License:	GPLv2 or BSD
+Vendor:		The OpenSC Project, https://github.com/OpenSC
 Packager:	Alon Bar-Lev <alon.barlev at gmail.com>
 Group:		System/Crypto
-Url:		http://www.opensc-project.org/pkcs11-helper
-Source:		http://www.opensc-project.org/files/pkcs11-helper/%{name}-%{version}.tar.bz2
-BuildRoot:	/var/tmp/%{name}-%{version}-%{release}
+Url:		https://github.com/OpenSC/pkcs11-helper
+Source:		https://github.com/OpenSC/pkcs11-helper/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
 %if %{with doc}
 BuildRequires:	doxygen
 %endif
 BuildRequires:	openssl-devel >= 0.9.7a
 Requires:	openssl >= 0.9.7a
-Provides:	%{name} = %{version}
 %description
-pkcs11-helper allows using multiple PKCS#11 providers at the same 
-time, selecting keys by id, label or certificate subject, handling 
-card removal and card insert events, handling card re-insert to a 
-different slot, supporting session expiration serialization and much 
-more, all using a simple API.
+The pkcs11-helper library allows using multiple PKCS#11 providers at
+the same  time, selecting keys by id, label or certificate subject,
+handling  card removal and card insert events, handling card re-insert
+to a  different slot, supporting session expiration serialization and
+much more, all using a simple API.
 
 %package devel
 Summary:	pkcs11-helper development files
@@ -39,46 +37,45 @@ Requires:	pkgconfig
 pkcs11-helper development files.
 
 %prep
-rm -rf "${RPM_BUILD_ROOT}"
 %setup -q
 
 %build
 %configure -q \
-	--disable-rpath \
-%if %{with doc}
-	--enable-doc
-%endif
-
-make %{?_smp_mflags}
+	%{?with_doc:--enable-doc} \
+	%{nil}
+%{__make} %{?_smp_mflags}
 
 %install
-rm -rf "${RPM_BUILD_ROOT}"
 %makeinstall 
 
-%clean
-rm -rf "${RPM_BUILD_ROOT}"
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root)
-%{_libdir}/libpkcs11-helper.*
-%{_mandir}/*
 %{_docdir}/%{name}/COPYING*
 %{_docdir}/%{name}/README
+%{_libdir}/libpkcs11-helper.so.*
+%{_mandir}/*/*
 
 %files devel
-%defattr(-,root,root,-)
+%{_datadir}/aclocal/*
 %{_includedir}/*
+%{_libdir}/libpkcs11-helper.a
+%{_libdir}/libpkcs11-helper.la
+%{_libdir}/libpkcs11-helper.so
 %{_libdir}/pkgconfig/*
-%{_datadir}/aclocal/*
 %if %{with doc}
 %{_docdir}/%{name}/api/*
 %endif
 
 %changelog
-* Fri Nov 11 2011 Aon Bar-Lev <alon.barlev at gmail.com>
+* Sat Jan 14 2017 Alon Bar-Lev <alon.barlev at gmail.com>
+- Cleanups.
+
+* Fri Nov 11 2011 Alon Bar-Lev <alon.barlev at gmail.com>
 - Cleanups.
 
-* Mon Feb 15 2007 Aon Bar-Lev <alon.barlev at gmail.com>
+* Thu Feb 15 2007 Alon Bar-Lev <alon.barlev at gmail.com>
 - Modify docs location.
 
 * Mon Jan 15 2007 Eddy Nigg <eddy_nigg at startcom.org>

-- 
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