Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37040220
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: libpkcs11-helper

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

%define _name pkcs11-helper
%def_disable LibreSSL
%def_enable openssl
%def_disable LibreSSL # depends on openssl switch above
%def_disable gnutls
%def_disable nss
%def_disable polarssl
%def_disable mbedtls

Name: lib%_name
Version: 1.25.1
Release: alt7
Summary: A library for using PKCS#11 providers

Group: Development/Other
License: GPLv2 or BSD
Url: https://github.com/OpenSC/pkcs11-helper

Source: %name-%version.tar

Provides: %_name = %version-%release
Obsoletes: %_name < %version-%release

%define vkoversion 2.0.0
Patch0: %name-%version-gost-derive.patch
Provides: %name(vko) = %vkoversion

BuildRequires: doxygen graphviz
%if_enabled openssl
%if_enabled LibreSSL
BuildRequires: LibreSSL-devel
%else
BuildRequires: libssl-devel
%endif
%endif
%{?_enable_gnutls:BuildRequires: pkgconfig(gnutls) >= 1.4}
%{?_enable_nss:BuildRequires: pkgconfig(nss) >= 3.11}
%{?_enable_polarssl:BuildRequires: libpolarssl-devel}
%{?_enable_mbedtls:BuildRequires: libmbedtls-devel}

%description
pkcs11-helper is a library that simplifies the interaction with PKCS#11
providers for end-user applications using a simple API and optional OpenSSL
engine. The library allows using multiple PKCS#11 providers at the same time,
enumerating available token certificates, or selecting a certificate directly
by serialized id, handling card removal and card insert events, handling card
re-insert to a different slot, supporting session expiration and much more all
using a simple API.

%package devel
Summary: Development files for pkcs11-helper
Group: Development/Other
Requires: %name = %version-%release
Provides: %_name-devel = %version-%release
Obsoletes: %_name-devel < %version-%release

%description devel
This package contains header files and documentation necessary for developing
programs using the pkcs11-helper library.

%prep
%setup
%patch0 -p1

%build
%autoreconf
%configure \
--disable-static \
--enable-doc \
--with-apidocdir \
%{?_disable_openssl:--disable-openssl --disable-crypto-engine-openssl} \
%{?_disable_gnutls:--disable-crypto-engine-gnutls} \
%{?_disable_nss:--disable-crypto-engine-nss} \
%{?_disable_polarssl:--disable-crypto-engine-polarssl} \
%{?_disable_mbedtls:--disable-crypto-engine-mbedtls} \
--enable-tests
%make_build

%install
%makeinstall_std INSTALL="install -p"

rm -rf %buildroot%_docdir/%_name/

# Remove libtool .la files

rm -f %buildroot%_libdir/*.la

%files
%doc AUTHORS ChangeLog COPYING* README THANKS
%_libdir/*.so.*

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%_aclocaldir/*.m4
%_man8dir/*.8*

%changelog

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

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