%define gitver %(echo %version | tr . _) Name: libcryptopp Version: 8.9.0 Release: 1mamba Summary: Free C++ class library of cryptographic schemes Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cryptopp.com/ Source: https://github.com/weidai11/cryptopp.git/CRYPTOPP_%{gitver}/cryptopp-%{version}.tar.bz2 #Source: http://downloads.sourceforge.net/project/cryptopp/cryptopp/%{version}/cryptopp%{realversion}.zip Patch0: libcryptopp-5.6.2-gnumakefile.patch Patch1: libcryptopp-5.6.1-gcc-4.7.patch Patch2: libcryptopp-5.6.1-libcryptopp-CXXFLAGS.patch License: Public domain ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: unzip BuildRequires: gcc-c++ BuildRequires: hd2u %description Crypto++ Library is a free C++ class library of cryptographic schemes. Currently the library consists of the following, some of which are other people's code, repackaged into classes. One purpose of Crypto++ is to act as a repository of public domain (not copyrighted) source code. Although the library is copyrighted as a compilation, the individual files in it (except for a few exceptions listed in the license) are in the public domain. %package devel Group: Development/Libraries Summary: Files for development of applications which will use %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Crypto++ Library is a free C++ class library of cryptographic schemes. Currently the library consists of the following, some of which are other people's code, repackaged into classes. This package contains the header files and static libraries for Crypto++. %package tools Summary: Programs for manipulating %{name} routines Group: Development/Tools Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description tools Crypto++ Library is a free C++ class library of cryptographic schemes. Currently the library consists of the following, some of which are other people's code, repackaged into classes. This package contains programs for manipulating %{name} routines. %debug_package %prep %setup -q -n cryptopp-%{version} #-D -T # All files have ^M end of lines, fix that for the makefile patch to apply #find . -type f -exec dos2unix {} \; #%patch0 -p1 %build %make \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} \ CXXFLAGS+="-fPIC" \ %ifarch %{ix86} CXXFLAGS="-DCRYPTOPP_DISABLE_SSE2=1 -DCRYPTOPP_DISABLE_SHA_ASM=1" \ %endif %ifarch arm CXX="clang++" \ %endif dynamic cryptest.exe libcryptopp.pc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall \ PREFIX=%{_prefix} \ LIBDIR=%{_libdir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" #%pre #if [ $1 -gt 1 ]; then # [ -L %{_includedir}/crypto++ ] || { # mkdir -p %{_includedir}/crypto++ # mv %{_includedir}/cryptopp/* %{_includedir}/crypto++/ # rmdir %{_includedir}/cryptopp # } #fi #: %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,0755) %{_libdir}/libcryptopp.so.* #%{_libdir}/libcrypto++.so.* %files devel %defattr(-,root,root,0755) %dir %{_includedir}/cryptopp %{_includedir}/cryptopp/*.h %{_libdir}/libcryptopp.a %{_libdir}/libcryptopp.so %dir %{_datadir}/cryptopp %{_datadir}/cryptopp/* #%{_libdir}/libcrypto++.a #%{_libdir}/libcrypto++.la #%{_libdir}/libcrypto++.so %{_libdir}/pkgconfig/libcryptopp.pc %files tools %defattr(-,root,root,0755) %{_bindir}/cryptest.exe %changelog * Mon Oct 02 2023 Automatic Build System 8.9.0-1mamba - automatic version update by autodist * Thu Jun 29 2023 Automatic Build System 8.8.0-1mamba - automatic version update by autodist * Mon Aug 08 2022 Automatic Build System 8.7.0-1mamba - automatic version update by autodist * Sat Sep 25 2021 Automatic Build System 8.6.0-1mamba - automatic version update by autodist * Thu Jun 24 2021 Silvan Calarco 8.5.0-2mamba - remove obsolete for libcryptopptools * Thu Mar 18 2021 Silvan Calarco 8.5.0-1mamba - update to 8.5.0 * Wed Feb 10 2021 Silvan Calarco 8.4.0-1mamba - update to 8.4.0 * Sat Apr 30 2016 Silvan Calarco 5.6.2-4mamba - add pkg-config file * Fri Jan 29 2016 Silvan Calarco 5.6.2-3mamba - rebuilt with gcc 5.3.0 * Mon Aug 19 2013 Silvan Calarco 5.6.2-2mamba - %pre: fix /usr/include/cryptopp directory becoming a symlink * Mon Aug 19 2013 Silvan Calarco 5.6.2-1mamba - update to 5.6.2 * Wed Oct 24 2012 Silvan Calarco 5.6.1-1mamba - update to 5.6.1 * Thu Aug 21 2008 gil 5.5.2-1mamba - added patch