File crypto++.spec of Package libcrypto++0
# norootforbuild
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
Name: libcrypto++0
Summary: Crypto++ Library is a free C++ class library of cryptographic schemes.
Version: 5.6.0
Release: 0.pm.3
License: GPL
Group: Development/Libraries/Other
URL: http://www.cryptopp.com/
Source0: cryptopp560.tar.bz2
Patch0: cryptopp-destdir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
#Requires:
BuildRequires: make autoconf automake gcc gcc-c++
%description
Crypto++ Library is a free C++ class library of
cryptographic schemes. Other features include:
* pseudo random number generators (PRNG): ANSI X9.17
appendix C, RandomPool
* password based key derivation functions: PBKDF1
and PBKDF2 from PKCS #5, PBKDF from PKCS #12 appendix B
* Shamir's secret sharing scheme and Rabin's information
dispersal algorithm (IDA)
* fast multi-precision integer (bignum) and polynomial operations
* finite field arithmetics, including GF(p) and GF(2^n)
* prime number generation and verification
* useful non-cryptographic algorithms
o DEFLATE (RFC 1951) compression/decompression with gzip
(RFC 1952) and zlib (RFC 1950) format support
o hex, base-32, and base-64 coding/decoding
o 32-bit CRC and Adler32 checksum
* class wrappers for these operating system features (optional):
o high resolution timers on Windows, Unix, and Mac OS
o Berkeley and Windows style sockets
o Windows named pipes
o /dev/random, /dev/urandom, /dev/srandom
o Microsoft's CryptGenRandom on Windows
* A high level interface for most of the above, using a
filter/pipeline metaphor
* benchmarks and validation testing
* x86, x86-64 (x64), MMX, and SSE2 assembly code for the
most commonly used algorithms, with run-time CPU feature
detection and code selection
o supports GCC-style and MSVC-style inline assembly, and MASM for x64
* certain versions are available in FIPS 140-2 validated form
%package devel
Summary: Development Environment for %{name}
Group: Development/Libraries/Other
Requires: %{name}
%description devel
Development environment for %{name}
%prep
%setup -q -n cryptopp560
%patch0 -p1
%build
%__make %{?jobs:-j%{jobs}}
./cryptest.exe v
#make
%install
%makeinstall libdir=%{_libdir}
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -fr %buildroot
%files
%defattr(-,root,root)
%{_bindir}/cryptest.exe
%{_libdir}/libcryptopp.a
%files devel
%defattr(-,root,root)
%{_includedir}/cryptopp/*.h
%changelog
* Thu Jan 17 2008 - Andrea Florio <andrea@links2linux.de>
- added ldconfig instruction
* Wed Jan 16 2008 - Andrea Florio <andrea@links2linux.de>
- first spec making
- created devel package
- added make patch: added DESTDIR and LIBDIR support