]> git.pld-linux.org Git - packages/opensc.git/blobdiff - opensc.spec
- rel 2
[packages/opensc.git] / opensc.spec
index 3b5d88ece4e1ccbe3c9fd666c32d3a2de2afa858..c6cdd43ceceb2ed8a11e426270e4b231783f605b 100644 (file)
@@ -1,21 +1,17 @@
 #
 # Conditional build:
-%bcond_without openct  # use PCSC directly, without OpenCT support
+%bcond_with    openct  # use OpenCT instead of PC/SC for reader access
 #
 Summary:       OpenSC library - for accessing SmartCard devices using PC/SC Lite
 Summary(pl.UTF-8):     Biblioteka OpenSC - do korzystania z kart procesorowych przy użyciu PC/SC Lite
 Name:          opensc
-Version:       0.12.0
-Release:       1
+Version:       0.12.2
+Release:       2
 Epoch:         0
 License:       LGPL v2.1+
 Group:         Applications
 Source0:       http://www.opensc-project.org/files/opensc/%{name}-%{version}.tar.gz
-# Source0-md5: 630fa3b8717d22a1d069d120153a0c52
-Source1:       %{name}-initramfs-hook
-Source2:       %{name}-initramfs-local-bottom
-Source3:       %{name}-initramfs-local-top
-Source4:       %{name}-initramfs-README
+# Source0-md5: 5116adea5f2f9f22fb9896965789144b
 URL:           http://www.opensc-project.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake >= 1:1.10
@@ -24,7 +20,6 @@ BuildRequires:        libltdl-devel
 BuildRequires: libtool >= 1:1.4.2-9
 BuildRequires: libxslt-progs
 %{?with_openct:BuildRequires:  openct-devel}
-BuildRequires: openldap-devel >= 2.4.6
 BuildRequires: openssl-devel >= 0.9.7d
 %{!?with_openct:BuildRequires: pcsc-lite-devel >= 1.6.0}
 BuildRequires: pkgconfig >= 1:0.9.0
@@ -87,24 +82,9 @@ Static OpenSC library.
 %description static -l pl.UTF-8
 Biblioteka statyczna OpenSC.
 
-%package initramfs
-Summary:       OpenSC support scripts for initramfs-tools
-Summary(pl.UTF-8):     Skrypty dla initramfs-tools ze wsparciem dla OpenSC
-Group:         Base
-Requires:      %{name} = %{version}-%{release}
-Requires:      initramfs-tools
-
-%description initramfs
-OpenSC support scripts for initramfs-tools.
-
-%description initramfs -l pl.UTF-8
-Skrypty dla initramfs-tools ze wsparciem dla OpenSC.
-
 %prep
 %setup -q
 
-install %{SOURCE4} README.initramfs
-
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
@@ -114,6 +94,7 @@ install %{SOURCE4} README.initramfs
 %configure \
        %{?with_openct:--enable-openct --disable-pcsc} \
        %{!?with_openct:--enable-pcsc --disable-openct} \
+       --disable-silent-rules \
        --enable-doc \
        --with-pcsc-provider=%{_libdir}/libpcsclite.so.1
 
@@ -121,18 +102,14 @@ install %{SOURCE4} README.initramfs
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/{hooks,scripts/local-{bottom,top}}
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/opensc
-install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/scripts/local-bottom/opensc
-install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/scripts/local-top/opensc
-
 # not needed (dlopened by soname)
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{onepin-opensc-pkcs11,opensc-pkcs11,pkcs11-spy}.la
 
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -153,7 +130,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/pkcs15-crypt
 %attr(755,root,root) %{_bindir}/pkcs15-init
 %attr(755,root,root) %{_bindir}/pkcs15-tool
-%attr(755,root,root) %{_bindir}/rutoken-tool
 %attr(755,root,root) %{_bindir}/westcos-tool
 %attr(755,root,root) %{_libdir}/libopensc.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libopensc.so.3
@@ -170,9 +146,11 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/opensc/*.profile
 %{_mandir}/man1/cardos-tool.1*
 %{_mandir}/man1/cryptoflex-tool.1*
+%{_mandir}/man1/eidenv.1*
 %{_mandir}/man1/netkey-tool.1*
 %{_mandir}/man1/opensc-explorer.1*
 %{_mandir}/man1/opensc-tool.1*
+%{_mandir}/man1/piv-tool.1*
 %{_mandir}/man1/pkcs11-tool.1*
 %{_mandir}/man1/pkcs15-crypt.1*
 %{_mandir}/man1/pkcs15-init.1*
@@ -188,10 +166,3 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libopensc.a
-
-%files initramfs
-%defattr(644,root,root,755)
-%doc README.initramfs
-%attr(755,root,root) %{_datadir}/initramfs-tools/hooks/opensc
-%attr(755,root,root) %{_datadir}/initramfs-tools/scripts/local-top/opensc
-%attr(755,root,root) %{_datadir}/initramfs-tools/scripts/local-bottom/opensc
This page took 0.032521 seconds and 4 git commands to generate.