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