Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37705670
en ru br
Репозитории ALT
S:0.6.20-alt4.qa1
5.1: 0.6.17-alt1
4.1: 0.6.15-alt0.M41.1
4.0: 0.6.15-alt0.M40.1
3.0: 0.5.0-alt2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: openct

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable static

Name: openct
Version: 0.6.15
Release: alt0.M40.1

Group: System/Servers
Summary: OpenCT Library for Smart Card Readers
License: LGPL
Url: http://www.opensc-project.org/
Packager: Andriy Stepanov <stanv at altlinux.ru>

Requires: lib%name = %version-%release

Source0: %name-%version.tar
Source1: readme.alt
Source10: openct.startup

Patch70: %name-%version-%release-super.patch

Requires: udev

# Automatically added by buildreq on Mon Dec 08 2008

BuildRequires: doxygen gcc-c++ gcc-fortran glibc-devel-static libltdl-devel libpcsclite-devel libusb-devel rpm-build-java subversion wget xsltproc

BuildRequires: libstdc++-devel

%if_enabled static
BuildRequires: libstdc++-devel-static libpcsclite-devel-static libusb-devel-static
%endif

%description
This is OpenCT, a middleware framework for smart card terminals.

Currently, OpenCT supports the following set of card terminals
and USB tokens:

-      Towitoko serial readers
-      Kobil Kaan Professional (including PIN pad support)
-      Aladdin eToken
-      Rainbow iKey 3000
-      Cryptoflex eGate
-      Eutron Cypto-Identity ITSEC

More drivers are currently under development.

OpenCT currently does not work with synchronous smart cards (e.g.
memory cards).

%package -n lib%name
Group: System/Libraries
Summary: Library for accessing Smartcards

%description -n lib%name
These are the shared libraries for the smartcard terminal middleware
OpenCT.
If you want to compile applications using this library, you also need
the %name-devel package.

%package -n lib%name-devel
Requires: lib%name = %version
Group: System/Libraries
Summary: Supplementary files for developing %name applications
Requires: lib%name = %version-%release

%description -n lib%name-devel
Header files and documentation for %name.

%package -n lib%name-devel-static
Requires: lib%name = %version
Group: System/Libraries
Summary: Supplementary files for developing %name applications
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
static libraries for %name.

%package -n %name-pcsc-lite
Requires: libpcsclite
Group: System/Libraries
Summary: OpenCT PC/SC Lite driver

%description -n %name-pcsc-lite
The OpenCT PC/SC Lite driver makes smart card readers supported by
OpenCT available for PC/SC Lite.

%prep
%setup -q
%patch70 -p1

%build
# %__autoreconf
%add_optflags %optflags_shared
export CFLAGS="%optflags"
%configure \
    %{subst_enable static} \
   --enable-shared \
   --enable-pcsclite \
   --enable-pcsc \
   --enable-usb \
   --disable-rpath \
   --with-pic \
   --with-bundle=%_libdir/pcsc/drivers \
   --with-udev=/lib/udev

%make
%make -k check


%install
%make install DESTDIR=%buildroot

install -d %buildroot%_localstatedir/openct
install -d %buildroot%_libdir/ifd
install -d %buildroot%_initdir
install -d %buildroot%_docdir/%name-%version
install -d %buildroot%_bindir
install -d %buildroot%_sysconfdir/udev/rules.d

cp etc/openct.udev %buildroot%_sysconfdir/udev/rules.d/60-openct.rules
cp etc/openct.conf %buildroot%_sysconfdir/

install -m 755 %SOURCE10 %buildroot/%_initdir/%name

rm -rf etc_samples
cp -ar etc etc_samples
rm -f etc_samples/Makefile* etc_samples/*.in

%post
%post_service %name
%preun
%preun_service %name

%post -n lib%name
%post_ldconfig
%postun -n lib%name
%postun_ldconfig


%files
%doc doc/README NEWS TODO doc/nonpersistent/ChangeLog doc/nonpersistent/wiki.out etc_samples
%_man1dir/*.*
%_bindir/*
%_sbindir/*
%_initdir/%name
%config(noreplace) %_sysconfdir/openct.conf
%config(noreplace) %_sysconfdir/udev/rules.d/*
/lib/udev/*

%files -n lib%name
%_libdir/*.so.*
%_libdir/ifd
%_localstatedir/openct
%_libdir/libopenctapi.so
%_libdir/openct-ifd.so

%files -n lib%name-devel
%exclude %_libdir/libopenctapi.so
%exclude %_libdir/openct-ifd.so
%_libdir/*.so
%_pkgconfigdir/*.pc
%_includedir/%name

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files -n %name-pcsc-lite
%_libdir/pcsc/drivers/openct-ifd.bundle

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin