]> git.pld-linux.org Git - packages/pcsc-lite.git/blobdiff - pcsc-lite.spec
- updated to 1.4.99
[packages/pcsc-lite.git] / pcsc-lite.spec
index b08356ab2248552163258f78e03a9f56fdfb3bf6..890c368cfd1e9a1f922a4e1b6d8dc6df6cf081d8 100644 (file)
@@ -1,13 +1,35 @@
 Summary:       Muscle PCSC Framework for Linux
+Summary(pl.UTF-8):     Środowisko PCSC dla Linuksa
 Name:          pcsc-lite
-Version:       1.1.1
+Version:       1.4.99
 Release:       1
 License:       BSD
-Group:         System Environment/Daemons
-Source0:       %{name}-%{version}.tar.gz
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Group:         Daemons
+#Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105
+Source0:       http://alioth.debian.org/frs/download.php/2257/%{name}-%{version}.tar.gz
+# Source0-md5: 16c59b54edde9fa466c0e1f0eb86fd61
+Source1:       %{name}-pcscd.init
+Source2:       %{name}-pcscd.sysconfig
+Patch0:                %{name}-fhs.patch
+Patch1:                %{name}-any.patch
+URL:           http://www.linuxnet.com/middle.html
+BuildRequires: autoconf >= 2.58
+BuildRequires: automake >= 1:1.8
+BuildRequires: flex
+BuildRequires: libtool >= 1.4.2-9
+BuildRequires: libusb-devel >= 0.1.7
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.268
+# temporary?
+BuildRequires: tetex-format-pdflatex
+BuildRequires: tetex-latex-ae
+Requires(post,preun):  /sbin/chkconfig
+Requires(pre): fileutils
 Requires:      rc-scripts
-Requires:      pthread-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                usbdropdir      /usr/%{_lib}/pcsc/drivers
+%define                muscledropdir   /usr/%{_lib}/pcsc/services
 
 %description
 pcscd is the daemon program for PC/SC Lite. It is a resource manager
@@ -15,106 +37,141 @@ 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)
-
-%description -l pl
-Pcscd jest demonem dla  PC/SC Lite. Koordynuje on komunikacjê z 
-czytnikami Smart Card. Celem pcscd jest udostêpnienie interfejsu
-zgodnego z  Windows(R) SCard. Demon ten u¿ywa winscard api, tak
-jak Microsoft[TM] Windows(R).
-
-%package devel
-Summary:    Development files
-Summary(pl):    Pliki dla developerów
-Group:      Development/Tools
-Requires:   %{name} = %{version}
-
-%description devel
-Development files
-
-%description -l pl devel
-Pliki dla developerów
+winscard api as used under Windows(R).
 
+%description -l pl.UTF-8
+pcscd jest demonem dla PC/SC Lite. Jest to zarządca zasobów,
+koordynujący komunikację z czytnikami kart procesorowych 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:      Development/Tools
-Requires:   %{name} = %{version}
+Summary:       PC/SC Lite libraries
+Summary(pl.UTF-8):     Biblioteki PC/SC Lite
+Group:         Libraries
 
 %description libs
-What is a package w/o his libs?
+PC/SC Lite libraries.
+
+%description libs -l pl.UTF-8
+Biblioteki PC/SC Lite.
 
-%description -l pl libs
-Bo czym¿ jest pakiet bez swoich biblotek ?
+%package devel
+Summary:       PC/SC Lite development files
+Summary(pl.UTF-8):     Pliki dla programistów używających PC/SC Lite
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
 
-%post libs
-/sbin/ldconfig
+%description devel
+PC/SC Lite development files.
+
+%description devel -l pl.UTF-8
+Pliki dla programistów używających PC/SC Lite.
 
 %package static
-Summary:    Static libraries
-Summary(pl):    Bibloteki statyczne
-Group:      Development/Tools
-Requires:   %{name} = %{version}
+Summary:       Static PC/SC Lite libraries
+Summary(pl.UTF-8):     Biblioteki statyczne PC/SC Lite
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
-What is a package w/o -static?
+Static PC/SC Lite libraries.
 
