From 5a099434eb92b2d307677ddc473c697c99339241 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Mar 2013 15:19:59 +0100 Subject: [PATCH] Use standard p11-kit module name and location * p11-kit now wants modules to use .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. --- opensc-module => opensc.module | 0 opensc.spec | 12 ++++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) rename opensc-module => opensc.module (100%) diff --git a/opensc-module b/opensc.module similarity index 100% rename from opensc-module rename to opensc.module diff --git a/opensc.spec b/opensc.spec index 0e644bd..36e129b 100644 --- a/opensc.spec +++ b/opensc.spec @@ -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 - 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 - 0.13.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild