public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cryptopp] rawhide: Update to 2026.8.0 with cryptopp-modern new upstream
@ 2026-08-03 13:43 Nicolas Chauvet
  0 siblings, 0 replies; only message in thread
From: Nicolas Chauvet @ 2026-08-03 13:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/cryptopp
Branch : rawhide
Commit : 3f87e12c4b56e9e1de1f3a104d868f5131330480
Author : Nicolas Chauvet <kwizart@gmail.com>
Date   : 2026-08-03T13:28:41+02:00
Stats  : +68/-56 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/cryptopp/c/3f87e12c4b56e9e1de1f3a104d868f5131330480?branch=rawhide

Log:
Update to 2026.8.0 with cryptopp-modern new upstream

---
diff --git a/.gitignore b/.gitignore
index b46e7f1..f1c4973 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
 cryptopp*.zip
 cryptopp*.zip.sig
+cryptopp-modern-*.tar.gz
+cryptopp-modern-*.tar.gz.sig
+gpgkey-CoraleSoft-844DCFC44A5DE9C14C3A2F62497A4CFBB700543E.gpg

diff --git a/cryptopp.spec b/cryptopp.spec
index f956d5b..137769c 100644
--- a/cryptopp.spec
+++ b/cryptopp.spec
@@ -2,52 +2,34 @@
 # https://www.cryptopp.com/wiki/Link_Time_Optimization
 %define _lto_cflags %{nil}
 
+%global upstream_url https://github.com/cryptopp-modern/cryptopp-modern
+
 Name:           cryptopp
-Version:        8.8.0
+Version:        2026.8.0
 Release:        %autorelease
 Summary:        C++ class library of cryptographic schemes
-# Automatically converted from old format: Boost - review is highly recommended.
 License:        BSL-1.0
-URL:            https://www.cryptopp.com
-
-%define v_tag %(v=%{version}; echo ${v//./_})
-%define v_file %(v=%{version}; echo ${v//./})
-
-Source0:        %{url}/cryptopp%{v_file}.zip
-Source1:        %{url}/cryptopp%{v_file}.zip.sig
-Source2:        %{url}/signing.html#/keyring.gpg
-Source10:       https://github.com/noloader/cryptopp-autotools/releases/download/CRYPTOPP_%{v_tag}/cryptopp-autotools%{v_file}.zip
-Source11:       https://github.com/noloader/cryptopp-autotools/releases/download/CRYPTOPP_%{v_tag}/cryptopp-autotools%{v_file}.zip.sig
-
-# Should be <major>+<minor>:<patch>:<minor> (this is confusing -_-)
-Patch0:         fix-autotools-version-info.patch
+URL:            https://cryptopp-modern.com/
 
-# fix "undefined reference to `AdhocTest'" when linking to the shared object
-Patch1:         remove-adhoc.patch
+Source0:       %{upstream_url}/releases/download/%{version}/cryptopp-modern-%{version}.tar.gz
+Source1:       %{upstream_url}/releases/download/%{version}/cryptopp-modern-%{version}.tar.gz.sig
+#https://github.com/cryptopp-modern/cryptopp-modern/blob/main/KEYS
+# gpg --import KEYS
+# gpg2 --export --export-options export-minimal "844DCFC44A5DE9C14C3A2F62497A4CFBB700543E" > gpgkey-CoraleSoft-844DCFC44A5DE9C14C3A2F62497A4CFBB700543E.gpg
+Source2: gpgkey-CoraleSoft-844DCFC44A5DE9C14C3A2F62497A4CFBB700543E.gpg
 
-BuildRequires:  bash
+BuildRequires:  cmake
 BuildRequires:  coreutils
-BuildRequires:  findutils
-BuildRequires:  glibc-common
-
+BuildRequires:  dos2unix
 BuildRequires:  doxygen
-
+BuildRequires:  findutils
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
-
-BuildRequires:  make
-BuildRequires:  libtool
-BuildRequires:  automake
-
-BuildRequires:  dos2unix
 BuildRequires:  gnupg2
+BuildRequires:  ninja-build
 
 Obsoletes:  %{name}-progs < 8.8.0-3
 
-# 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.
@@ -78,45 +60,73 @@ Crypto++ Library is a free C++ class library of cryptographic schemes.
 
 This package contains static libraries for %{name}.
 
+%package tests
+Summary:        Tests for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description tests
+Tests for %{name}.
+
+
 %prep
 %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
-%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE11}' --data='%{SOURCE10}'
+%autosetup -p1 -n cryptopp-modern-%{version}
 
-%autosetup -c -p1 -a 10
-find . -type f -name "*.zip" -exec rm "{}" \;
-dos2unix License.txt Readme.txt
-find . -not -type d -exec file "{}" ";" -print0 | grep -z CRLF | cut -d':' -z -f1 | xargs -0 dos2unix
 
 %build
-autoreconf -vi
-# Upstream recommends -O3, define NDEBUG to prevent sensitive data leaking on crash
-export CXXFLAGS="$(echo "%{optflags}" | sed -e 's/-O2//') -O3 -DNDEBUG"
-%configure
-%make_build all-am docs
+# build shared
+%cmake \
+  -DCRYPTOPP_BUILD_SHARED=ON \
+  -DCRYPTOPP_BUILD_TESTING=OFF
+
+%cmake_build
+
+# save shared build
+mv %{__cmake_builddir} build-shared
+
+# build static
+%cmake \
+  -DCRYPTOPP_BUILD_SHARED=OFF\
+  -DCRYPTOPP_BUILD_TESTING=ON
+
+%cmake_build
 
 %install
-%make_install
-rm %{buildroot}%{_bindir}/cryptest
-rm -rf %{buildroot}%{_datadir}/%{name}/
-mkdir -p %{buildroot}%{_libdir}/pkgconfig
-install -p -m 0644 libcryptopp.pc %{buildroot}%{_libdir}/pkgconfig/libcryptopp.pc
+%cmake_install
+
+# back to shared-build
+mv %{__cmake_builddir} build-static
+mv build-shared %{__cmake_builddir}
+
+%cmake_install
+
+# back to static-build for tests
+mv %{__cmake_builddir} build-shared
+mv build-static %{__cmake_builddir}
 
 %check
-./cryptest v
+%ctest
+
 
 %files
-%{_libdir}/libcryptopp.so.8*
-%doc Readme.txt
-%license License.txt
+%doc FORK.md GETTING_STARTED.md README.md Readme.txt RELEASE-*.md ROADMAP.md Security.md
+%license LICENSE
+%{_libdir}/libcryptopp.so.9
+%{_libdir}/libcryptopp.so.%{version}
 
 %files devel
-%doc html-docs/*
 %{_includedir}/cryptopp
 %{_libdir}/libcryptopp.so
 %{_libdir}/pkgconfig/libcryptopp.pc
+%{_libdir}/pkgconfig/cryptopp*.pc
+%{_libdir}/cmake/cryptopp-modern/*.cmake
 
 %files static
 %{_libdir}/libcryptopp.a
 
+%files tests
+%{_bindir}/cryptest*
+%{_datadir}/cryptopp
+
 %changelog
 %autochangelog

diff --git a/sources b/sources
index ef4f5d9..f2fb8ce 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,3 @@
-SHA512 (cryptopp880.zip) = 3fb1c591735f28dbd1329a6de6de9c495388c88bd5c4f077894c41668398ed313f14121a4553e0d4aa71e552ee8c3b744b770711748528ade71043ecc6159c80
-SHA512 (cryptopp880.zip.sig) = 8f3987841ff08f65a28fafed1ba3b0111e2c790d247ad739c28e6edb02a77e076b961007c4ba8684bc9e6c880730244b144ccc5f3416fb5fe57566b8021ee92e
-SHA512 (cryptopp-autotools880.zip) = c2f6996be104a6f8a0df3c035847eaef4fa78fd7eb85a5e7f8cb5b64d7fa52429dbd787e301609dfbaa0d461a3049c29560f6682e222fd15a1ab68f7422d2f86
-SHA512 (cryptopp-autotools880.zip.sig) = 977fd9740fc71d4dda5cc498530cf8e7d718a777fe012d1c42e3e6c40bd17c5b5c45185a30153112dc0ed8a08aa44c5d3d4409679010e3aec903dae33c3f25c6
+SHA512 (cryptopp-modern-2026.8.0.tar.gz) = dc4825ccba024fcbf9204bba1ff02a278ad51aa79fced05b059268b138fe28a6e7c53c999a874c970a384571111061f299477e86a73e7f25975be6c20273256a
+SHA512 (cryptopp-modern-2026.8.0.tar.gz.sig) = a88923f9b59178e8abfa8d0d732b17fcd25916c48b686db41cd7732896825165238833f7a11a152d775d5f5511cae9c0c012babc596d28014814defe29ea179e
+SHA512 (gpgkey-CoraleSoft-844DCFC44A5DE9C14C3A2F62497A4CFBB700543E.gpg) = 33400c97bbad66de7f6874018f523c2cc1328dcde2dad1171262f5647d2796d119e664c8ebce89da2b209a1be58caff6dbdd88dbaecfbe9c71b242f031832705

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-03 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03 13:43 [rpms/cryptopp] rawhide: Update to 2026.8.0 with cryptopp-modern new upstream Nicolas Chauvet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox