]> git.pld-linux.org Git - packages/pcsc-tools.git/blob - pcsc-tools.spec
336fc7902ed80964e1196d86ba2cdcf2b22af816
[packages/pcsc-tools.git] / pcsc-tools.spec
1 #
2 # Conditional build:
3 %bcond_without  gtk     # don't build GTK+ tools
4 #
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
7 Name:           pcsc-tools
8 Version:        1.5.4
9 Release:        1
10 License:        GPL v2+
11 Group:          Applications
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)
30
31 %description
32 Some tools to be used with smart cards and PC/SC.
33
34 %description -l pl.UTF-8
35 Narzędzia do używania z czytnikami Smart Card i PC/SC.
36
37 %package gtk
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
42
43 %description gtk
44 Some tools for smart cards and PC/SC with GTK+ GUI.
45
46 %description gtk -l pl.UTF-8
47 Narzędzia dla czytników Smart Card i PC/SC z GUI w GTK+.
48
49 %prep
50 %setup -q
51
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"
55         exit 1
56 fi
57 cp -f %{SOURCE1} .
58
59 %{__sed} -i -e '1s,/usr/bin/env perl,/usr/bin/perl,' ATR_analysis gscriptor scriptor
60
61 %build
62 %{__aclocal}
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure \
67         --disable-silent-rules
68
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc Changelog README
83 %attr(755,root,root) %{_bindir}/ATR_analysis
84 %attr(755,root,root) %{_bindir}/pcsc_scan
85 %attr(755,root,root) %{_bindir}/scriptor
86 %dir %{_datadir}/pcsc
87 %{_datadir}/pcsc/smartcard_list.txt
88 %{_mandir}/man1/ATR_analysis.1p*
89 %{_mandir}/man1/pcsc_scan.1*
90 %{_mandir}/man1/scriptor.1p*
91
92 %if %{with gtk}
93 %files gtk
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/gscriptor
96 %{_mandir}/man1/gscriptor.1p*
97 %endif
This page took 0.076779 seconds and 2 git commands to generate.