2024-01-06 04:02:25 +01:00
|
|
|
%define gitver %(echo %version | tr . _)
|
2024-01-06 04:02:24 +01:00
|
|
|
Name: libcryptopp
|
2024-01-06 04:02:25 +01:00
|
|
|
Version: 8.7.0
|
2024-01-06 04:02:25 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 04:02:24 +01:00
|
|
|
Summary: Free C++ class library of cryptographic schemes
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 04:02:25 +01:00
|
|
|
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
|
2024-01-06 04:02:24 +01:00
|
|
|
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
|
2024-01-06 04:02:25 +01:00
|
|
|
Summary: Files for development of applications which will use %{name}
|
2024-01-06 04:02:24 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-06 04:02:25 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 04:02:24 +01:00
|
|
|
%prep
|
2024-01-06 04:02:25 +01:00
|
|
|
%setup -q -n cryptopp-%{version} -D -T
|
2024-01-06 04:02:24 +01:00
|
|
|
# All files have ^M end of lines, fix that for the makefile patch to apply
|
2024-01-06 04:02:25 +01:00
|
|
|
#find . -type f -exec dos2unix {} \;
|
|
|
|
#%patch0 -p1
|
2024-01-06 04:02:24 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 04:02:25 +01:00
|
|
|
%make \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
CXXFLAGS+="-fPIC" \
|
2024-01-06 04:02:25 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
CXXFLAGS="-DCRYPTOPP_DISABLE_SSE2=1 -DCRYPTOPP_DISABLE_SHA_ASM=1" \
|
|
|
|
%endif
|
2024-01-06 04:02:25 +01:00
|
|
|
%ifarch arm
|
|
|
|
CXX="clang++" \
|
2024-01-06 04:02:24 +01:00
|
|
|
%endif
|
2024-01-06 04:02:25 +01:00
|
|
|
dynamic cryptest.exe libcryptopp.pc
|
2024-01-06 04:02:24 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 04:02:25 +01:00
|
|
|
%makeinstall \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir}
|
2024-01-06 04:02:25 +01:00
|
|
|
|
2024-01-06 04:02:24 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 04:02:25 +01:00
|
|
|
#%pre
|
|
|
|
#if [ $1 -gt 1 ]; then
|
|
|
|
# [ -L %{_includedir}/crypto++ ] || {
|
|
|
|
# mkdir -p %{_includedir}/crypto++
|
|
|
|
# mv %{_includedir}/cryptopp/* %{_includedir}/crypto++/
|
|
|
|
# rmdir %{_includedir}/cryptopp
|
|
|
|
# }
|
|
|
|
#fi
|
|
|
|
#:
|
2024-01-06 04:02:24 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
2024-01-06 04:02:25 +01:00
|
|
|
%{_libdir}/libcryptopp.so.*
|
|
|
|
#%{_libdir}/libcrypto++.so.*
|
2024-01-06 04:02:24 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,0755)
|
2024-01-06 04:02:25 +01:00
|
|
|
%dir %{_includedir}/cryptopp
|
|
|
|
%{_includedir}/cryptopp/*.h
|
2024-01-06 04:02:24 +01:00
|
|
|
%{_libdir}/libcryptopp.a
|
2024-01-06 04:02:25 +01:00
|
|
|
%{_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
|
2024-01-06 04:02:24 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 04:02:25 +01:00
|
|
|
* Mon Aug 08 2022 Automatic Build System <autodist@mambasoft.it> 8.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:02:25 +01:00
|
|
|
* Sat Sep 25 2021 Automatic Build System <autodist@mambasoft.it> 8.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:02:25 +01:00
|
|
|
* Thu Jun 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.5.0-2mamba
|
|
|
|
- remove obsolete for libcryptopptools
|
|
|
|
|
|
|
|
* Thu Mar 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.5.0-1mamba
|
|
|
|
- update to 8.5.0
|
|
|
|
|
|
|
|
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.4.0-1mamba
|
|
|
|
- update to 8.4.0
|
|
|
|
|
2024-01-06 04:02:25 +01:00
|
|
|
* Sat Apr 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.2-4mamba
|
|
|
|
- add pkg-config file
|
|
|
|
|
2024-01-06 04:02:24 +01:00
|
|
|
* Fri Jan 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.2-3mamba
|
|
|
|
- rebuilt with gcc 5.3.0
|
|
|
|
|
2024-01-06 04:02:24 +01:00
|
|
|
* Mon Aug 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.2-2mamba
|
|
|
|
- %pre: fix /usr/include/cryptopp directory becoming a symlink
|
|
|
|
|
|
|
|
* Mon Aug 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.2-1mamba
|
|
|
|
- update to 5.6.2
|
|
|
|
|
|
|
|
* Wed Oct 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.1-1mamba
|
|
|
|
- update to 5.6.1
|
|
|
|
|
|
|
|
* Thu Aug 21 2008 gil <puntogil@libero.it> 5.5.2-1mamba
|
|
|
|
- added patch
|