2024-01-06 05:18:05 +01:00
|
|
|
%define plugindir %{_libdir}/mozilla/plugins
|
|
|
|
|
|
|
|
Name: libopensc
|
2024-01-06 05:18:05 +01:00
|
|
|
Version: 0.20.0
|
2024-01-06 05:18:05 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: OpenSC is a library and utilites to access SmartCard devices
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
|
|
URL: http://www.opensc-project.org
|
2024-01-06 05:18:05 +01:00
|
|
|
Source: https://github.com/OpenSC/OpenSC/releases/download/%{version}/opensc-%{version}.tar.gz
|
|
|
|
#Source: http://downloads.sourceforge.net/project/opensc/OpenSC/opensc-%{version}/opensc-%{version}.tar.gz
|
2024-01-06 05:18:05 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: libblkid-devel
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
BuildRequires: libglib-devel
|
|
|
|
BuildRequires: libmount-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: libpcre-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: libreadline-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsepol-devel
|
|
|
|
BuildRequires: libuuid-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 05:18:05 +01:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libassuan-devel
|
|
|
|
BuildRequires: libopenldap-devel
|
|
|
|
BuildRequires: libxslt-devel
|
2024-01-06 05:18:05 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
%package -n opensc
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Tools for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n opensc
|
|
|
|
libOpenSC is a library for accessing SmartCard devices.
|
|
|
|
This package contains the tools.
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
%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}
|
2024-01-06 05:18:05 +01:00
|
|
|
#sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|' etc/opensc.conf.in
|
2024-01-06 05:18:05 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
%files -n opensc
|
2024-01-06 05:18:05 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:18:05 +01:00
|
|
|
%config %{_sysconfdir}/opensc.conf
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_sysconfdir}/xdg/autostart/pkcs11-register.desktop
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_bindir}/*
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_datadir}/applications/org.opensc.notify.desktop
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_datadir}/opensc
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
%{_datadir}/doc/opensc/opensc.conf
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/libopensc.so.*
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/libsmm-local.so.*
|
2024-01-06 05:18:05 +01:00
|
|
|
#%{_libdir}/libpkcs15init.so.*
|
|
|
|
#%{_libdir}/libscconf.so.*
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/onepin-opensc-pkcs11.la
|
|
|
|
%{_libdir}/onepin-opensc-pkcs11.so
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/opensc-pkcs11.la
|
|
|
|
%{_libdir}/opensc-pkcs11.so
|
|
|
|
%{_libdir}/pkcs11-spy.la
|
|
|
|
%{_libdir}/pkcs11-spy.so
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/pkcs11/onepin-opensc-pkcs11.so
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/pkcs11/opensc-pkcs11.so
|
|
|
|
%{_libdir}/pkcs11/pkcs11-spy.so
|
|
|
|
#%{plugindir}/opensc-signer.so
|
2024-01-06 05:18:05 +01:00
|
|
|
%doc COPYING
|
2024-01-06 05:18:05 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libopensc.la
|
|
|
|
%{_libdir}/libopensc.so
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/libsmm-local.la
|
|
|
|
%{_libdir}/libsmm-local.so
|
2024-01-06 05:18:05 +01:00
|
|
|
%{_libdir}/pkgconfig/opensc-pkcs11.pc
|
|
|
|
%doc NEWS README
|
2024-01-06 05:18:05 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:18:05 +01:00
|
|
|
* Tue Mar 03 2020 Automatic Build System <autodist@mambasoft.it> 0.20.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
* Sat Dec 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0-1mamba
|
|
|
|
- update to 0.19.0
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
* Thu Jun 23 2016 Automatic Build System <autodist@mambasoft.it> 0.16.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
* Thu May 21 2015 Automatic Build System <autodist@mambasoft.it> 0.15.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
* Thu Jul 31 2014 Automatic Build System <autodist@mambasoft.it> 0.14.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 05:18:05 +01:00
|
|
|
* Sat Dec 08 2012 Automatic Build System <autodist@mambasoft.it> 0.13.0-1mamba
|
|
|
|
- update to 0.13.0
|
|
|
|
|
|
|
|
* Sun Jul 24 2011 Automatic Build System <autodist@mambasoft.it> 0.12.2-1mamba
|
|
|
|
- automatic update to 3.0.3.0 by autodist
|
|
|
|
|
|
|
|
* Sat Sep 18 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.13-1mamba
|
|
|
|
- update to 0.11.13
|
|
|
|
|
|
|
|
* Sat Sep 18 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.4-2mamba
|
|
|
|
- rebuilt with openssl 1.0
|
|
|
|
|
|
|
|
* Thu Nov 29 2007 Aleph0 <aleph0@openmamba.org> 0.11.4-1mamba
|
|
|
|
- update to 0.11.4
|
|
|
|
|
|
|
|
* Mon Oct 10 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.9.6-2qilnx
|
|
|
|
- fixed opensc.conf permissions
|
|
|
|
- gcc4 compilation fix
|
|
|
|
- the plugin for mozilla is now build
|
|
|
|
|
|
|
|
* Thu May 19 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6-1qilnx
|
|
|
|
- update to version 0.9.6 by autospec
|
|
|
|
|
|
|
|
* Tue Dec 07 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.9.4-1qilnx
|
|
|
|
- package created by autospec
|