File libchipcard4.spec of Package libchipcard4
#
# spec file for package libchipcard4 (Version 4.2.8)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libchipcard4
BuildRequires: doxygen gcc-c++ graphviz graphviz-gd gwenhywfar-devel libusb-devel opensc-devel pkg-config sysfsutils xorg-x11-fonts
License: GPL v2 or later
Group: Hardware/Other
Version: 4.2.8
Release: 3
Summary: Library That Allows Easy Access to Smart Cards (Chipcards)
Url: http://www.libchipcard.de/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %insserv_prereq
%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 "Geldkarten," and HBCI (home banking) cards (both
type 0 and type 1). It accesses the readers via CTAPI or PC/SC
interfaces and has successfully been tested with Towitoko, Kobil, and
Reiner-SCT readers.
Authors:
--------
Martin Preuß <martin@libchipcard.de>
%package -n libchipcardc2
License: GPL v2 or later
Group: System/Libraries
Summary: Library That Allows Easy Access to Smart Cards (Chipcards)
%description -n libchipcardc2
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Martin Preuß <martin@libchipcard.de>
%package -n libchipcard_ctapi0
License: GPL v2 or later
Group: System/Libraries
Summary: Library That Allows Easy Access to Smart Cards (Chipcards)
%description -n libchipcard_ctapi0
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Martin Preuß <martin@libchipcard.de>
%package devel
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Include Files and Libraries mandatory for Development
Requires: libchipcardc2 = %{version} libchipcard_ctapi0 = %{version} gwenhywfar-devel libusb-devel pcsc-lite-devel sysfsutils
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Martin Preuß <martin@libchipcard.de>
%prep
%setup -q
%build
ACLOCAL="aclocal -I m4" autoreconf -f -i
%configure\
--enable-release\
--enable-full-doc\
--disable-static\
--with-pic
make %{?jobs:-j%jobs}
make srcdoc %{?jobs:-j%jobs}
%install
%makeinstall
chmod +x $RPM_BUILD_ROOT%{_sysconfdir}/init.d/chipcardd
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -a AUTHORS COPYING ChangeLog NEWS README TODO apidoc $RPM_BUILD_ROOT%{_docdir}/%{name}
rm $RPM_BUILD_ROOT%{_libdir}/*.la
ln -s %{_sysconfdir}/init.d/chipcardd $RPM_BUILD_ROOT%{_sbindir}/rcchipcardd
%clean
rm -rf $RPM_BUILD_ROOT
%preun
%{stop_on_removal chipcardd}
%post
%{fillup_and_insserv -f chipcardd}
%postun
%{restart_on_update chipcardd}
%{insserv_cleanup chipcardd}
%post -n libchipcardc2 -p /sbin/ldconfig
%postun -n libchipcardc2 -p /sbin/ldconfig
%post -n libchipcard_ctapi0 -p /sbin/ldconfig
%postun -n libchipcard_ctapi0 -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc %{_docdir}/%{name}
%exclude %{_docdir}/%{name}/apidoc
%{_bindir}/*
%exclude %{_bindir}/*-config
%{_datadir}/chipcard
%{_libdir}/chipcard
%{_libdir}/gwenhywfar/plugins/47/ct/*
%{_sbindir}/*
%config %{_sysconfdir}/chipcard
%{_sysconfdir}/init.d/chipcardd
%files -n libchipcardc2
%defattr (-, root, root)
%{_libdir}/libchipcardc.so.2*
%files -n libchipcard_ctapi0
%defattr (-, root, root)
%{_libdir}/libchipcard_ctapi.so.0*
%files devel
%defattr (-, root, root)
%doc %{_docdir}/%{name}/apidoc
%{_bindir}/*-config
%{_libdir}/*.so
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%changelog