Use standard p11-kit module name and location

* p11-kit now wants modules to use <name>.module for module
   config files
 * Put the module config file in the non-admin editable
   location supported by p11-kit 0.16.0 and later.
 * Administrators can still override any setting they want
   by creating an opensc.module file in /etc/pkcs11/modules
   and adding only those settings they wish to change.
This commit is contained in:
Stef Walter 2013-03-08 15:19:59 +01:00 committed by Tomas Mraz
parent a67af1ee3c
commit 5a099434eb
2 changed files with 8 additions and 4 deletions

View File

@ -1,13 +1,13 @@
Name: opensc
Version: 0.13.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Smart card library and applications
Group: System Environment/Libraries
License: LGPLv2+
URL: https://www.opensc-project.org/
Source0: http://downloads.sourceforge.net/project/opensc/OpenSC/opensc-%{version}/%{name}-%{version}.tar.gz
Source1: opensc-module
Source1: opensc.module
# Upstream patch for fixing pkcs15 cert length calculation
Patch0: 0001-pkcs15-regression-in-e35febe-compute-cert-length.patch
@ -53,7 +53,7 @@ make %{?_smp_mflags} V=1
%install
make install DESTDIR=$RPM_BUILD_ROOT
install -Dpm 644 etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/opensc-module
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/share/p11-kit/opensc.module
# use NEWS file timestamp as reference for configuration file
touch -r NEWS $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf
@ -76,7 +76,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libopensc.so
%defattr(-,root,root,-)
%doc COPYING NEWS README*
%config(noreplace) %{_sysconfdir}/opensc.conf
%config(noreplace) %{_sysconfdir}/pkcs11/opensc-module
%config(noreplace) %{_datadir}/share/p11-kit/opensc.module
%{_bindir}/cardos-tool
%{_bindir}/cryptoflex-tool
%{_bindir}/eidenv
@ -118,6 +118,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libopensc.so
%changelog
* Fri Mar 08 2013 Stef Walter <stefw@redhat.com> - 0.13.0-4
- Use the standard name format for p11-kit module configs
- Put the p11-kit module config is the system location
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild