Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37399526
en ru br
ALT Linux repositórios
S:5.1.6-alt1
5.0: 4.2.3-alt1
4.1: 4.0.0-alt1
4.0: 0.9.1-alt0.1.1

Group :: Sistema/Bibliotecas
RPM: libchipcard

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# libusb-devel with m4
# libsysfs
%define pre %nil
Name: libchipcard
Version: 4.0.0
Release: alt1

Summary: A library for easy access to smart cards (chipcards)

License: LGPL
Group: System/Libraries
Url: http://www.libchipcard.de/

Packager: Vitaly Lipatov <lav at altlinux.ru>

# http://www.aquamaniac.de/sites/download/packages.php

Source: http://dl.sourceforge.net/libchipcard/%name-%version%pre.tar.bz2
Source1: %name.init

Patch0: %name-etc.patch
Patch1: %name-am18.patch

# Automatically added by buildreq on Tue Apr 22 2008

BuildRequires: gcc-c++ glibc-devel libgwenhywfar-devel libpcsclite-devel libsysfs-devel

BuildRequires: rpm-build-compat

Provides: libchipcard2
Obsoletes: libchipcard2

%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 (homebanking) 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.

%package devel
Summary: Header files for LibChipCard
Group: Development/Other
Requires: %name = %version
Provides: libchipcard2-devel
Obsoletes: libchipcard2-devel

%description devel
This package contains libchipcard-config and header files for writing
programs using LibChipCard.

%package tools
Summary: Terminal tools and daemons for LibChipCard
License: GPL
Group: Communications
Requires: %name = %version
Provides: libchipcard2-tools
Obsoletes: libchipcard2-tools


%description tools
This package contains the terminal tools and daemons for LibChipCard.
The most important daemon here is chipcardd which is needed to access
local card readers.

%prep
%setup -q -n %name-%version%pre
#%patch0 -p1
#%patch1 -p1

%build
#%__autoreconf
%configure \
--with-pid-dir=/var/run \
--disable-static

make

%install
%makeinstall_std

install -d %buildroot%_initrddir
install %SOURCE1 %buildroot%_initrddir/chipcardd
#install example/chipcardc.conf %buildroot%_sysconfdir
#install example/chipcardd.conf %buildroot%_sysconfdir

#rm -f doc/html/{Makefile*,pics/Makefile*}

rm -rf %buildroot%_datadir/locale/de
rm -f %buildroot/etc/init.d/chipcardd

%find_lang %name

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%post tools
%post_service chipcardd

%preun tools
%preun_service chipcardd

%files
# COPYING contains only summary, note *GPL texts themselves
%doc AUTHORS COPYING ChangeLog README* TODO
%_libdir/*.so.*
#%_datadir/libchipcard
%_sysconfdir/chipcard/
%_libdir/chipcard/
%_libdir/gwenhywfar/plugins/47/ct/*
#%config(noreplace) %verify(not md5 mtime size) %_sysconfdir/chipcardc.conf
#%_man5dir/libchipcard.conf.5*
#%_man5dir/chipcardc.conf.5*

%files devel
#%doc doc/*.txt doc/html/*
#%attr(755,root,root) %_bindir/libchipcard-config
%_libdir/*.so
%_datadir/chipcard/
#%_libdir/libchipcard.la
%_includedir/*
#%_includedir/chipcard/
#%_includedir/chipcard.h
#%_includedir/ctversion.h
%_aclocaldir/*
#%_man1dir/libchipcard-config.1*

%files tools -f %name.lang
%_bindir/*
%_sbindir/chipcardd4
%attr(754,root,root) %_initrddir/chipcardd
#%config(noreplace) %verify(not md5 mtime size) %_sysconfdir/chipcardd.conf
#%_man1dir/*
#%_man5dir/*


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009