代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/cryptopp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%define _lto_cflags %{nil}
Name: cryptopp
Version: 8.8.0
Release: 1
Summary: C++ class library of cryptographic schemes
License: Boost
URL: http://www.cryptopp.com/
Source0: http://www.cryptopp.com/cryptopp880.zip
Source1: cryptopp.pc
#Patch0: https://github.com/weidai11/cryptopp/commit/94aba0105efa.patch
BuildRequires: doxygen
BuildRequires: clang
# %ifarch i686 x86_64
# BuildRequires: nasm
# %endif
BuildRequires: make
# Obsoletes pycryptopp to avoid breaking upgrades
Obsoletes: pycryptopp < 0.7
Provides: pycryptopp = 0.7
%description
Crypto++ Library is a free C++ class library of cryptographic schemes.
See http://www.cryptopp.com/ for a list of supported algorithms.
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 are in the public domain.
%package devel
Summary: Header files and development documentation for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Crypto++ Library is a free C++ class library of cryptographic schemes.
This package contains the header files and development documentation
for %{name}.
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
%description doc
Crypto++ Library is a free C++ class library of cryptographic schemes.
This package contains documentation for %{name}.
%package progs
Summary: Programs for manipulating %{name} routines
Requires: %{name}%{?_isa} = %{version}-%{release}
%description progs
Crypto++ Library is a free C++ class library of cryptographic schemes.
This package contains programs for manipulating %{name} routines.
%prep
%autosetup -c -p1
perl -pi -e 's/\r$//g' License.txt Readme.txt
%build
%{set_build_flags}
%make_build -f GNUmakefile \
ZOPT='' \
shared cryptest.exe
doxygen
%install
%make_install INSTALL="install -p -c " PREFIX="%{_prefix}" LIBDIR="%{_libdir}"
# Install the pkg-config file
install -D -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/cryptopp.pc
# Fill in the variables
sed -i "s|@PREFIX@|%{_prefix}|g" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/cryptopp.pc
sed -i "s|@LIBDIR@|%{_libdir}|g" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/cryptopp.pc
sed -i "s|@VERSION@|%{version}}|g" $RPM_BUILD_ROOT%{_libdir}/pkgconfig/cryptopp.pc
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/TestVectors
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/TestData
install -m644 TestVectors/* $RPM_BUILD_ROOT%{_datadir}/%{name}/TestVectors
install -m644 TestData/* $RPM_BUILD_ROOT%{_datadir}/%{name}/TestData
# Rename cryptest
mv $RPM_BUILD_ROOT%{_bindir}/cryptest.exe \
$RPM_BUILD_ROOT%{_bindir}/cryptest
# Remove static lib
rm %{buildroot}%{_libdir}/libcryptopp.a
%check
./cryptest.exe v
%ldconfig_scriptlets
%files
%{_libdir}/libcryptopp.so.8*
%doc Readme.txt
%license License.txt
%files devel
%{_includedir}/cryptopp
%{_libdir}/libcryptopp.so
%{_libdir}/pkgconfig/cryptopp.pc
%files doc
%license License.txt
%doc html-docs/*
%files progs
%{_bindir}/cryptest
%{_datadir}/%{name}
%changelog
* Tue Aug 22 2023 leeffo <liweiganga@uniontech.com> - 8.8.0-1
- upgrade to version 8.8.0
* Tue Feb 28 2023 lilong <lilong@kylinos.cn> - 8.7.0-1
- Upgrade to 8.7.0
* Fri Jul 29 2022 liweiganga <liweiganga@uniontech.com> - 8.6.0-1
- update to 8.6.0
* Thu Sep 10 2020 liurenxu <liurenxu@talkweb.com.cn> - 8.2.0-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。