2013-07-26 02:32:34 +00:00
|
|
|
%global major_version 1.10
|
|
|
|
|
2009-01-19 08:45:46 +00:00
|
|
|
Name: botan
|
2015-01-31 09:23:51 +00:00
|
|
|
Version: %{major_version}.9
|
|
|
|
Release: 1%{?dist}
|
2009-01-19 08:45:46 +00:00
|
|
|
Summary: Crypto library written in C++
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
|
|
|
URL: http://botan.randombit.net/
|
2010-08-04 17:00:21 +00:00
|
|
|
# tarfile is stripped using repack.sh. original tarfile to be found
|
2010-09-05 07:36:05 +00:00
|
|
|
# here: http://files.randombit.net/botan/Botan-%%{version}.tbz
|
2010-08-04 17:00:21 +00:00
|
|
|
Source0: Botan-%{version}.stripped.tbz
|
2010-08-04 16:38:46 +00:00
|
|
|
Source1: README.fedora
|
2014-05-12 12:06:24 +00:00
|
|
|
Patch0: botan-aarch64.patch
|
2014-05-25 19:30:14 +00:00
|
|
|
Patch1: botan-1.10-add-ppc64le.patch
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
2009-08-12 17:30:15 +00:00
|
|
|
BuildRequires: python
|
2013-07-26 02:32:34 +00:00
|
|
|
BuildRequires: python-sphinx
|
|
|
|
BuildRequires: python-devel
|
2015-01-31 09:23:51 +00:00
|
|
|
%if 0%{?fedora} >= 22
|
|
|
|
# work around bug 1186014
|
|
|
|
BuildRequires: boost-python-devel%{?_isa}
|
|
|
|
%else
|
2013-07-26 02:32:34 +00:00
|
|
|
BuildRequires: boost-python-devel
|
2015-01-31 09:23:51 +00:00
|
|
|
%endif
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
2013-07-26 02:32:34 +00:00
|
|
|
# do not check .so files in the python_sitelib directory
|
|
|
|
%global __provides_exclude_from ^(%{python_sitearch}/.*\\.so)$
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Botan is a BSD-licensed crypto library written in C++. It provides a
|
|
|
|
wide variety of basic cryptographic algorithms, X.509 certificates and
|
|
|
|
CRLs, PKCS \#10 certificate requests, a filter/pipe message processing
|
|
|
|
system, and a wide variety of other features, all written in portable
|
|
|
|
C++. The API reference, tutorial, and examples may help impart the
|
|
|
|
flavor of the library.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
2013-07-26 02:32:34 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2009-01-19 08:45:46 +00:00
|
|
|
Requires: pkgconfig
|
2009-03-16 09:19:28 +00:00
|
|
|
Requires: bzip2-devel
|
|
|
|
Requires: zlib-devel
|
|
|
|
Requires: gmp-devel
|
|
|
|
Requires: openssl-devel
|
|
|
|
|
2009-01-19 08:45:46 +00:00
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
2013-07-26 02:32:34 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
This package contains HTML documentation for %{name}.
|
|
|
|
|
|
|
|
|
2013-07-26 10:13:41 +00:00
|
|
|
%package python
|
2013-07-26 02:32:34 +00:00
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
2013-07-26 10:13:41 +00:00
|
|
|
%description python
|
2013-07-26 02:32:34 +00:00
|
|
|
%{summary}
|
|
|
|
|
|
|
|
This package contains the Python binding for %{name}.
|
|
|
|
|
|
|
|
Note: The Python binding should be considered alpha software, and the
|
|
|
|
interfaces may change in the future.
|
|
|
|
|
|
|
|
|
2009-01-19 08:45:46 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n Botan-%{version}
|
2014-05-12 12:06:24 +00:00
|
|
|
%patch0 -p1
|
2014-05-25 19:30:14 +00:00
|
|
|
%patch1 -p1
|
2010-08-04 16:38:46 +00:00
|
|
|
cp -av %{SOURCE1} .
|
2009-01-19 08:45:46 +00:00
|
|
|
|
2013-07-26 02:32:34 +00:00
|
|
|
|
2009-01-19 08:45:46 +00:00
|
|
|
%build
|
2009-01-22 14:13:29 +00:00
|
|
|
# we have the necessary prerequisites, so enable optional modules
|
|
|
|
%define enable_modules gnump,bzip2,zlib,openssl
|
|
|
|
|
|
|
|
# fixme: maybe disable unix_procs, very slow.
|
2009-01-19 08:45:46 +00:00
|
|
|
%define disable_modules %{nil}
|
|
|
|
|
2009-08-12 17:30:15 +00:00
|
|
|
./configure.py \
|
2009-01-19 08:45:46 +00:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_lib} \
|
|
|
|
--cc=gcc \
|
|
|
|
--os=linux \
|
|
|
|
--cpu=%{_arch} \
|
|
|
|
--enable-modules=%{enable_modules} \
|
2013-07-26 02:32:34 +00:00
|
|
|
--disable-modules=%{disable_modules} \
|
|
|
|
--with-boost-python \
|
|
|
|
--with-python-version=%{python_version}
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
# (ab)using CXX as an easy way to inject our CXXFLAGS
|
|
|
|
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags}
|
2013-07-26 02:32:34 +00:00
|
|
|
make -f Makefile.python \
|
|
|
|
CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags}
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install \
|
|
|
|
DESTDIR=%{buildroot}%{_prefix} \
|
|
|
|
DOCDIR=_doc \
|
|
|
|
INSTALL_CMD_EXEC="install -p -m 755" \
|
2013-07-26 02:32:34 +00:00
|
|
|
INSTALL_CMD_DATA="install -p -m 644"
|
2009-01-19 08:45:46 +00:00
|
|
|
|
2013-07-26 02:32:34 +00:00
|
|
|
make -f Makefile.python install \
|
|
|
|
PYTHON_SITE_PACKAGE_DIR=%{buildroot}%{python_sitearch}
|
2009-01-19 08:45:46 +00:00
|
|
|
|
2013-07-26 02:32:34 +00:00
|
|
|
# fixups
|
|
|
|
find doc/examples -type f -exec chmod -x {} \;
|
|
|
|
mv doc/examples/python doc/python-examples
|
|
|
|
rm _doc/manual/.buildinfo
|
|
|
|
rm -r _doc/manual/.doctrees
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2013-07-26 02:32:34 +00:00
|
|
|
%doc _doc/readme.txt
|
|
|
|
%doc doc/license.txt
|
2010-08-04 16:38:46 +00:00
|
|
|
%doc README.fedora
|
2013-07-26 02:32:34 +00:00
|
|
|
%{_libdir}/libbotan-%{major_version}.so.*
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc doc/examples
|
2013-07-26 02:32:34 +00:00
|
|
|
%{_bindir}/botan-config-%{major_version}
|
2009-01-19 08:45:46 +00:00
|
|
|
%{_includedir}/*
|
2013-07-26 02:32:34 +00:00
|
|
|
%exclude %{_libdir}/libbotan-%{major_version}.a
|
|
|
|
%{_libdir}/libbotan-%{major_version}.so
|
|
|
|
%{_libdir}/pkgconfig/botan-%{major_version}.pc
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc _doc/manual
|
|
|
|
%doc _doc/readme.txt
|
|
|
|
%doc doc/license.txt
|
|
|
|
|
|
|
|
|
2013-07-26 10:13:41 +00:00
|
|
|
%files python
|
2013-07-26 02:32:34 +00:00
|
|
|
%doc doc/python-examples
|
|
|
|
%{python_sitearch}/%{name}
|
2009-01-19 08:45:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} check
|
2010-08-28 20:59:59 +00:00
|
|
|
|
|
|
|
# these checks would fail
|
|
|
|
mv checks/validate.dat{,.orig}
|
2013-09-03 17:53:33 +00:00
|
|
|
awk '/\[.*\]/{f=0} /\[(RC5.*|RC6)\]/{f=1} (f && !/^#/){sub(/^/,"#")} {print}' \
|
2010-08-28 20:59:59 +00:00
|
|
|
checks/validate.dat.orig > checks/validate.dat
|
2009-01-19 08:45:46 +00:00
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-01-31 09:23:51 +00:00
|
|
|
* Sat Jan 31 2015 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.9-1
|
|
|
|
- Update to 1.10.9.
|
|
|
|
|
2014-08-15 23:04:03 +00:00
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.8-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 03:27:04 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.8-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-31 08:09:40 +00:00
|
|
|
* Sat May 31 2014 Björn Esser <bjoern.esser@gmail.com> - 1.10.8-5
|
|
|
|
- rebuild for boost 1.55.0 (libboost_python.so.1.55.0)
|
|
|
|
|
2014-05-25 19:30:14 +00:00
|
|
|
* Sun May 25 2014 Brent Baude <baude@us.ibm.com> - 1.10.8-4
|
|
|
|
- Added ppc64le arch support
|
|
|
|
|
2014-05-23 08:28:27 +00:00
|
|
|
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.10.8-3
|
|
|
|
- rebuild for boost 1.55.0
|
|
|
|
|
2014-05-12 12:06:24 +00:00
|
|
|
* Mon May 12 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.10.8-2
|
|
|
|
- Added AArch64 architecture support
|
|
|
|
|
2014-05-10 12:29:27 +00:00
|
|
|
* Sat May 10 2014 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.8-1
|
|
|
|
- Update to 1.10.8.
|
|
|
|
|
2013-09-03 17:53:33 +00:00
|
|
|
* Tue Sep 3 2013 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.5-4
|
|
|
|
- Re-enable IDEA (rhbz#1003052) and SRP-6.
|
|
|
|
|
2013-09-03 17:55:37 +00:00
|
|
|
* Sat Jul 27 2013 Petr Machata <pmachata@redhat.com> - 1.10.5-3
|
2013-07-27 12:57:17 +00:00
|
|
|
- Rebuild for boost 1.54.0
|
|
|
|
|
2013-07-26 10:13:41 +00:00
|
|
|
* Fri Jul 26 2013 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.5-2
|
|
|
|
- Rename the subpackage for the Python binding.
|
|
|
|
|
2013-07-26 02:32:34 +00:00
|
|
|
* Fri Jul 26 2013 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.5-1
|
|
|
|
- Update to 1.10.5.
|
|
|
|
- Modernize spec file.
|
|
|
|
- New -doc subpackage containing HTML documentation.
|
|
|
|
- Package Python binding.
|
|
|
|
|
2013-02-13 17:59:10 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-25 12:45:42 +00:00
|
|
|
* Sat Aug 25 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.14-1
|
|
|
|
- Update to 1.8.14.
|
|
|
|
|
2012-07-18 18:11:45 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-5.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-28 17:58:07 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-4.2
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-12 22:47:12 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-3.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-20 13:45:49 +00:00
|
|
|
* Thu Oct 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.8.13-2.2
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
2011-10-10 10:45:28 +00:00
|
|
|
* Mon Oct 10 2011 Peter Schiffer <pschiffe@redhat.com> - 1.8.13-2.1
|
|
|
|
- rebuild with new gmp
|
|
|
|
|
2011-07-21 15:57:31 +00:00
|
|
|
* Thu Jul 21 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.13-2
|
|
|
|
- Patch to revert the soname change.
|
|
|
|
|
2011-07-20 20:54:11 +00:00
|
|
|
* Wed Jul 20 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.13-1
|
|
|
|
- Update to 1.8.13.
|
|
|
|
|
2011-07-02 08:58:26 +00:00
|
|
|
* Sat Jul 2 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.12-1
|
|
|
|
- Update to 1.8.12.
|
|
|
|
|
2011-02-08 05:42:10 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-06 13:51:10 +00:00
|
|
|
* Sat Nov 6 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.11-1
|
|
|
|
- Update to 1.8.11.
|
|
|
|
|
2010-09-05 07:36:05 +00:00
|
|
|
* Sat Sep 4 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.10-1
|
|
|
|
- Update to 1.8.10.
|
|
|
|
|
2010-08-29 10:19:52 +00:00
|
|
|
* Sun Aug 29 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-4
|
|
|
|
- Update README.fedora.
|
|
|
|
|
2010-08-28 20:59:59 +00:00
|
|
|
* Fri Aug 27 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-3
|
|
|
|
- Also remove RC5 from the tarfile.
|
|
|
|
- Comment out RC5, RC6 and IDEA validation tests.
|
|
|
|
|
2010-08-04 16:38:46 +00:00
|
|
|
* Wed Aug 4 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-2
|
2010-08-04 17:00:21 +00:00
|
|
|
- Remove IDEA, RC6, and ECC-related modules from the tarfile,
|
|
|
|
see bz 615372.
|
2010-08-04 16:38:46 +00:00
|
|
|
|
2010-06-16 18:44:03 +00:00
|
|
|
* Wed Jun 16 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-1
|
|
|
|
- Update to 1.8.9.
|
|
|
|
- Drop patch applied upstream.
|
|
|
|
|
2009-11-19 20:50:45 +00:00
|
|
|
* Thu Nov 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.8-2
|
|
|
|
- Add patch from upstream to build with binutils-2.20.51.0.2.
|
|
|
|
Fixes bz 538949 (ftbfs).
|
|
|
|
|
2009-11-05 08:35:17 +00:00
|
|
|
* Thu Nov 5 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.8-1
|
|
|
|
- Update to 1.8.8, a bugfix release.
|
|
|
|
|
2009-09-10 20:28:11 +00:00
|
|
|
* Thu Sep 10 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.7-1
|
|
|
|
- Update to 1.8.7. This is mainly a bugfix release.
|
|
|
|
|
2009-08-21 12:39:50 +00:00
|
|
|
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.8.6-2
|
|
|
|
- rebuilt with new openssl
|
|
|
|
|
2009-08-13 15:45:25 +00:00
|
|
|
* Thu Aug 13 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.6-1
|
|
|
|
- Update to 1.8.6, which contains new features as well as bugfixes,
|
|
|
|
e.g. concerning the /proc-walking entropy source.
|
|
|
|
|
2009-08-12 17:50:24 +00:00
|
|
|
* Wed Aug 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.5-2
|
|
|
|
- Fix changelog.
|
|
|
|
|
|
|
|
* Wed Aug 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.5-1
|
2009-08-12 17:30:15 +00:00
|
|
|
- Update to 1.8.5.
|
|
|
|
- Use .tbz source file.
|
|
|
|
- Configuration script uses python now.
|
|
|
|
|
2009-07-24 18:21:47 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-25 18:22:55 +00:00
|
|
|
* Sat Apr 25 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.2-1
|
|
|
|
- Update to 1.8.2.
|
|
|
|
|
2009-03-16 09:19:28 +00:00
|
|
|
* Mon Mar 16 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-4
|
|
|
|
- Add missing requirements to -devel package.
|
|
|
|
|
2009-02-27 08:33:57 +00:00
|
|
|
* Fri Feb 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-3
|
|
|
|
- Rebuilt again after failed attempt in mass rebuild.
|
|
|
|
|
2009-02-24 05:38:37 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-22 14:13:29 +00:00
|
|
|
* Wed Jan 21 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-1
|
|
|
|
- Update to 1.8.1. This is a bugfix release, see
|
|
|
|
http://botan.randombit.net/news/releases/1_8_1.html for changes.
|
|
|
|
- No need to explicitly enable modules that will be enabled by
|
|
|
|
configure.pl anyway.
|
|
|
|
|
2009-01-19 08:45:46 +00:00
|
|
|
* Mon Jan 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.0-2
|
|
|
|
- Move api* and tutorial* doc files to -devel package.
|
|
|
|
|
|
|
|
* Sat Jan 17 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.0-1
|
|
|
|
- New package.
|