-%description -l pl static
-Bo czym¿ jest pakiet bez -static ?
+%description static -l pl.UTF-8
+Statyczne biblioteki PC/SC Lite.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --enable-muscledropdir=%{muscledropdir} \
+       --enable-runpid=/var/run/pcscd.pid \
+       --enable-usbdropdir=%{usbdropdir}
 
-%{configure2_13}
 %{__make}
 
+# temporary?
+%{__make} -C doc ifdhandler-3.pdf pcsc-lite.pdf
+
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-#install -m 755 etc/pcscd.startup /etc/init.d/pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc0.d/K81pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc1.d/K81pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc2.d/S21pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc3.d/S21pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc4.d/S21pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc5.d/S21pcscd
-#ln -sf /etc/init.d/pcscd /etc/rc.d/rc6.d/K81pcscd
+install -d $RPM_BUILD_ROOT{%{usbdropdir},%{muscledropdir}} \
+       $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
+       $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
+
+install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+:> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
+rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+# upgrade from pcsc-lite < 1.2.9-0.beta7
+if [ -f /etc/reader.conf -a ! -f /etc/reader.conf.d/reader.conf ]; then
+       install -d -m755 /etc/reader.conf.d
+       cp -af /etc/reader.conf /etc/reader.conf.d/reader.conf
+fi
+
+%post
+/sbin/chkconfig --add pcscd
+%service pcscd restart "pcscd daemon"
+
+%preun
+if [ "$1" = "0" ]; then
+       %service pcscd stop
+       /sbin/chkconfig --del pcscd
+fi
+
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/reader.conf
+%doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY TODO doc/README.DAEMON
 %attr(755,root,root) %{_sbindir}/pcscd
-%attr(755,root,root) %{_bindir}/bundleTool
-%attr(755,root,root) %{_bindir}/formaticc
-%attr(755,root,root) %{_bindir}/installifd
-
-%doc doc/*
-%doc AUTHORS DRIVERS NEWS HELP README SECURITY
-%{_mandir}/man1/bundleTool.1.gz
-%{_mandir}/man8/pcscd.8.gz
+%attr(755,root,root) %{_sbindir}/update-reader.conf
+%{_libdir}/pcsc
+%dir %{_sysconfdir}/reader.conf.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/reader.conf
+%ghost %{_sysconfdir}/reader.conf
+%attr(754,root,root) /etc/rc.d/init.d/pcscd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pcscd
+%{_mandir}/man5/reader.conf.5*
+%{_mandir}/man8/pcscd.8*
+%{_mandir}/man8/update-reader.conf.8*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpcsclite.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpcsclite.so.1
 
 %files devel
-%{_includedir}/*
+%defattr(644,root,root,755)
+%doc doc/*.pdf
+%attr(755,root,root) %{_libdir}/libpcsclite.so
+%{_libdir}/libpcsclite.la
+%{_includedir}/PCSC
+%{_pkgconfigdir}/libpcsclite.pc
+%{_examplesdir}/%{name}-%{version}
 
 %files static
-%{_libdir}/*\.a
-
-%files libs
-%{_libdir}/*so*
-%{_libdir}/libpcsc*\.la
-
-#/etc/init.d/pcscd
-#/etc/rc.d/rc0.d/K81pcscd
-#/etc/rc.d/rc1.d/K81pcscd
-#/etc/rc.d/rc2.d/S21pcscd
-#/etc/rc.d/rc3.d/S21pcscd
-#/etc/rc.d/rc4.d/S21pcscd
-#/etc/rc.d/rc5.d/S21pcscd
-#/etc/rc.d/rc6.d/K81pcscd
+%defattr(644,root,root,755)
+%{_libdir}/libpcsclite.a
This page took 0.0338 seconds and 4 git commands to generate.