[mingw-opensc: 18/24] Update to 0.12.1

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 16:20:27 UTC 2012


commit 0673e06fdd10b948509e9e6be8b34f0ee1347966
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Wed May 18 22:36:17 2011 +0300

    Update to 0.12.1
    
    - Spec clean up; removed old cruft not needed in current Fedora releases
    - Updated description

 .gitignore          |    1 +
 mingw32-opensc.spec |   62 ++++++++++++++++----------------------------------
 sources             |    2 +-
 3 files changed, 22 insertions(+), 43 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 993cbe9..2ce2a10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 opensc-0.11.13.tar.gz
 /opensc-0.12.0.tar.gz
+/opensc-0.12.1.tar.gz
diff --git a/mingw32-opensc.spec b/mingw32-opensc.spec
index 85b1e0e..c1b3096 100644
--- a/mingw32-opensc.spec
+++ b/mingw32-opensc.spec
@@ -6,19 +6,18 @@
 %define __debug_install_post %{_mingw32_debug_install_post}
 
 Name:           mingw32-opensc
-Version:        0.12.0
-Release:        2%{?dist}
+Version:        0.12.1
+Release:        1%{?dist}
 Summary:        MingGW Windows OpenSC library
 
 Group:          Development/Libraries
 License:        LGPLv2+
 URL:            http://www.opensc-project.org/opensc/
 Source0:        http://www.opensc-project.org/files/opensc/opensc-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw32-filesystem >= 53
+BuildRequires:  mingw32-filesystem
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-binutils
 BuildRequires:  mingw32-libltdl
@@ -26,12 +25,13 @@ BuildRequires:  mingw32-openssl
 BuildRequires:  mingw32-readline
 
 %description
-OpenSC is a package for for accessing smart card devices.  Basic
-functionality (e.g. SELECT FILE, READ BINARY) should work on any ISO
-7816-4 compatible smart card.  Encryption and decryption using private
-keys on the smart card is possible with PKCS #15 compatible cards,
-such as the FINEID (Finnish Electronic IDentity) card.  Swedish Posten
-eID cards have also been confirmed to work.
+OpenSC provides a set of libraries and utilities to work with smart cards. Its
+main focus is on cards that support cryptographic operations, and facilitate
+their use in security applications such as authentication, mail encryption and
+digital signatures. OpenSC implements the PKCS#11 API so applications
+supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On
+the card OpenSC implements the PKCS#15 standard and aims to be compatible with
+every software/card that does so, too.
 
 This is the MinGW cross-compiled Windows library.
 
@@ -42,7 +42,6 @@ This is the MinGW cross-compiled Windows library.
 %prep
 %setup -q -n opensc-%{version}
 
-sed -i -e 's|"/lib /usr/lib\b|"%{_mingw32_libdir}|' configure
 sed -i -e 's|/usr/local/towitoko/lib/|%{_mingw32_libdir}/ctapi/|' etc/opensc.conf.in
 
 
@@ -54,57 +53,36 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 install -Dpm 644 etc/opensc.conf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/opensc.conf
 
 # Remove docs which duplicate the ones in native package
 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/opensc
 
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+# Remove unneeded files
+rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/*.def
+rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/*.dll.a
 
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING
 %config(noreplace) %{_mingw32_sysconfdir}/opensc.conf
-
-%{_mingw32_bindir}/cardos-tool.exe
-%{_mingw32_bindir}/cryptoflex-tool.exe
-%{_mingw32_bindir}/eidenv.exe
-%{_mingw32_bindir}/netkey-tool.exe
-%{_mingw32_bindir}/opensc-explorer.exe
-%{_mingw32_bindir}/opensc-tool.exe
-%{_mingw32_bindir}/piv-tool.exe
-%{_mingw32_bindir}/pkcs11-tool.exe
-%{_mingw32_bindir}/pkcs15-crypt.exe
-%{_mingw32_bindir}/pkcs15-init.exe
-%{_mingw32_bindir}/pkcs15-tool.exe
-%{_mingw32_bindir}/rutoken-tool.exe
-%{_mingw32_bindir}/westcos-tool.exe
-
+%{_mingw32_bindir}/*.exe
 %{_mingw32_bindir}/libopensc-3.dll
 %{_mingw32_bindir}/onepin-opensc-pkcs11.dll
 %{_mingw32_bindir}/opensc-pkcs11.dll
 %{_mingw32_bindir}/pkcs11-spy.dll
-
-%{_mingw32_libdir}/libopensc-3.dll.def
-%{_mingw32_libdir}/libopensc.dll.a
-%{_mingw32_libdir}/libopensc.la
-%{_mingw32_libdir}/onepin-opensc-pkcs11.dll.a
-%{_mingw32_libdir}/onepin-opensc-pkcs11.la
-%{_mingw32_libdir}/opensc-pkcs11.dll.a
-%{_mingw32_libdir}/opensc-pkcs11.la
-%{_mingw32_libdir}/pkcs11-spy.dll.a
-%{_mingw32_libdir}/pkcs11-spy.la
-
 %{_mingw32_datadir}/opensc/
 %{_mingw32_sbindir}/opensc-install.bat
 
 
 %changelog
+* Wed May 18 2011 Kalev Lember <kalev at smartlink.ee> - 0.12.1-1
+- Update to 0.12.1
+- Spec clean up; removed old cruft not needed in current Fedora releases
+- Updated description
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/sources b/sources
index 238b40f..41b47b6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-630fa3b8717d22a1d069d120153a0c52  opensc-0.12.0.tar.gz
+62fe8d3ed1864556c1970d7c23d8d58e  opensc-0.12.1.tar.gz


More information about the scm-commits mailing list