]>
Commit | Line | Data |
---|---|---|
f8db5a79 | 1 | # TODO: |
f8db5a79 | 2 | # - revise split (e.g. which data should go to -tools) |
5e288395 | 3 | # |
79fec81d JB |
4 | # Conditional build: |
5 | %bcond_without static_libs # static library | |
6 | # | |
dc87e55d | 7 | Summary: A library for easy access to smart cards (chipcards) |
4f9e147b | 8 | Summary(pl.UTF-8): Biblioteka łatwego dostępu do kart procesorowych |
dc87e55d | 9 | Name: libchipcard |
79fec81d | 10 | Version: 5.0.4 |
08d17c58 | 11 | Release: 2 |
f8db5a79 | 12 | License: LGPL v2.1 with OpenSSL linking exception |
dc87e55d | 13 | Group: Libraries |
79fec81d JB |
14 | #Source0Download: https://www.aquamaniac.de/sites/download/packages.php |
15 | Source0: https://www.aquamaniac.de/sites/download/download.php?package=02&release=200&file=01&dummy=/%{name}-%{version}.tar.gz | |
16 | # Source0-md5: f26766f5e699899ed8b2b6e6b188de73 | |
17 | URL: https://www.aquamaniac.de/sites/libchipcard/ | |
e982c8ef | 18 | BuildRequires: autoconf >= 2.60 |
3a78357f | 19 | BuildRequires: automake |
e982c8ef JB |
20 | BuildRequires: gwenhywfar-devel >= 4.0.0 |
21 | BuildRequires: libstdc++-devel | |
3a78357f | 22 | BuildRequires: libtool |
4558d544 | 23 | BuildRequires: pcsc-lite-devel >= 1.6.2 |
f8db5a79 | 24 | BuildRequires: pkgconfig |
fca65264 | 25 | BuildRequires: which |
e982c8ef | 26 | BuildRequires: zlib-devel |
e982c8ef | 27 | Requires: gwenhywfar >= 4.0.0 |
dc87e55d JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
f8db5a79 | 31 | libchipcard allows easy access to smart cards. It provides basic |
dc87e55d | 32 | access to memory and processor cards and has special support for |
f8db5a79 JB |
33 | German medical cards, German "GeldKarte" and HBCI (homebanking) cards |
34 | (both type 0 and type 1). It accesses the readers via CTAPI or IFD | |
35 | interfaces and has successfully been tested with Towitoko, Kobil, SCM, | |
36 | Orga, Omnikey and Reiner-SCT readers. | |
dc87e55d | 37 | |
df9ecee2 | 38 | %description -l pl.UTF-8 |
f8db5a79 JB |
39 | libchipcard pozwala na łatwy dostęp do kart procesorowych. Daje |
40 | podstawowy dostęp do kart pamięciowych i procesorowych, ma także | |
41 | specjalną obsługę niemieckich kart medycznych, niemieckich kart | |
42 | "GeldKarte" oraz kart HBCI (do homebankingu, zarówno typu 0 jak i 1). | |
43 | Z czytnikami komunikuje się poprzez interfejs CTAPI lub IFD, była | |
44 | testowana z czytnikami Towitoko, Kobil, SCM, Orga, Omnikey i | |
fca65264 | 45 | Reiner-SCT. |
dc87e55d JB |
46 | |
47 | %package devel | |
f8db5a79 JB |
48 | Summary: Header files for libchipcard |
49 | Summary(pl.UTF-8): Pliki nagłówkowe libchipcard | |
dc87e55d | 50 | Group: Development/Libraries |
771f2921 | 51 | Requires: %{name} = %{version}-%{release} |
e982c8ef JB |
52 | Requires: gwenhywfar-devel >= 4.0.0 |
53 | Requires: pcsc-lite-devel >= 1.6.2 | |
54 | Requires: zlib-devel | |
dc87e55d JB |
55 | |
56 | %description devel | |
57 | This package contains libchipcard-config and header files for writing | |
58 | programs using LibChipCard. | |
59 | ||
df9ecee2 JR |
60 | %description devel -l pl.UTF-8 |
61 | Ten pakiet zawiera libchipcard-config oraz pliki nagłówkowe do | |
62 | tworzenia programów używających LibChipCard. | |
dc87e55d | 63 | |
79fec81d JB |
64 | %package static |
65 | Summary: Static libchipcard library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka libchipcard | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static libchipcard library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka libchipcard. | |
75 | ||
dc87e55d | 76 | %package tools |
f8db5a79 JB |
77 | Summary: Terminal tools and daemons for libchipcard |
78 | Summary(pl.UTF-8): Narzędzia terminalowe i demony dla libchipcard | |
dc87e55d | 79 | Group: Applications |
5e288395 | 80 | Requires(post,preun): /sbin/chkconfig |
771f2921 | 81 | Requires: %{name} = %{version}-%{release} |
5e288395 | 82 | Requires: rc-scripts |
dc87e55d JB |
83 | |
84 | %description tools | |
f8db5a79 | 85 | This package contains the terminal tools and daemons for libchipcard. |
dc87e55d JB |
86 | The most important daemon here is chipcardd which is needed to access |
87 | local card readers. | |
88 | ||
df9ecee2 | 89 | %description tools -l pl.UTF-8 |
f8db5a79 | 90 | Ten pakiet zawiera narzędzia terminalowe oraz demony dla libchipcard, |
df9ecee2 JR |
91 | w tym najważniejszego demona, chipcardd, potrzebnego do dostępu do |
92 | lokalnych czytników kart. | |
dc87e55d JB |
93 | |
94 | %prep | |
95 | %setup -q | |
96 | ||
97 | %build | |
3a78357f | 98 | %{__libtoolize} |
f8db5a79 | 99 | %{__aclocal} -I m4 |
3a78357f | 100 | %{__autoconf} |
f8db5a79 | 101 | %{__autoheader} |
3a78357f | 102 | %{__automake} |
dc87e55d | 103 | %configure \ |
79fec81d | 104 | %{!?with_static_libs:--disable-static} \ |
e982c8ef | 105 | --with-init-script-dir=/etc/rc.d/init.d \ |
3afc594d | 106 | --with-pcsc-libs=%{_libdir} |
dc87e55d JB |
107 | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
dc87e55d JB |
112 | |
113 | %{__make} install \ | |
e982c8ef | 114 | DESTDIR=$RPM_BUILD_ROOT |
dc87e55d | 115 | |
79fec81d JB |
116 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/chipcard/chipcardc.conf{.default,} |
117 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/chipcard/chipcardc.conf.example \ | |
118 | $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
119 | $RPM_BUILD_ROOT%{_libdir}/gwenhywfar/plugins/*/ct/*.la | |
120 | %if %{with static_libs} | |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gwenhywfar/plugins/*/ct/*.a | |
122 | %endif | |
dc87e55d JB |
123 | |
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post -p /sbin/ldconfig | |
128 | %postun -p /sbin/ldconfig | |
129 | ||
dc87e55d JB |
130 | %files |
131 | %defattr(644,root,root,755) | |
f8db5a79 | 132 | %doc AUTHORS ChangeLog NEWS README TODO doc/{CERTIFICATES,CONFIG,IPCCOMMANDS} etc/*.conf.* |
4558d544 | 133 | %attr(755,root,root) %{_libdir}/libchipcard.so.*.*.* |
134 | %attr(755,root,root) %ghost %{_libdir}/libchipcard.so.6 | |
135 | %dir %{_datadir}/chipcard | |
136 | %dir %{_datadir}/chipcard/drivers | |
137 | %{_datadir}/chipcard/drivers/*.xml | |
138 | %dir %{_datadir}/chipcard/apps | |
139 | %dir %{_datadir}/chipcard/cards | |
140 | %{_datadir}/chipcard/apps/*.xml | |
141 | %{_datadir}/chipcard/cards/*.xml | |
142 | %dir %{_datadir}/chipcard/cards/cyberjack_pcsc | |
143 | %{_datadir}/chipcard/cards/cyberjack_pcsc/*.xml | |
144 | %dir %{_datadir}/chipcard/cards/generic_pcsc | |
145 | %{_datadir}/chipcard/cards/generic_pcsc/*.xml | |
79fec81d JB |
146 | %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/ct/ddvcard.so |
147 | %{_libdir}/gwenhywfar/plugins/*/ct/ddvcard.xml | |
148 | %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/ct/starcoscard.so | |
149 | %{_libdir}/gwenhywfar/plugins/*/ct/starcoscard.xml | |
150 | %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/ct/zkacard.so | |
151 | %{_libdir}/gwenhywfar/plugins/*/ct/zkacard.xml | |
f8db5a79 | 152 | # used by libchipcardc |
f6461bb3 | 153 | %dir %{_sysconfdir}/chipcard |
4558d544 | 154 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chipcard/chipcardc.conf |
dc87e55d JB |
155 | |
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
f8db5a79 | 158 | %attr(755,root,root) %{_bindir}/chipcard-config |
4558d544 | 159 | %attr(755,root,root) %{_libdir}/libchipcard.so |
4558d544 | 160 | %{_includedir}/libchipcard5 |
f8db5a79 | 161 | %{_aclocaldir}/chipcard.m4 |
dc87e55d | 162 | |
79fec81d JB |
163 | %if %{with static_libs} |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/libchipcard.a | |
167 | %endif | |
168 | ||
f8db5a79 | 169 | %files tools |
dc87e55d | 170 | %defattr(644,root,root,755) |
dc87e55d | 171 | %attr(755,root,root) %{_bindir}/cardcommander |
f8db5a79 | 172 | %attr(755,root,root) %{_bindir}/chipcard-tool |
dc87e55d | 173 | %attr(755,root,root) %{_bindir}/geldkarte |
f8db5a79 | 174 | %attr(755,root,root) %{_bindir}/kvkcard |
dc87e55d | 175 | %attr(755,root,root) %{_bindir}/memcard |