mirror of
https://abf.rosa.ru/djam/cryptopp.git
synced 2025-02-23 16:02:47 +00:00
5.6.5
This commit is contained in:
parent
6beb7c802b
commit
68c73d4a9e
2 changed files with 12 additions and 7 deletions
|
@ -5,8 +5,8 @@ includedir=@INCLUDEDIR@
|
|||
|
||||
Name: Crypto++
|
||||
Description: A free C++ class library of cryptographic schemes
|
||||
Version: 5.6.2
|
||||
URL: http://www.cryptopp.com
|
||||
Version: @VERSION@
|
||||
URL: https://www.cryptopp.com
|
||||
Requires:
|
||||
Conflicts:
|
||||
Libs: -L${libdir} -lcryptopp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%define major 6
|
||||
%define major 5.6
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define devname %mklibname %{name} -d
|
||||
%define staticname %mklibname %{name} -s -d
|
||||
|
@ -160,7 +160,7 @@ Crypto++ Library is a free C++ class library of cryptographic schemes.
|
|||
This package contains programs for manipulating %{name} routines.
|
||||
|
||||
%files progs
|
||||
%{_bindir}/cryptest
|
||||
%{_bindir}/cryptest*
|
||||
%{_datadir}/%{name}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
@ -179,18 +179,18 @@ find . -type f -exec chmod a+r {} \;
|
|||
export CXXFLAGS="%{optflags} -DNDEBUG"
|
||||
#configure2_5x \
|
||||
# --enable-static
|
||||
%make
|
||||
%make static dynamic cryptest.exe
|
||||
doxygen
|
||||
|
||||
%install
|
||||
%makeinstall_std
|
||||
%makeinstall_std PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||
|
||||
sed -i -e 's/\r$//g' License.txt Readme.txt
|
||||
|
||||
# Install pkg-config file
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc
|
||||
# Set variables
|
||||
sed -i "s|@PREFIX@|%{_prefix}|g;s|@LIBDIR@|%{_libdir}|g;s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc
|
||||
sed -i "s|@PREFIX@|%{_prefix}|g;s|@LIBDIR@|%{_libdir}|g;s|@INCLUDEDIR@|%{_includedir}|g;s|@VERSION@|%{version}|g" %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc
|
||||
|
||||
install -d %{buildroot}%{_datadir}/%{name}/TestVectors
|
||||
install -m 0644 TestVectors/* %{buildroot}%{_datadir}/%{name}/TestVectors
|
||||
|
@ -199,6 +199,11 @@ install -m 0644 TestData/* %{buildroot}%{_datadir}/%{name}/TestData
|
|||
|
||||
rm -f %{buildroot}%{_bindir}/cryptestcwd
|
||||
|
||||
pushd %{buildroot}%{_bindir}
|
||||
ln -sf cryptest.exe cryptest
|
||||
popd
|
||||
|
||||
|
||||
%check
|
||||
#./cryptestcwd v
|
||||
./cryptest.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue