From 35f4f194471cf2038b60b9c2ed7873857fed2354 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2016 06:03:29 +0000 Subject: import opensc-0.14.0-2.el7 --- diff --git a/SOURCES/opensc-export-symbols.patch b/SOURCES/opensc-export-symbols.patch new file mode 100644 index 0000000..baa1e21 --- /dev/null +++ b/SOURCES/opensc-export-symbols.patch @@ -0,0 +1,75 @@ +diff --git a/src/pkcs11/pkcs11-spy.exports b/src/pkcs11/pkcs11-spy.exports +index 562ecea..9b9b01c 100644 +--- a/src/pkcs11/pkcs11-spy.exports ++++ b/src/pkcs11/pkcs11-spy.exports +@@ -1 +1,70 @@ ++C_Initialize ++C_Finalize ++C_GetInfo + C_GetFunctionList ++C_GetSlotList ++C_GetSlotInfo ++C_GetTokenInfo ++C_GetMechanismList ++C_GetMechanismInfo ++C_InitToken ++C_InitPIN ++C_SetPIN ++C_OpenSession ++C_CloseSession ++C_CloseAllSessions ++C_GetSessionInfo ++C_GetOperationState ++C_SetOperationState ++C_Login ++C_Logout ++C_CreateObject ++C_CopyObject ++C_DestroyObject ++C_GetObjectSize ++C_GetAttributeValue ++C_SetAttributeValue ++C_FindObjectsInit ++C_FindObjects ++C_FindObjectsFinal ++C_EncryptInit ++C_Encrypt ++C_EncryptUpdate ++C_EncryptFinal ++C_DecryptInit ++C_Decrypt ++C_DecryptUpdate ++C_DecryptFinal ++C_DigestInit ++C_Digest ++C_DigestUpdate ++C_DigestKey ++C_DigestFinal ++C_SignInit ++C_Sign ++C_SignUpdate ++C_SignFinal ++C_SignRecoverInit ++C_SignRecover ++C_VerifyInit ++C_Verify ++C_VerifyUpdate ++C_VerifyFinal ++C_VerifyRecoverInit ++C_VerifyRecover ++C_DigestEncryptUpdate ++C_DecryptDigestUpdate ++C_SignEncryptUpdate ++C_DecryptVerifyUpdate ++C_GenerateKey ++C_GenerateKeyPair ++C_WrapKey ++C_UnwrapKey ++C_DeriveKey ++C_SeedRandom ++C_GenerateRandom ++C_GetFunctionStatus ++C_CancelFunction ++C_WaitForSlotEvent ++C_Initialize ++C_Finalize diff --git a/SPECS/opensc.spec b/SPECS/opensc.spec index 0c97bb5..ed16966 100644 --- a/SPECS/opensc.spec +++ b/SPECS/opensc.spec @@ -1,6 +1,6 @@ Name: opensc Version: 0.14.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Smart card library and applications Group: System Environment/Libraries @@ -8,6 +8,7 @@ License: LGPLv2+ URL: https://github.com/OpenSC/OpenSC/wiki Source0: http://downloads.sourceforge.net/project/opensc/OpenSC/opensc-%{version}/%{name}-%{version}.tar.gz Source1: opensc.module +Patch0: opensc-export-symbols.patch BuildRequires: pcsc-lite-devel BuildRequires: readline-devel @@ -32,6 +33,8 @@ every software/card that does so, too. %prep %setup -q +%patch0 -p1 -b .spy-symbols + sed -i -e 's/opensc.conf/opensc-%{_arch}.conf/g' src/libopensc/Makefile.in sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure # lib64 rpaths cp -p src/pkcs15init/README ./README.pkcs15init @@ -122,6 +125,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libsmm-local.so %changelog +* Thu Feb 25 2016 Nikos Mavrogiannopoulos 0.14.0-2 +- Export PKCS#11 symbols from spy library (#1283305) + * Thu Apr 23 2015 Nikos Mavrogiannopoulos 0.14.0-1 - Updated to opensc 0.14.0