remove obsolete for libcryptopptools [release 8.5.0-2mamba;Thu Jun 24 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:02:25 +01:00
parent 6679d1989c
commit feaf1e4fbf
2 changed files with 54 additions and 64 deletions

View File

@ -2,6 +2,5 @@
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.

View File

@ -1,14 +1,15 @@
%define realversion %(echo %version | tr -d .)
%define gitver %(echo %version | tr . _)
Name: libcryptopp
Version: 5.6.2
Release: 4mamba
Version: 8.5.0
Release: 2mamba
Summary: Free C++ class library of cryptographic schemes
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cryptopp.com/
Source: http://downloads.sourceforge.net/project/cryptopp/cryptopp/%{version}/cryptopp%{realversion}.zip
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
@ -21,18 +22,10 @@ BuildRequires: libstdc++6-devel
BuildRequires: unzip
BuildRequires: gcc-c++
BuildRequires: hd2u
%ifarch x86_64
Provides: libcryptopp.so()(64bit)
%else
Provides: libcryptopp.so
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Obsoletes: libcryptopp-tools
%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
@ -43,7 +36,6 @@ 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
@ -54,81 +46,80 @@ 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 -c -n %{name}-%{version}
%setup -q -n cryptopp-%{version}
# All files have ^M end of lines, fix that for the makefile patch to apply
find . -type f -exec dos2unix {} \;
%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#find . -type f -exec dos2unix {} \;
#%patch0 -p1
%build
%make LIBDIR=%{_lib} \
%ifarch x86_64
CXXFLAGS+="-fPIC"
%make \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
CXXFLAGS+="-fPIC" \
%ifarch arm
CXX="clang++" \
%endif
dynamic cryptest.exe libcryptopp.pc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall LIBDIR=%{_lib}
install -d -m0755 %{buildroot}%{_libdir}/pkgconfig
cat > %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc << _EOF
prefix=%{_prefix}
exec_prefix=%{_libexecdir}
libdir=%{_libdir}
Name: Crypto++
Description: A free C++ class library of cryptographic schemes
Version: 5.6.2
URL: http://www.cryptopp.com
Requires:
Conflicts:
Libs: -lcryptopp
Libs.private:
Cflags:
_EOF
%makeinstall \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
if [ $1 -gt 1 ]; then
[ -L %{_includedir}/cryptopp ] || {
mkdir -p %{_includedir}/crypto++
mv %{_includedir}/cryptopp/* %{_includedir}/crypto++/
rmdir %{_includedir}/cryptopp
}
fi
:
#%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.*
%{_libdir}/libcryptopp.so.*
#%{_libdir}/libcrypto++.so.*
%files devel
%defattr(-,root,root,0755)
%{_includedir}/cryptopp
%dir %{_includedir}/crypto++
%{_includedir}/crypto++/*.h
%dir %{_includedir}/cryptopp
%{_includedir}/cryptopp/*.h
%{_libdir}/libcryptopp.a
%{_libdir}/libcrypto++.a
%{_libdir}/libcrypto++.la
%{_libdir}/libcrypto++.so
%{_libdir}/pkgconfig/cryptopp.pc
%{_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
%files tools
%defattr(-,root,root,0755)
%{_bindir}/cryptest.exe
%changelog
* 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
* Sat Apr 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.2-4mamba
- add pkg-config file