Name: pcsc-tools Version: 1.4.1 Release: 2%{?dist} Summary: Tools to be used with smart cards and PC/SC Group: Development/Tools License: GPL URL: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/ Source0: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/%{name}-%{version}.tar.gz Source1: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt Source2: %{name}-gscriptor.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: pcsc-lite-devel Requires: pcsc-lite %description The pcsc-tools package contains some tools useful for a PC/SC user. The tools provided are: * pcsc_scan(1) scans available smart card readers and print detected events: card insertion with ATR, card removal; * ATR_analysis(1) analyses a smart card ATR (Anwser To Reset) * scriptor(1) Perl script to send commands to a smart card using a batch file or stdin; * gscriptor(1) the same idea as scriptor(1) but with Perl-Gtk GUI. %prep %setup -q sed -i -e 's/-O2 -g/$(RPM_OPT_FLAGS)/' Makefile sed -i -e 's|/usr/lib/pcsc\b|%{_datadir}/pcsc|' ATR_analysis* if ! pkg-config --atleast-version 1.2.9 libpcsclite ; then sed -i -e 's/LPTSTR/LPSTR/' pcsc_scan.c fi iconv -f iso-8859-1 -t utf-8 %{SOURCE1} > smartcard_list.txt cp -p %{SOURCE2} gscriptor.desktop %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT%{_prefix} install -dm 755 $RPM_BUILD_ROOT%{_datadir}/pcsc mv $RPM_BUILD_ROOT%{_prefix}/pcsc/* $RPM_BUILD_ROOT%{_datadir}/pcsc rmdir $RPM_BUILD_ROOT%{_prefix}/pcsc desktop-file-install \ --vendor=fedora \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ --mode=644 \ --add-category=X-Fedora \ gscriptor.desktop # TODO: icon %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changelog LICENCE README TODO %{_bindir}/* %{_datadir}/applications/*gscriptor.desktop %{_datadir}/pcsc/ %{_mandir}/man1/*.1* %changelog * Sat Feb 18 2006 Ville Skyttä - 1.4.1-2 - Update smartcard_list.txt to 20060205. * Tue Dec 13 2005 Ville Skyttä - 1.4.1-1 - Update smartcard_list.txt to 20051127 and convert it to UTF-8. - Improve summary and description. - Add "Application" desktop entry category for legacy distros. - Drop BR: sed. * Sat Oct 15 2005 Ville Skyttä - 1.4.1-0.2 - Update smartcard_list.txt to 20051011. - Specfile cleanups. * Wed Oct 5 2005 Ville Skyttä - 1.4.1-0.1 - 1.4.1, patched to compile with pcsc-lite < 1.2.9-beta4. - Move smartcard_list.txt to %%{_datadir}/pcsc. - Add menu entry for gscriptor. * Sat May 28 2005 Ville Skyttä - 1.3.3-0.1 - Rebuild for FC4. * Thu Jul 1 2004 Ville Skyttä - 0:1.3.3-0.fdr.4 - Requires pcsc-lite (not too useful without the daemon). - Update smartcard_list.txt to 1.72. * Thu May 27 2004 Ville Skyttä - 0:1.3.3-0.fdr.3 - Due to use of pkg-config, BuildRequires pcsc-lite-devel >= 1.2.0 (bug 1282). - Update smartcard_list.txt to 1.71 (bug 1282). * Wed May 12 2004 Ville Skyttä - 0:1.3.3-0.fdr.2 - Patch to get PC/SC Lite CFLAGS and libs from pkg-config. - Update smartcard_list (1.70). * Fri Apr 2 2004 Ville Skyttä - 0:1.3.3-0.fdr.1 - Update to 1.3.3. * Tue Feb 10 2004 Ville Skyttä - 0:1.3.2-0.fdr.2 - Update smartcard_list (1.64). * Wed Dec 17 2003 Ville Skyttä - 0:1.3.2-0.fdr.1 - Update to 1.3.2. * Thu Oct 30 2003 Ville Skyttä - 0:1.3.1-0.fdr.1 - Update to 1.3.1. * Sun Sep 14 2003 Ville Skyttä - 0:1.3.0-0.fdr.4 - Own %%{_libdir}/pcsc. - Spec cleanups. * Sun Aug 31 2003 Ville Skyttä - 0:1.3.0-0.fdr.3 - Updated smartcard_list.txt (1.43). * Wed Aug 27 2003 Ville Skyttä - 0:1.3.0-0.fdr.2 - Spec cleanups. * Sun Jun 1 2003 Ville Skyttä - 0:1.3.0-0.fdr.1 - Update to 1.3.0. * Sun May 25 2003 Ville Skyttä - 0:1.2.5-0.fdr.1 - Update to 1.2.5. * Fri May 23 2003 Ville Skyttä - 0:1.2.4-0.fdr.1 - First build.