]> git.pld-linux.org Git - packages/opensc.git/blobdiff - opensc.spec
- rel 2, rebuild with splitted openct (autoreqdep)
[packages/opensc.git] / opensc.spec
index 23c89c15f4dc92e8c748f3fe3a38d6596cd6b47a..848b5eb70649997d352b6cfde750ffe212f49fe8 100644 (file)
@@ -1,15 +1,17 @@
 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
+Version:       0.9.4
+Release:       2
 Epoch:         0
 License:       LGPL
 Group:         Applications
 Source0:       http://www.opensc.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: 2b64a8e629bd28a00e707e35fd3eb9c7
+# Source0-md5: 76c18fc9bd9fad9c45396ea81f317551
 Patch0:                %{name}-libdir.patch
 Patch1:                %{name}-shared-ssl.patch
+Patch2:                %{name}-segv.patch
+Patch3:                %{name}-explorer-debug.patch
 URL:           http://www.opensc.org/
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
@@ -20,11 +22,13 @@ BuildRequires:      openssl-devel >= 0.9.7d
 BuildRequires: openct-devel
 BuildRequires: pam-devel
 BuildRequires: pcsc-lite-devel
+BuildRequires: pkgconfig >= 1:0.9.0
 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
@@ -90,8 +94,6 @@ Modu
 %package -n mozilla-plugin-opensc
 Summary:       OpenSC Signer plugin for Mozilla
 Summary(pl):   Wtyczka OpenSC Signer dla Mozilli
-# libassuan is GPL
-License:       GPL
 Group:         X11/Applications
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      pinentry-gtk
@@ -106,11 +108,14 @@ Wtyczka OpenSC Signer dla Mozilli.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
        --with-pin-entry=/usr/bin/pinentry-gtk \
@@ -133,11 +138,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,19 +164,21 @@ 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/cardos-info.1*
 %{_mandir}/man1/cryptoflex-tool.1*
 %{_mandir}/man1/opensc-explorer.1*
 %{_mandir}/man1/opensc-tool.1*
-%{_mandir}/man1/pkcs15*
+%{_mandir}/man1/pkcs11-tool.1*
+%{_mandir}/man1/pkcs15-*.1*
 %{_mandir}/man[57]/*
 
 %files devel
This page took 0.075098 seconds and 4 git commands to generate.