3 %bcond_without gtk # don't build GTK+ tools
5 Summary: Some tools to be used with smart cards and PC/SC
6 Summary(pl.UTF-8): Narzędzia do używania z czytnikami Smart Card i PC/SC
12 Source0: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/%{name}-%{version}.tar.bz2
13 # Source0-md5: 4f4d917f5d3fda88167e2bf78cbd4c3b
14 # broken builder script, original url:
15 # http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt
16 Source1: smartcard_list.txt
17 # NoSource1-md5: 19f39f992cc32241a56bb0ba9561a38c
18 URL: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
19 BuildRequires: autoconf >= 2.69
20 BuildRequires: automake >= 1:1.8
21 BuildRequires: pcsc-lite-devel >= 1.6.0
22 BuildRequires: perl-PCSC >= 1.2.0
23 %{?with_gtk:BuildRequires: perl-Gtk2}
24 BuildRequires: pkgconfig
25 BuildRequires: rpm-perlprov
26 BuildRequires: sed >= 4.0
27 Requires: pcsc-lite-libs >= 1.6.0
28 Requires: perl-PCSC >= 1.2.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Some tools to be used with smart cards and PC/SC.
34 %description -l pl.UTF-8
35 Narzędzia do używania z czytnikami Smart Card i PC/SC.
38 Summary: Some tools for smart cards and PC/SC with GTK+ GUI
39 Summary(pl.UTF-8): Narzędzia dla czytników Smart Card i PC/SC z GUI w GTK+
40 Group: X11/Applications
41 Requires: perl-PCSC >= 1.2.0
44 Some tools for smart cards and PC/SC with GTK+ GUI.
46 %description gtk -l pl.UTF-8
47 Narzędzia dla czytników Smart Card i PC/SC z GUI w GTK+.
52 # paranoid check whether smartcard_list.txt in _sourcedir isn't too old
53 if [ "`wc -l < %{SOURCE1}`" -lt "`wc -l < smartcard_list.txt`" ] ; then
54 echo "smartcard_list.txt needs to be updated"
59 %{__sed} -i -e '1s,/usr/bin/env perl,/usr/bin/perl,' ATR_analysis gscriptor scriptor
67 --disable-silent-rules
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/ATR_analysis
84 %attr(755,root,root) %{_bindir}/pcsc_scan
85 %attr(755,root,root) %{_bindir}/scriptor
87 %{_datadir}/pcsc/smartcard_list.txt
88 %{_mandir}/man1/ATR_analysis.1p*
89 %{_mandir}/man1/pcsc_scan.1*
90 %{_mandir}/man1/scriptor.1p*
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/gscriptor
96 %{_mandir}/man1/gscriptor.1p*