]> git.pld-linux.org Git - packages/pcsc-lite.git/blobdiff - pcsc-lite.spec
- updated to 1.3.3
[packages/pcsc-lite.git] / pcsc-lite.spec
index 8006d571aecd81d1785d5909d61b128226b968e6..aacd48f7096a946f3404b3f9d332f77fb3171840 100644 (file)
@@ -1,30 +1,32 @@
 Summary:       Muscle PCSC Framework for Linux
 Summary(pl):   ¦rodowisko PCSC dla Linuksa
 Name:          pcsc-lite
-Version:       1.2.0
+Version:       1.3.3
 Release:       1
 License:       BSD
 Group:         Daemons
-#Source0Download: https://alioth.debian.org/project/showfiles.php?group_id=1225
-Source0:       https://alioth.debian.org/download.php/419/%{name}-%{version}.tar.gz
-# Source0-md5: 98456d274b2f4bfe74c5ab59070f8d50
+#Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105
+Source0:       http://alioth.debian.org/frs/download.php/1869/%{name}-%{version}.tar.gz
+# Source0-md5: 851b090aa0efedd0196f6afd9c0c61bb
 Source1:       %{name}-pcscd.init
 Source2:       %{name}-pcscd.sysconfig
 Patch0:                %{name}-fhs.patch
-Patch1:                %{name}-link.patch
-Patch2:                %{name}-amfix.patch
+Patch1:                %{name}-any.patch
 URL:           http://www.linuxnet.com/middle.html
-BuildRequires: autoconf >= 2.52
-BuildRequires: automake
+BuildRequires: autoconf >= 2.58
+BuildRequires: automake >= 1:1.8
 BuildRequires: flex
 BuildRequires: libtool >= 1.4.2-9
-BuildRequires: libusb-devel
-PreReq:                rc-scripts
+BuildRequires: libusb-devel >= 0.1.7
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires(pre): fileutils
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                muscledropdir   /usr/lib/pcsc/services
-%define                usbdropdir      /usr/lib/pcsc/drivers
+%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
@@ -56,7 +58,7 @@ Biblioteki PC/SC Lite.
 %package devel
 Summary:       PC/SC Lite development files
 Summary(pl):   Pliki dla programistów u¿ywaj±cych PC/SC Lite
-Group:         Development/Tools
+Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
@@ -68,7 +70,7 @@ Pliki dla programist
 %package static
 Summary:       Static PC/SC Lite libraries
 Summary(pl):   Biblioteki statyczne PC/SC Lite
-Group:         Development/Tools
+Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
@@ -80,10 +82,11 @@ Statyczne biblioteki PC/SC Lite.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
-%{__aclocal} -I aclocal
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
@@ -96,37 +99,38 @@ Statyczne biblioteki PC/SC Lite.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{muscledropdir},%{usbdropdir}} \
+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
 
-# useful for drivers development
-install src/ifdhandler.h $RPM_BUILD_ROOT%{_includedir}
-
 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
-if [ -f /var/lock/subsys/pcscd ]; then
-       /etc/rc.d/init.d/pcscd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/pcscd start\" to start pcscd daemon."
-fi
+%service pcscd restart "pcscd daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/pcscd ]; then
-               /etc/rc.d/init.d/pcscd stop >&2
-       fi
+       %service pcscd stop
        /sbin/chkconfig --del pcscd
 fi
 
@@ -135,32 +139,33 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY doc/README.DAEMON
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/reader.conf
-%attr(754,root,root) /etc/rc.d/init.d/pcscd
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pcscd
+%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
+%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}/man1/formaticc.1*
-%{_mandir}/man8/bundleTool.8*
+%{_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}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/libpcsclite.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc doc/*.pdf
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*.h
-%{_pkgconfigdir}/*.pc
+%attr(755,root,root) %{_libdir}/libpcsclite.so
+%{_libdir}/libpcsclite.la
+%{_includedir}/PCSC
+%{_pkgconfigdir}/libpcsclite.pc
 %{_examplesdir}/%{name}-%{version}
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libpcsclite.a
This page took 0.04032 seconds and 4 git commands to generate.