Репозиторий Sisyphus
Последнее обновление: 18 апреля 2019 | Пакетов: 17673 | Посещений: 13423819
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libbotan

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

%define _unpackaged_files_terminate_build 1

Name: libbotan
Version: 2.9.0
Release: alt1

Summary: A C++ Crypto Library
License: BSD
Group: System/Libraries

Url: http://botan.randombit.net

# https://github.com/randombit/botan.git

Source: %name-%version.tar

Patch1: botan-fedora-remove-rpath-gcc.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: bzlib-devel gcc-c++ libssl-devel zlib-devel
BuildRequires: python2.7(json)
BuildRequires: liblzma-devel
BuildRequires: boost-complete
BuildRequires: %_bindir/sphinx-build %_bindir/rst2man

%description
Botan is a C++ library that provides support for many common
cryptographic operations, including encryption, authentication, and
X.509v3 certificates and CRLs. A wide variety of algorithms is
supported, including RSA, DSA, DES, AES, MD5, and SHA-1.

%package devel
Summary: Headers for %name
Group: Development/C
Requires: %name = %EVR
Conflicts: libbotan1.11-devel

%description devel
Headers for building software that uses %name

%package doc
Summary: Documentation for %name
Group: Development/Documentation
BuildArch: noarch

%description doc
%summary

%package -n python-module-botan
Summary: Python extensions for botan
Group: Development/Python
Requires: %name = %EVR

%description -n python-module-botan
Python extensions for botan

%package -n python3-module-botan
Summary: Python extensions for botan
Group: Development/Python3
Requires: %name = %EVR

%description -n python3-module-botan
Python extensions for botan

%prep
%setup
%patch1 -p0

%build
export CXXFLAGS="${CXXFLAGS:-%optflags}"

./configure.py \
--prefix=%prefix \
--libdir=%_libdir \
--docdir=%_defaultdocdir \
--includedir=%_includedir \
--disable-static-library \
--with-debug-info \
--with-bzip2 \
--with-lzma \
--with-zlib \
--with-boost \
--with-openssl \
--with-python-version=%_python_version,%_python3_version \
--with-documentation \
--with-sphinx \
%nil

%make_build

%install
%makeinstall_std

rm -rf %buildroot%_defaultdocdir/botan-%version/manual/{.doctrees,.buildinfo}

%check
LD_LIBRARY_PATH=. ./botan-test

%files
%_libdir/*.so.*

%files devel
%_bindir/*
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%_man1dir/botan.1*

%files doc
%doc %_defaultdocdir/botan-%version

%files -n python-module-botan
%python_sitelibdir/*

%files -n python3-module-botan
%python3_sitelibdir/*.py
%python3_sitelibdir/__pycache__/*

%changelog

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

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