# vim: set sw=4 ts=4 et nu: # norootforbuild Name: libcryptopp Version: 5.6.0 %define pkg_version 560 %define soname 5 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 . %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} %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" \ VERSION="%{version}" \ MAJOR="%{soname}" \ all %install %__make \ DESTDIR="%{buildroot}" \ PREFIX="%{_prefix}" \ LIB="%{_lib}" \ CXX="%__cxx" \ VERSION="%{version}" \ 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) %{_includedir}/cryptopp %{_libdir}/libcryptopp.a %{_libdir}/libcryptopp.so