|
|
7c2cd19 |
Name: botan
|
|
|
08b0f4d |
Version: 1.8.14
|
|
|
08b0f4d |
Release: 1%{?dist}
|
|
|
7c2cd19 |
Summary: Crypto library written in C++
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
Group: System Environment/Libraries
|
|
|
7c2cd19 |
License: BSD
|
|
|
7c2cd19 |
URL: http://botan.randombit.net/
|
|
|
057bdc1 |
# tarfile is stripped using repack.sh. original tarfile to be found
|
|
|
8ed4744 |
# here: http://files.randombit.net/botan/Botan-%%{version}.tbz
|
|
|
057bdc1 |
Source0: Botan-%{version}.stripped.tbz
|
|
|
fa570d3 |
Source1: README.fedora
|
|
|
bf3746d |
# soname was changed unintentionally upstream, revert it.
|
|
|
08b0f4d |
Patch0: botan-1.8.14-soname.patch
|
|
|
7c2cd19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
BuildRequires: gcc-c++
|
|
|
e75b99d |
BuildRequires: python
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
BuildRequires: bzip2-devel
|
|
|
7c2cd19 |
BuildRequires: zlib-devel
|
|
|
7c2cd19 |
BuildRequires: gmp-devel
|
|
|
7c2cd19 |
BuildRequires: openssl-devel
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%description
|
|
|
7c2cd19 |
Botan is a BSD-licensed crypto library written in C++. It provides a
|
|
|
7c2cd19 |
wide variety of basic cryptographic algorithms, X.509 certificates and
|
|
|
7c2cd19 |
CRLs, PKCS \#10 certificate requests, a filter/pipe message processing
|
|
|
7c2cd19 |
system, and a wide variety of other features, all written in portable
|
|
|
7c2cd19 |
C++. The API reference, tutorial, and examples may help impart the
|
|
|
7c2cd19 |
flavor of the library.
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%package devel
|
|
|
7c2cd19 |
Summary: Development files for %{name}
|
|
|
7c2cd19 |
Group: Development/Libraries
|
|
|
7c2cd19 |
Requires: %{name} = %{version}-%{release}
|
|
|
7c2cd19 |
Requires: pkgconfig
|
|
|
5df5107 |
Requires: bzip2-devel
|
|
|
5df5107 |
Requires: zlib-devel
|
|
|
5df5107 |
Requires: gmp-devel
|
|
|
5df5107 |
Requires: openssl-devel
|
|
|
5df5107 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%description devel
|
|
|
7c2cd19 |
The %{name}-devel package contains libraries and header files for
|
|
|
7c2cd19 |
developing applications that use %{name}.
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%prep
|
|
|
7c2cd19 |
%setup -q -n Botan-%{version}
|
|
|
bf3746d |
%patch0 -p0
|
|
|
fa570d3 |
cp -av %{SOURCE1} .
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%build
|
|
|
465a62d |
# we have the necessary prerequisites, so enable optional modules
|
|
|
465a62d |
%define enable_modules gnump,bzip2,zlib,openssl
|
|
|
465a62d |
|
|
|
465a62d |
# fixme: maybe disable unix_procs, very slow.
|
|
|
7c2cd19 |
%define disable_modules %{nil}
|
|
|
7c2cd19 |
|
|
|
e75b99d |
./configure.py \
|
|
|
7c2cd19 |
--prefix=%{_prefix} \
|
|
|
7c2cd19 |
--libdir=%{_lib} \
|
|
|
7c2cd19 |
--cc=gcc \
|
|
|
7c2cd19 |
--os=linux \
|
|
|
7c2cd19 |
--cpu=%{_arch} \
|
|
|
7c2cd19 |
--enable-modules=%{enable_modules} \
|
|
|
7c2cd19 |
--disable-modules=%{disable_modules}
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
# (ab)using CXX as an easy way to inject our CXXFLAGS
|
|
|
7c2cd19 |
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags}
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%install
|
|
|
7c2cd19 |
rm -rf %{buildroot}
|
|
|
7c2cd19 |
make install \
|
|
|
7c2cd19 |
DESTDIR=%{buildroot}%{_prefix} \
|
|
|
7c2cd19 |
DOCDIR=_doc \
|
|
|
7c2cd19 |
INSTALL_CMD_EXEC="install -p -m 755" \
|
|
|
7c2cd19 |
INSTALL_CMD_DATA="install -p -m 644" \
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%clean
|
|
|
7c2cd19 |
rm -rf %{buildroot}
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%post -p /sbin/ldconfig
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%postun -p /sbin/ldconfig
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%files
|
|
|
7c2cd19 |
%defattr(-,root,root,-)
|
|
|
7c2cd19 |
%{_libdir}/libbotan*-*.so
|
|
|
7c2cd19 |
%doc _doc/readme.txt _doc/log.txt _doc/thanks.txt _doc/credits.txt
|
|
|
7c2cd19 |
%doc _doc/license.txt _doc/fips140.tex _doc/pgpkeys.asc
|
|
|
fa570d3 |
%doc README.fedora
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%files devel
|
|
|
7c2cd19 |
%defattr(-,root,root,-)
|
|
|
7c2cd19 |
%doc doc/examples
|
|
|
7c2cd19 |
%doc _doc/api* _doc/tutorial*
|
|
|
7c2cd19 |
%{_bindir}/botan-config
|
|
|
7c2cd19 |
%{_includedir}/*
|
|
|
7c2cd19 |
%exclude %{_libdir}/libbotan.a
|
|
|
7c2cd19 |
%{_libdir}/libbotan.so
|
|
|
7c2cd19 |
%{_libdir}/pkgconfig/botan-1.8.pc
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%check
|
|
|
7c2cd19 |
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} check
|
|
|
0781893 |
|
|
|
0781893 |
# these checks would fail
|
|
|
0781893 |
mv checks/validate.dat{,.orig}
|
|
|
0781893 |
awk '/\[.*\]/{f=0} /\[(RC5.*|RC6|IDEA)\]/{f=1} (f && !/^#/){sub(/^/,"#")} {print}' \
|
|
|
0781893 |
checks/validate.dat.orig > checks/validate.dat
|
|
|
7c2cd19 |
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
%changelog
|
|
|
08b0f4d |
* Sat Aug 25 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.14-1
|
|
|
08b0f4d |
- Update to 1.8.14.
|
|
|
08b0f4d |
|
|
|
cbcbfa1 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-5.2
|
|
|
cbcbfa1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
cbcbfa1 |
|
|
|
e44ced7 |
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-4.2
|
|
|
e44ced7 |
- Rebuilt for c++ ABI breakage
|
|
|
e44ced7 |
|
|
|
63e9da1 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-3.2
|
|
|
63e9da1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
63e9da1 |
|
|
|
818681f |
* Thu Oct 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.8.13-2.2
|
|
|
818681f |
- rebuild with new gmp without compat lib
|
|
|
818681f |
|
|
|
a8d87bd |
* Mon Oct 10 2011 Peter Schiffer <pschiffe@redhat.com> - 1.8.13-2.1
|
|
|
a8d87bd |
- rebuild with new gmp
|
|
|
a8d87bd |
|
|
|
bf3746d |
* Thu Jul 21 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.13-2
|
|
|
bf3746d |
- Patch to revert the soname change.
|
|
|
bf3746d |
|
|
|
d8792c2 |
* Wed Jul 20 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.13-1
|
|
|
d8792c2 |
- Update to 1.8.13.
|
|
|
d8792c2 |
|
|
|
38525cd |
* Sat Jul 2 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.12-1
|
|
|
38525cd |
- Update to 1.8.12.
|
|
|
38525cd |
|
|
|
be07d8a |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-2
|
|
|
be07d8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
be07d8a |
|
|
|
b34d8ff |
* Sat Nov 6 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.11-1
|
|
|
b34d8ff |
- Update to 1.8.11.
|
|
|
b34d8ff |
|
|
|
8ed4744 |
* Sat Sep 4 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.10-1
|
|
|
8ed4744 |
- Update to 1.8.10.
|
|
|
8ed4744 |
|
|
|
64a9a24 |
* Sun Aug 29 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-4
|
|
|
64a9a24 |
- Update README.fedora.
|
|
|
64a9a24 |
|
|
|
0781893 |
* Fri Aug 27 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-3
|
|
|
0781893 |
- Also remove RC5 from the tarfile.
|
|
|
0781893 |
- Comment out RC5, RC6 and IDEA validation tests.
|
|
|
0781893 |
|
|
|
fa570d3 |
* Wed Aug 4 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-2
|
|
|
057bdc1 |
- Remove IDEA, RC6, and ECC-related modules from the tarfile,
|
|
|
057bdc1 |
see bz 615372.
|
|
|
fa570d3 |
|
|
|
549c94b |
* Wed Jun 16 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.9-1
|
|
|
549c94b |
- Update to 1.8.9.
|
|
|
549c94b |
- Drop patch applied upstream.
|
|
|
549c94b |
|
|
|
1c2a64a |
* Thu Nov 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.8-2
|
|
|
1c2a64a |
- Add patch from upstream to build with binutils-2.20.51.0.2.
|
|
|
1c2a64a |
Fixes bz 538949 (ftbfs).
|
|
|
1c2a64a |
|
|
|
45d5c59 |
* Thu Nov 5 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.8-1
|
|
|
45d5c59 |
- Update to 1.8.8, a bugfix release.
|
|
|
45d5c59 |
|
|
|
cec1145 |
* Thu Sep 10 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.7-1
|
|
|
cec1145 |
- Update to 1.8.7. This is mainly a bugfix release.
|
|
|
cec1145 |
|
|
|
8558187 |
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.8.6-2
|
|
|
8558187 |
- rebuilt with new openssl
|
|
|
8558187 |
|
|
|
f04ff1f |
* Thu Aug 13 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.6-1
|
|
|
f04ff1f |
- Update to 1.8.6, which contains new features as well as bugfixes,
|
|
|
f04ff1f |
e.g. concerning the /proc-walking entropy source.
|
|
|
f04ff1f |
|
|
|
96190c3 |
* Wed Aug 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.5-2
|
|
|
96190c3 |
- Fix changelog.
|
|
|
96190c3 |
|
|
|
96190c3 |
* Wed Aug 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.5-1
|
|
|
e75b99d |
- Update to 1.8.5.
|
|
|
e75b99d |
- Use .tbz source file.
|
|
|
e75b99d |
- Configuration script uses python now.
|
|
|
e75b99d |
|
|
|
be080e3 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-2
|
|
|
be080e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
be080e3 |
|
|
|
d0acb9b |
* Sat Apr 25 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.2-1
|
|
|
d0acb9b |
- Update to 1.8.2.
|
|
|
d0acb9b |
|
|
|
5df5107 |
* Mon Mar 16 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-4
|
|
|
5df5107 |
- Add missing requirements to -devel package.
|
|
|
5df5107 |
|
|
|
abdca36 |
* Fri Feb 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-3
|
|
|
abdca36 |
- Rebuilt again after failed attempt in mass rebuild.
|
|
|
abdca36 |
|
|
|
ba3d058 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
|
|
|
ba3d058 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
ba3d058 |
|
|
|
465a62d |
* Wed Jan 21 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-1
|
|
|
465a62d |
- Update to 1.8.1. This is a bugfix release, see
|
|
|
465a62d |
http://botan.randombit.net/news/releases/1_8_1.html for changes.
|
|
|
465a62d |
- No need to explicitly enable modules that will be enabled by
|
|
|
465a62d |
configure.pl anyway.
|
|
|
465a62d |
|
|
|
7c2cd19 |
* Mon Jan 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.0-2
|
|
|
7c2cd19 |
- Move api* and tutorial* doc files to -devel package.
|
|
|
7c2cd19 |
|
|
|
7c2cd19 |
* Sat Jan 17 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.0-1
|
|
|
7c2cd19 |
- New package.
|