2010-08-09 22:30:27 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
Name: libcryptopp
|
2010-12-16 23:45:58 +00:00
|
|
|
Version: 5.6.1
|
|
|
|
|
%define pkg_version 561
|
|
|
|
|
# This needs to be bumped manually with every ABI change since there is
|
|
|
|
|
# no upstream interface version information. Please keep in sync with
|
|
|
|
|
# Debian: http://packages.debian.org/en/source/experimental/libcrypto++
|
|
|
|
|
%define soname 9
|
2010-08-09 22:30:27 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Crypto++ Library
|
|
|
|
|
# http://www.cryptopp.com/cryptopp%{pkg_version}.zip
|
|
|
|
|
Source: cryptopp%{pkg_version}.tar.bz2
|
|
|
|
|
Patch1: libcryptopp-shared.patch
|
|
|
|
|
URL: http://www.cryptopp.com
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
License: Public Domain
|
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
|
BuildRequires: gcc-c++ libstdc++-devel
|
|
|
|
|
BuildRequires: gcc make glibc-devel pkgconfig
|
|
|
|
|
|
|
|
|
|
%description
|
2010-12-16 23:45:58 +00:00
|
|
|
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
2010-08-09 22:30:27 +00:00
|
|
|
|
|
|
|
|
%package -n %{name}%{soname}
|
|
|
|
|
Summary: Cryptographic Library for C++
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{name}%{soname}
|
|
|
|
|
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
|
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
|
Summary: Cryptographic Library for C++
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{name}%{soname} = %{version}
|
2010-12-16 23:45:58 +00:00
|
|
|
# http://packman.links2linux.de/package/libcrypto++0
|
|
|
|
|
Conflicts: libcrypto++0
|
2010-08-09 22:30:27 +00:00
|
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
|
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c "%{name}-%{version}"
|
|
|
|
|
%patch1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%__make %{?jobs:-j%{jobs}} \
|
|
|
|
|
CXXFLAGS="-DNDEBUG %{optflags} -fpic -fPIC" \
|
|
|
|
|
DESTDIR="" \
|
|
|
|
|
PREFIX="%{_prefix}" \
|
|
|
|
|
LIB="%{_lib}" \
|
|
|
|
|
CXX="%__cxx" \
|
2010-12-16 23:45:58 +00:00
|
|
|
VERSION="%{soname}.0.0" \
|
2010-08-09 22:30:27 +00:00
|
|
|
MAJOR="%{soname}" \
|
|
|
|
|
all
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%__make \
|
|
|
|
|
DESTDIR="%{buildroot}" \
|
|
|
|
|
PREFIX="%{_prefix}" \
|
|
|
|
|
LIB="%{_lib}" \
|
|
|
|
|
CXX="%__cxx" \
|
2010-12-16 23:45:58 +00:00
|
|
|
VERSION="%{soname}.0.0" \
|
2010-08-09 22:30:27 +00:00
|
|
|
MAJOR="%{soname}" \
|
|
|
|
|
install
|
|
|
|
|
|
|
|
|
|
%__rm -rf "%{buildroot}%{_bindir}"
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
|
|
%files -n %{name}%{soname}
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libcryptopp.so.%{soname}
|
|
|
|
|
%{_libdir}/libcryptopp.so.%{soname}.*
|
|
|
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
|
%defattr(-,root,root)
|
2010-12-16 23:45:58 +00:00
|
|
|
%doc License.txt Readme.txt
|
2010-08-09 22:30:27 +00:00
|
|
|
%{_includedir}/cryptopp
|
|
|
|
|
%{_libdir}/libcryptopp.so
|
|
|
|
|
|