Compare commits

...

6 Commits
master ... f9

Author SHA1 Message Date
Fedora Release Engineering d4ca1bdb05 dist-git conversion 2010-07-28 11:13:31 +00:00
Bill Nottingham ad863be390 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:23:03 +00:00
Thomas Moschny 6c2db0a5c0 Fix packaging bug: Add missing requires to -devel. 2009-03-16 09:34:51 +00:00
Thomas Moschny c867d686d1 Update to 1.8.1. 2009-01-22 14:34:52 +00:00
Thomas Moschny 4ad883ebf1 Initial import for F-9. 2009-01-19 09:18:27 +00:00
Kevin Fenzi c4a57ec001 Initialize branch F-9 for botan 2009-01-18 22:29:49 +00:00
5 changed files with 134 additions and 21 deletions

View File

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Botan-1.8.1.tgz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: botan
# $Id$
NAME := botan
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

132
botan.spec Normal file
View File

@ -0,0 +1,132 @@
Name: botan
Version: 1.8.1
Release: 4%{?dist}
Summary: Crypto library written in C++
Group: System Environment/Libraries
License: BSD
URL: http://botan.randombit.net/
Source0: http://files.randombit.net/botan/Botan-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-c++
BuildRequires: perl
BuildRequires: bzip2-devel
BuildRequires: zlib-devel
BuildRequires: gmp-devel
BuildRequires: openssl-devel
%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
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Requires: bzip2-devel
Requires: zlib-devel
Requires: gmp-devel
Requires: openssl-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n Botan-%{version}
%build
# we have the necessary prerequisites, so enable optional modules
%define enable_modules gnump,bzip2,zlib,openssl
# fixme: maybe disable unix_procs, very slow.
%define disable_modules %{nil}
./configure.pl \
--prefix=%{_prefix} \
--libdir=%{_lib} \
--cc=gcc \
--os=linux \
--cpu=%{_arch} \
--enable-modules=%{enable_modules} \
--disable-modules=%{disable_modules}
# (ab)using CXX as an easy way to inject our CXXFLAGS
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install \
DESTDIR=%{buildroot}%{_prefix} \
DOCDIR=_doc \
INSTALL_CMD_EXEC="install -p -m 755" \
INSTALL_CMD_DATA="install -p -m 644" \
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libbotan*-*.so
%doc _doc/readme.txt _doc/log.txt _doc/thanks.txt _doc/credits.txt
%doc _doc/license.txt _doc/fips140.tex _doc/pgpkeys.asc
%files devel
%defattr(-,root,root,-)
%doc doc/examples
%doc _doc/api* _doc/tutorial*
%{_bindir}/botan-config
%{_includedir}/*
%exclude %{_libdir}/libbotan.a
%{_libdir}/libbotan.so
%{_libdir}/pkgconfig/botan-1.8.pc
%check
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
%changelog
* Mon Mar 16 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-4
- Add missing requirements to -devel package.
* Fri Feb 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.1-3
- Rebuilt again after failed attempt in mass rebuild.
* 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
* 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.
* 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.

View File

@ -0,0 +1 @@
ff5ddc348cc306d4e5674b8be12ac836 Botan-1.8.1.tgz