-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibchipcard.spec.in
105 lines (85 loc) · 2.67 KB
/
libchipcard.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
%define name @PACKAGE@
%define version @VERSION@
%define rpm_cxxflags \"-O2 -march=i486 -mcpu=i586\"
%define rpm_cflags \"-O2 -march=i486 -mcpu=i586\"
%define dist @aq_distrib_name@
%define disttag @aq_distrib_tag@
%define distver @aq_distrib_version@
# Note: There is not yet a special symbol for the rpm release
# version. We set it to one here.
%define release 1.%{disttag}%{distver}
Summary: A library for easy access to smart cards (chipcards).
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://download.sourceforge.net/libchipcard/%{name}-%{version}.tar.gz
Requires: gwenhywfar
Group: Libraries/System
License: LGPL
Packager: Martin Preuss <[email protected]>
URL: http://www.libchipcard.de
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
Prefix: %{_prefix}
BuildRequires: gwenhywfar-devel >= 2.0.0
%description
Libchipcard allows easy access to smart cards. It provides basic access
to memory and processor cards and has special support for German medical
cards, German "GeldKarte" and HBCI (homebanking) cards (both type 0 and
type 1).
It accesses the readers via CTAPI or IFD interfaces and has successfully
been tested with Towitoko, Kobil, SCM, Orga, Omnikey and Reiner-SCT readers.
This package contains the chipcard-daemon needed to access card readers.
%package devel
Summary: LibChipCard server development kit
Group: Development/Libraries
%description devel
This package contains chipcard-config and header files for writing
drivers, services or even your own chipcard daemon for LibChipCard.
%package crypttoken
Summary: CryptToken Plugins for Gwenhywfar
Group: Development/Libraries
%description crypttoken
This package contains the CryptToken plugins for Gwenhywfar. These are used
by AqBanking to access chipcards for the German homebanking protocol HBCI.
%prep
%setup -q
%build
%{configure}
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} make DESTDIR=$RPM_BUILD_ROOT \
install
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
/sbin/chkconfig --add chipcardd
%preun
/sbin/chkconfig --del chipcardd
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,0755)
%doc README COPYING ChangeLog
%{_libdir}/libchipcardc.so
%{_libdir}/libchipcardc.so.*
%{_sysconfdir}/chipcard
%{_bindir}/cardcommander
%{_bindir}/chipcard-tool
%{_bindir}/geldkarte
%{_bindir}/kvkcard
%{_bindir}/memcard
%{_datadir}/chipcard
%files devel
%defattr(-,root,root,0755)
%doc README COPYING ChangeLog
%{_bindir}/chipcard-config
%{_includedir}/*
%{_libdir}/*.*a
%{_datadir}/aclocal/chipcard.m4
%files crypttoken
%defattr(-,root,root,0755)
%{_libdir}/gwenhywfar/plugins
%changelog