From 3c8e6a2b29f428e165a85f4c7f4f446fbf3a880b Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 05:18:05 +0100 Subject: [PATCH] update to 0.13.0 [release 0.13.0-1mamba;Sat Dec 08 2012] --- README.md | 6 ++ libopensc.spec | 152 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 libopensc.spec diff --git a/README.md b/README.md index c29f01a..ef464ac 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # libopensc +OpenSC provides a set of libraries and utilities to access SmartCard devices. +Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as mail encryption, authentication, and digital signature. + +Basic functionality should work on any ISO 7816-4 compatible SmartCard. +Encryption and decryption using private keys on the SmartCard is possible with PKCS #15 compatible cards, such as the FINEID (Finnish Electronic IDentity) card. + diff --git a/libopensc.spec b/libopensc.spec new file mode 100644 index 0000000..85020a0 --- /dev/null +++ b/libopensc.spec @@ -0,0 +1,152 @@ +%define plugindir %{_libdir}/mozilla/plugins + +Name: libopensc +Version: 0.13.0 +Release: 1mamba +Summary: OpenSC is a library and utilites to access SmartCard devices +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.opensc-project.org +Source: http://downloads.sourceforge.net/project/opensc/OpenSC/opensc-%{version}/opensc-%{version}.tar.gz +License: LGPL +BuildRequires: flex +BuildRequires: libassuan-devel +BuildRequires: libopenldap-devel +BuildRequires: libxslt-devel +## AUTOBUILDREQ-BEGIN +BuildRequires: bash +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libltdl-devel +BuildRequires: libncurses-devel +BuildRequires: libopenct-devel +BuildRequires: libopenssl-devel +BuildRequires: libpcsclite-devel +BuildRequires: libreadline-devel +BuildRequires: libz-devel +BuildRequires: pam-devel +## AUTOBUILDREQ-END +Requires: pam +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME (BuildRequiremnts) +# checking for ldap_ssl.h... no + +%description +OpenSC provides a set of libraries and utilities to access SmartCard devices. +Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as mail encryption, authentication, and digital signature. + +Basic functionality should work on any ISO 7816-4 compatible SmartCard. +Encryption and decryption using private keys on the SmartCard is possible with PKCS #15 compatible cards, such as the FINEID (Finnish Electronic IDentity) card. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +libOpenSC is a library for accessing SmartCard devices. +This package contains static libraries and header files need for development. + +%prep +%setup -q -n opensc-%{version} +sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|' etc/opensc.conf.in + +%build +%configure \ + --disable-static + +# --with-openssl \ +# --with-plugin-dir=%{plugindir} + +%make +#cp src/openssh/README src/openssh/README.openssh + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +install -D -m 644 etc/opensc.conf %{buildroot}%{_sysconfdir}/opensc.conf + +#install -d -m755 %{buildroot}%{plugindir} +#rm -f %{buildroot}%{_libdir}/opensc-signer.la +#rm -f %{buildroot}%{plugindir}/opensc-signer.la +#rm -f %{buildroot}%{plugindir}/opensc-signer.so +#mv %{buildroot}%{_libdir}/opensc-signer.so %{buildroot}%{plugindir} + +rm -f %{buildroot}%{_docdir}/opensc/NEWS %{buildroot}%{_docdir}/opensc/README + +rm -f %{buildroot}%{_bindir}/opensc-config +rm -f %{buildroot}%{_mandir}/man1/opensc-config.* + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/opensc +%{_libdir}/libopensc.so.* +#%{_libdir}/libpkcs15init.so.* +#%{_libdir}/libscconf.so.* +#%{_libdir}/onepin-opensc-pkcs11.la +#%{_libdir}/onepin-opensc-pkcs11.so +%{_libdir}/opensc-pkcs11.la +%{_libdir}/opensc-pkcs11.so +%{_libdir}/pkcs11-spy.la +%{_libdir}/pkcs11-spy.so +#%{_libdir}/pkcs11/onepin-opensc-pkcs11.so +%{_libdir}/pkcs11/opensc-pkcs11.so +%{_libdir}/pkcs11/pkcs11-spy.so +#%{plugindir}/opensc-signer.so +%{_sysconfdir}/* +%{_mandir}/man1/* +%{_mandir}/man5/* +%doc COPYING NEWS README +#%doc src/openssh/README.openssh src/openssh/ask-for-pin.diff + +%files devel +%defattr(-,root,root) +#%{_bindir}/opensc-config +#%{_includedir}/opensc +%{_libdir}/libopensc.la +%{_libdir}/libopensc.so +#%{_libdir}/libpkcs15init.la +#%{_libdir}/libpkcs15init.so +#%{_libdir}/libscconf.la +#%{_libdir}/libscconf.so +#%{_libdir}/pkgconfig/lib*.pc +#%{_mandir}/man1/opensc-config.* +#%{_mandir}/man3/* + +%changelog +* Sat Dec 08 2012 Automatic Build System 0.13.0-1mamba +- update to 0.13.0 + +* Sun Jul 24 2011 Automatic Build System 0.12.2-1mamba +- automatic update to 3.0.3.0 by autodist + +* Sat Sep 18 2010 Silvan Calarco 0.11.13-1mamba +- update to 0.11.13 + +* Sat Sep 18 2010 Silvan Calarco 0.11.4-2mamba +- rebuilt with openssl 1.0 + +* Thu Nov 29 2007 Aleph0 0.11.4-1mamba +- update to 0.11.4 + +* Mon Oct 10 2005 Davide Madrisan 0.9.6-2qilnx +- fixed opensc.conf permissions +- gcc4 compilation fix +- the plugin for mozilla is now build + +* Thu May 19 2005 Silvan Calarco 0.9.6-1qilnx +- update to version 0.9.6 by autospec + +* Tue Dec 07 2004 Davide Madrisan 0.9.4-1qilnx +- package created by autospec