remove obsolete for libcryptopptools [release 8.5.0-2mamba;Thu Jun 24 2021]
This commit is contained in:
parent
6679d1989c
commit
feaf1e4fbf
@ -2,6 +2,5 @@
|
|||||||
|
|
||||||
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
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.
|
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.
|
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.
|
||||||
|
|
||||||
|
115
libcryptopp.spec
115
libcryptopp.spec
@ -1,14 +1,15 @@
|
|||||||
%define realversion %(echo %version | tr -d .)
|
%define gitver %(echo %version | tr . _)
|
||||||
Name: libcryptopp
|
Name: libcryptopp
|
||||||
Version: 5.6.2
|
Version: 8.5.0
|
||||||
Release: 4mamba
|
Release: 2mamba
|
||||||
Summary: Free C++ class library of cryptographic schemes
|
Summary: Free C++ class library of cryptographic schemes
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://www.cryptopp.com/
|
URL: https://www.cryptopp.com/
|
||||||
Source: http://downloads.sourceforge.net/project/cryptopp/cryptopp/%{version}/cryptopp%{realversion}.zip
|
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
|
Patch0: libcryptopp-5.6.2-gnumakefile.patch
|
||||||
Patch1: libcryptopp-5.6.1-gcc-4.7.patch
|
Patch1: libcryptopp-5.6.1-gcc-4.7.patch
|
||||||
Patch2: libcryptopp-5.6.1-libcryptopp-CXXFLAGS.patch
|
Patch2: libcryptopp-5.6.1-libcryptopp-CXXFLAGS.patch
|
||||||
@ -21,18 +22,10 @@ BuildRequires: libstdc++6-devel
|
|||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hd2u
|
BuildRequires: hd2u
|
||||||
%ifarch x86_64
|
|
||||||
Provides: libcryptopp.so()(64bit)
|
|
||||||
%else
|
|
||||||
Provides: libcryptopp.so
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
Obsoletes: libcryptopp-tools
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
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.
|
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.
|
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
|
%package devel
|
||||||
@ -43,7 +36,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
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.
|
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++.
|
This package contains the header files and static libraries for Crypto++.
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
@ -54,81 +46,80 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description tools
|
%description tools
|
||||||
Crypto++ Library is a free C++ class library of cryptographic schemes.
|
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.
|
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.
|
This package contains programs for manipulating %{name} routines.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%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
|
# All files have ^M end of lines, fix that for the makefile patch to apply
|
||||||
find . -type f -exec dos2unix {} \;
|
#find . -type f -exec dos2unix {} \;
|
||||||
%patch0 -p1
|
#%patch0 -p1
|
||||||
#%patch1 -p1
|
|
||||||
#%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make LIBDIR=%{_lib} \
|
%make \
|
||||||
%ifarch x86_64
|
PREFIX=%{_prefix} \
|
||||||
CXXFLAGS+="-fPIC"
|
LIBDIR=%{_libdir} \
|
||||||
|
CXXFLAGS+="-fPIC" \
|
||||||
|
%ifarch arm
|
||||||
|
CXX="clang++" \
|
||||||
%endif
|
%endif
|
||||||
|
dynamic cryptest.exe libcryptopp.pc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall LIBDIR=%{_lib}
|
%makeinstall \
|
||||||
|
PREFIX=%{_prefix} \
|
||||||
install -d -m0755 %{buildroot}%{_libdir}/pkgconfig
|
LIBDIR=%{_libdir}
|
||||||
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
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%pre
|
#%pre
|
||||||
if [ $1 -gt 1 ]; then
|
#if [ $1 -gt 1 ]; then
|
||||||
[ -L %{_includedir}/cryptopp ] || {
|
# [ -L %{_includedir}/crypto++ ] || {
|
||||||
mkdir -p %{_includedir}/crypto++
|
# mkdir -p %{_includedir}/crypto++
|
||||||
mv %{_includedir}/cryptopp/* %{_includedir}/crypto++/
|
# mv %{_includedir}/cryptopp/* %{_includedir}/crypto++/
|
||||||
rmdir %{_includedir}/cryptopp
|
# rmdir %{_includedir}/cryptopp
|
||||||
}
|
# }
|
||||||
fi
|
#fi
|
||||||
:
|
#:
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%{_libdir}/libcryptopp.so*
|
%{_libdir}/libcryptopp.so.*
|
||||||
%{_libdir}/libcrypto++.so.*
|
#%{_libdir}/libcrypto++.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%{_includedir}/cryptopp
|
%dir %{_includedir}/cryptopp
|
||||||
%dir %{_includedir}/crypto++
|
%{_includedir}/cryptopp/*.h
|
||||||
%{_includedir}/crypto++/*.h
|
|
||||||
%{_libdir}/libcryptopp.a
|
%{_libdir}/libcryptopp.a
|
||||||
%{_libdir}/libcrypto++.a
|
%{_libdir}/libcryptopp.so
|
||||||
%{_libdir}/libcrypto++.la
|
%dir %{_datadir}/cryptopp
|
||||||
%{_libdir}/libcrypto++.so
|
%{_datadir}/cryptopp/*
|
||||||
%{_libdir}/pkgconfig/cryptopp.pc
|
#%{_libdir}/libcrypto++.a
|
||||||
|
#%{_libdir}/libcrypto++.la
|
||||||
|
#%{_libdir}/libcrypto++.so
|
||||||
|
%{_libdir}/pkgconfig/libcryptopp.pc
|
||||||
|
|
||||||
#%files tools
|
%files tools
|
||||||
#%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
#%{_bindir}/cryptest
|
%{_bindir}/cryptest.exe
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Apr 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6.2-4mamba
|
||||||
- add pkg-config file
|
- add pkg-config file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user