Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37503872
en ru br
Репозитории ALT
S:0.23.0-alt2
5.1: 0.11.9-alt3
4.1: 0.11.6-alt0.M41.1
4.0: 0.11.6-alt0.M40.1
3.0: 0.8.1-alt4.1
www.altlinux.org/Changes

Группа :: Система/Настройка/Оборудование
Пакет: opensc

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

%def_disable static
# %define unstable 1
#add_findprov_lib_path %_libdir/pkcs11

Name: opensc
Version: 0.11.6
Release: alt0.M41.1

Group: System/Configuration/Hardware
Summary: OpenSC - Smart card library and applications
Url: http://www.opensc-project.org/
License: LGPL

Requires: lib%name = %version-%release

Source: %name-%version.tar
Source1: readme.alt

Patch70: %name-%version-%release-super.patch
Packager: Andriy Stepanov <stanv at altlinux.ru>

# Automatically added by buildreq on Mon Dec 08 2008

BuildRequires: gcc-c++ gcc-fortran glibc-devel-static libassuan-devel libltdl-devel libopenct-devel libreadline-devel libssl-devel rpm-build-java subversion wget xsltproc zlib-devel

%description
OpenSC is a package for for accessing smart card devices.  Basic
functionality (e.g. SELECT FILE, READ BINARY) should work on any ISO
7816-4 compatible smart card.  Encryption and decryption using private
keys on the smart card is possible with PKCS #15 compatible cards,
such as the FINEID (Finnish Electronic IDentity) card.  Swedish Posten
eID cards have also been confirmed to work.

%package -n lib%name
Group: System/Libraries
Summary: OpenSC library - for accessing SmartCard devices

%description -n lib%name
Library files for OpenSC package.

%package -n lib%name-devel
Group: Development/Other
Summary: OpenSC development files
Requires: lib%name = %version-%release

%description -n lib%name-devel
OpenSC development files.

%package -n lib%name-devel-static
Group: Development/Other
Summary: Static OpenSC libraries
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Static OpenSC libraries.

%package -n pam_opensc
Group: System/Base
Summary: OpenSC module for PAM
License: GPL
Requires: lib%name = %version-%release

%description -n pam_opensc
OpenSC module for PAM.

%prep
%setup -q
#%patch70 -p1

%build
%__autoreconf
%if %unstable
%define optflags_debug -g
%define _optlevel 0
%add_optflags %optflags_debug
%def_enable debug
%endif

%add_optflags %optflags_debug %optflags_shared
export CFLAGS="%optflags"
%configure \
    %{subst_enable static} \
   --enable-shared \
   --disable-rpath \
   --enable-zlib \
   --enable-readline \
   --enable-openssl \
   --enable-openct \
   --enable-pcsc \
   --with-pic \
   --with-pin-entry=%_bindir/pinentry \
   --with-plugin-dir=%_libdir/mozilla/plugins

%make_build

%install
%if %unstable
%set_strip_method none
%endif
%__make install DESTDIR=$RPM_BUILD_ROOT

mkdir -p %buildroot/%_sysconfdir/
install -m 640 etc/opensc.conf %buildroot/%_sysconfdir/opensc.conf

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files
%doc doc/nonpersistent/ChangeLog
%doc doc/nonpersistent/wiki.out
%doc doc/html.out/tools.html
%doc NEWS README COPYING
%attr(0644,root,root) %config(noreplace) %_sysconfdir/opensc.conf
%exclude %_bindir/opensc-config
%_bindir/*
%_man1dir/*
%_man5dir/*

%files -n lib%name
%_libdir/lib*.so.*
%_libdir/opensc-pkcs11.so*
%_libdir/pkcs11-spy.so*
%_libdir/onepin-opensc-pkcs11.so*
%dir %_libdir/pkcs11
%_libdir/pkcs11/pkcs11-spy.so
%_libdir/pkcs11/opensc-pkcs11.so
%_libdir/pkcs11/onepin-opensc-pkcs11.so
%dir %_datadir/opensc
%_datadir/opensc/*.profile

%files -n lib%name-devel
%doc doc/html.out/api.html
%_pkgconfigdir/*
%_bindir/opensc-config
%_libdir/libopensc.so
%_libdir/libpkcs15init.so
%_libdir/libscconf.so
%_includedir/opensc
%_man3dir/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/libopensc.a
%_libdir/libpkcs15init.a
%_libdir/libscconf.a
%_libdir/libscldap.a
%endif

%changelog

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

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