Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37682123
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.5.0
Release: alt2

Group: System/Servers
Summary: Smartcard Terminal Tnterface
License: BSD
Url: http://www.opensc.org

Requires: lib%name = %version-%release

Source0: http://www.opensc.org/files/%name-%version.tar.gz
Source10: openct.startup

# Automatically added by buildreq on Mon Apr 05 2004 (-bi)

BuildRequires: flex gcc-c++ gcc-g77 libpcsclite-devel libstdc++-devel libusb-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.

%prep
%setup -q

%build
%add_optflags %optflags_shared
export CFLAGS="%optflags"
%configure \
    %{subst_enable static} \
    --with-pcsclite \
    --with-pcsc
%make
%make -k check

%install
%make install DESTDIR=%buildroot

install -d %buildroot/%_localstatedir/run/openct
install -d %buildroot/%_libdir/ifd

install -d %buildroot/%_sysconfdir/hotplug/usb
install -d %buildroot/%_initdir
cp %_builddir/%name-%version/%_sysconfdir/openct.conf %buildroot/%_sysconfdir/

install -m 755 %SOURCE10 %buildroot/%_initdir/%name
install -m 755  %_builddir/%name-%version/%_sysconfdir/hotplug.openct %buildroot/%_sysconfdir/hotplug/usb/%name

# reference to home or tmp

#rm -rf %buildroot/%_libdir/libifd.la

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

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

%files
%doc ANNOUNCE README NEWS
%doc doc/%name.*
%_bindir/*
%_sbindir/*
%config(noreplace) %_initdir/%name
%config(noreplace) %_sysconfdir/openct.conf
%config(noreplace) %_sysconfdir/hotplug/usb/%name

%files -n lib%name
%doc AUTHORS ChangeLog TODO
%_libdir/*.so.*
%_libdir/ifd
%dir %_localstatedir/run/
%_localstatedir/run/openct

%files -n lib%name-devel
%doc AUTHORS ChangeLog TODO
%_libdir/*.so
%_libdir/pkgconfig/*.pc
%dir %_includedir/%name
%_includedir/%name/*.h

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

%changelog

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

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