From 7c2cd19afcfbb83655cc60c64be227fd73cec34e Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Mon, 19 Jan 2009 08:45:46 +0000 Subject: [PATCH] Initial import. --- .cvsignore | 1 + botan.spec | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 112 insertions(+) create mode 100644 botan.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..2e8d6b6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Botan-1.8.0.tgz diff --git a/botan.spec b/botan.spec new file mode 100644 index 0000000..2109336 --- /dev/null +++ b/botan.spec @@ -0,0 +1,109 @@ +Name: botan +Version: 1.8.0 +Release: 2%{?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 + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q -n Botan-%{version} + + +%build +%define enable_modules alloc_mmap,egd,fd_unix,posix_rt,bzip2,zlib,pthreads,openssl +%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 Jan 19 2009 Thomas Moschny - 1.8.0-2 +- Move api* and tutorial* doc files to -devel package. + +* Sat Jan 17 2009 Thomas Moschny - 1.8.0-1 +- New package. diff --git a/import.log b/import.log new file mode 100644 index 0000000..edb1eb7 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +botan-1_8_0-2_fc10:HEAD:botan-1.8.0-2.fc10.src.rpm:1232354502 diff --git a/sources b/sources index e69de29..2cab659 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +827c81f42cd1c118fc9bf1891be7cde5 Botan-1.8.0.tgz