]> git.pld-linux.org Git - packages/opensc.git/blobdiff - opensc.spec
- one more ATR
[packages/opensc.git] / opensc.spec
index 23c89c15f4dc92e8c748f3fe3a38d6596cd6b47a..8b11a1e669097b05f9426866139452d5c34e1cc0 100644 (file)
@@ -2,7 +2,7 @@ Summary:        OpenSC library - for accessing SmartCard devices using PC/SC Lite
 Summary(pl):   Biblioteka OpenSC - do korzystania z kart procesorowych przy u¿yciu PC/SC Lite
 Name:          opensc
 Version:       0.8.1
-Release:       4
+Release:       5
 Epoch:         0
 License:       LGPL
 Group:         Applications
@@ -10,6 +10,7 @@ Source0:      http://www.opensc.org/files/%{name}-%{version}.tar.gz
 # Source0-md5: 2b64a8e629bd28a00e707e35fd3eb9c7
 Patch0:                %{name}-libdir.patch
 Patch1:                %{name}-shared-ssl.patch
+Patch2:                %{name}-segv.patch
 URL:           http://www.opensc.org/
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
@@ -24,7 +25,8 @@ BuildRequires:        readline-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # datadir is used for config files and (editable) profiles
-%define                _datadir        %{_sysconfdir}
+%define                _datadir        /etc
+%define                _sysconfdir     /etc/opensc
 %define                mozplugindir    /usr/%{_lib}/mozilla/plugins
 
 %description
@@ -106,11 +108,13 @@ Wtyczka OpenSC Signer dla Mozilli.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
        --with-pin-entry=/usr/bin/pinentry-gtk \
@@ -133,11 +137,11 @@ rm -f $RPM_BUILD_ROOT%{mozplugindir}/opensc-signer.so
 mv -f $RPM_BUILD_ROOT%{_libdir}/opensc/opensc-signer.so $RPM_BUILD_ROOT%{mozplugindir}
 
 # default config
-mv -f $RPM_BUILD_ROOT%{_datadir}/opensc/opensc.conf{.example,}
-mv -f $RPM_BUILD_ROOT%{_datadir}/opensc/scldap.conf{.example,}
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf{.example,}
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/scldap.conf{.example,}
 
 # useless (dlopened by *.so)
-rm -f $RPM_BUILD_ROOT%{_libdir}/libscam.{a,la} \
+rm -f $RPM_BUILD_ROOT%{_libdir}/{libscam,opensc-*}.{a,la} \
        $RPM_BUILD_ROOT%{_libdir}/opensc/*.{a,la} \
        $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.{a,la} \
        $RPM_BUILD_ROOT/%{_lib}/security/pam_opensc.{a,la}
@@ -159,14 +163,14 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/pkcs15-*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 %attr(755,root,root) %{_libdir}/libscam.so
+%attr(755,root,root) %{_libdir}/opensc-pkcs11.so
 %dir %{_libdir}/pkcs11
-%attr(755,root,root) %{_libdir}/pkcs11/opensc-pkcs11.so
 %attr(755,root,root) %{_libdir}/pkcs11/pkcs11-spy.so
 %dir %{_libdir}/opensc
 %attr(755,root,root) %{_libdir}/opensc/engine_opensc.so
 %attr(755,root,root) %{_libdir}/opensc/engine_pkcs11.so
 %dir %{_datadir}/opensc
-%config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
 %config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.profile
 %{_mandir}/man1/cryptoflex-tool.1*
 %{_mandir}/man1/opensc-explorer.1*
This page took 0.04045 seconds and 4 git commands to generate.