X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopensc.git;a=blobdiff_plain;f=opensc.spec;h=41c208ee144a80737a198ccba6396145311fc13c;hp=720921f2cfe580fcb87a874e57f7e1cd138c8d61;hb=ac174bda0701c8df5e7271e38e78d2e3c83d5018;hpb=896b833c1eeaeda3e7309eb3ea0ba779ea574e34 diff --git a/opensc.spec b/opensc.spec index 720921f..41c208e 100644 --- a/opensc.spec +++ b/opensc.spec @@ -1,108 +1,203 @@ - -Summary: -Summary(pl): +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.7.0 -Release: 1 -#License: -#Group: Daemons +Version: 0.8.1 +Release: 4 +Epoch: 0 +License: LGPL +Group: Applications Source0: http://www.opensc.org/files/%{name}-%{version}.tar.gz -PreReq: rc-scripts -Requires: pcsc-lite +# Source0-md5: 2b64a8e629bd28a00e707e35fd3eb9c7 +Patch0: %{name}-libdir.patch +Patch1: %{name}-shared-ssl.patch +URL: http://www.opensc.org/ +BuildRequires: autoconf >= 2.52 +BuildRequires: automake +BuildRequires: libassuan-devel >= 1:0.6.0 +BuildRequires: libtool >= 1:1.4.2-9 +BuildRequires: openldap-devel +BuildRequires: openssl-devel >= 0.9.7d +BuildRequires: openct-devel +BuildRequires: pam-devel +BuildRequires: pcsc-lite-devel +BuildRequires: readline-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# datadir is used for config files and (editable) profiles +%define _datadir /etc +%define _sysconfdir /etc/opensc +%define mozplugindir /usr/%{_lib}/mozilla/plugins + %description -pcscd is the daemon program for PC/SC Lite. It is a resource manager -that coorinates communications with Smart Card readers and Smart Cards -that are connected to the system. The purpose of PCSC Lite is to -provide a Windows(R) SCard interface in a very small form factor for -communicating to smartcards and readers. PCSC Lite uses the same -winscard api as used under Windows(R) +libopensc is a library for accessing SmartCard devices using PC/SC +Lite middleware package. It is also the core library of the OpenSC +project. Basic functionality (e.g. SELECT FILE, READ BINARY) should +work on any ISO 7816-4 compatible SmartCard. Encryption and decryption +using private keys on the SmartCard is at the moment possible only +with PKCS#15 compatible cards, such as the FINEID (Finnish Electronic +IDentity) card manufactured by Setec. %description -l pl -pcscd jest demonem dla PC/SC Lite. Jest to zarz±dca zasobów, -koordynuj±cy komunikacjê z czytnikami Smart Card pod³±czonymi do -systemu. Celem PCSC Lite jest udostêpnienie interfejsu zgodnego z -Windows(R) SCard s³u¿±cego do komunikacji z czytnikami kart chipowych. -U¿ywa tego samego API winscard, które jest u¿ywane pod Microsoft[TM] -Windows(R). - -%package libs -Summary: Libraries -Summary(pl): Bibloteki -Group: Libraries - -%description libs -What is a package w/o his libs? - -%description libs -l pl -Bo czym¿e jest pakiet bez swoich bibliotek? +libopensc to biblioteka do korzystania z kart procesorowych przy +u¿yciu pakietu warstwy po¶redniej PC/SC Lite. Jest to tak¿e podstawowa +biblioteka projektu OpenSC. Podstawowa funkcjonalno¶æ (np. SELECT +FILE, READ BINARY) powinna dzia³aæ tak¿e z dowoln± kart± procesorow± +zgodn± z ISO-7816-4. Szyfrowanie i odszyfrowywanie przy u¿yciu +prywatnych kluczy na karcie na razie jest mo¿liwe tylko przy u¿yciu +kart kompatybilnych z PKCS#16, takich jak FINEID (Finnish Electronic +IDentity) produkowanych przez Setec. %package devel -Summary: Development files -Summary(pl): Pliki dla programistów +Summary: OpenSC development files +Summary(pl): Pliki dla programistów u¿ywaj±cych OpenSC Group: Development/Tools -Requires: %{name}-libs = %{version} +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: openct-devel +Requires: openssl-devel +Requires: pcsc-lite-devel %description devel -Development files. +OpenSC development files. %description devel -l pl -Pliki dla programistów. +Pliki dla programistów u¿ywaj±cych OpenSC. %package static -Summary: Static libraries -Summary(pl): Bibloteki statyczne +Summary: Static OpenSC libraries +Summary(pl): Bibloteki statyczne OpenSC Group: Development/Tools -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{epoch}:%{version}-%{release} %description static -Static PSCS libraries. +Static OpenSC libraries. %description static -l pl -Statyczne biblioteki PCSC. +Statyczne biblioteki OpenSC. + +%package -n pam-pam_opensc +Summary: OpenSC module for PAM +Summary(pl): Modu³ PAM OpenSC +License: GPL +Group: Base +Requires: %{name} = %{epoch}:%{version}-%{release} +Obsoletes: pam_opensc + +%description -n pam-pam_opensc +OpenSC module for PAM. + +%description -n pam-pam_opensc -l pl +Modu³ PAM OpenSC. + +%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 + +%description -n mozilla-plugin-opensc +OpenSC Signer plugin for Mozilla. + +%description -n mozilla-plugin-opensc -l pl +Wtyczka OpenSC Signer dla Mozilli. %prep -%setup -q -a1 -a2 +%setup -q +%patch0 -p1 +%patch1 -p1 %build -%configure2_13 -%{__make} +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --with-pin-entry=/usr/bin/pinentry-gtk \ + --with-plugin-dir="%{mozplugindir}" +%{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{mozplugindir} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT/%{_lib} +mv -f $RPM_BUILD_ROOT%{_libdir}/security $RPM_BUILD_ROOT/%{_lib} + +# just install instead of symlinking +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%{_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} \ + $RPM_BUILD_ROOT%{_libdir}/opensc/*.{a,la} \ + $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.{a,la} \ + $RPM_BUILD_ROOT/%{_lib}/security/pam_opensc.{a,la} %clean rm -rf $RPM_BUILD_ROOT -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files %defattr(644,root,root,755) -%doc doc/* -%doc AUTHORS DRIVERS NEWS HELP README SECURITY -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/reader.conf -%attr(755,root,root) %{_sbindir}/pcscd -%attr(755,root,root) %{_bindir}/bundleTool -%attr(755,root,root) %{_bindir}/formaticc -%attr(755,root,root) %{_bindir}/installifd -#%attr(754,root,root) /etc/rc.d/init.d/pcscd -%{_mandir}/man1/bundleTool.1* -%{_mandir}/man8/pcscd.8* - -%files libs -%defattr(644,root,root,755) -%{_libdir}/lib*.so.* +%doc ANNOUNCE ChangeLog NEWS docs/{pkcs-15v1_1.asn,opensc.{html,css}} +%attr(755,root,root) %{_bindir}/cardos-info +%attr(755,root,root) %{_bindir}/cryptoflex-tool +%attr(755,root,root) %{_bindir}/opensc-explorer +%attr(755,root,root) %{_bindir}/opensc-tool +%attr(755,root,root) %{_bindir}/pkcs11-tool +%attr(755,root,root) %{_bindir}/pkcs15-* +%attr(755,root,root) %{_libdir}/lib*.so.*.* +%attr(755,root,root) %{_libdir}/libscam.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) %{_sysconfdir}/*.conf +%config(noreplace) %verify(not size mtime md5) %{_datadir}/opensc/*.profile +%{_mandir}/man1/cryptoflex-tool.1* +%{_mandir}/man1/opensc-explorer.1* +%{_mandir}/man1/opensc-tool.1* +%{_mandir}/man1/pkcs15* +%{_mandir}/man[57]/* %files devel %defattr(644,root,root,755) -%{_libdir}/lib*.so -%{_libdir}/libpcsc*.la -%{_includedir}/* +%attr(755,root,root) %{_bindir}/opensc-config +%attr(755,root,root) %{_libdir}/libopensc.so +%attr(755,root,root) %{_libdir}/libpkcs11.so +%attr(755,root,root) %{_libdir}/libpkcs15init.so +%attr(755,root,root) %{_libdir}/libscconf.so +%attr(755,root,root) %{_libdir}/libscldap.so +%{_libdir}/lib*.la +%{_includedir}/opensc +%{_pkgconfigdir}/*.pc +%{_mandir}/man1/opensc-config.1* +%{_mandir}/man3/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a + +%files -n pam-pam_opensc +%defattr(644,root,root,755) +%attr(755,root,root) /%{_lib}/security/pam_opensc.so + +%files -n mozilla-plugin-opensc +%defattr(644,root,root,755) +%attr(755,root,root) %{mozplugindir}/opensc-signer.so