diff --git a/git-crypt.changes b/git-crypt.changes index 4d61d87..d5bad5a 100644 --- a/git-crypt.changes +++ b/git-crypt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Feb 11 11:10:29 UTC 2023 - Adam Mizerski + +- fixed building with openssl-3 + ------------------------------------------------------------------- Sat Apr 23 08:58:51 UTC 2022 - Adam Mizerski diff --git a/git-crypt.spec b/git-crypt.spec index 62dc7ed..73658f5 100644 --- a/git-crypt.spec +++ b/git-crypt.spec @@ -1,7 +1,7 @@ # # spec file for package git-crypt # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -45,9 +45,14 @@ down your entire repository. %setup -q %build +CXXFLAGS="-std=c++11 %{optflags}" +# https://github.com/AGWA/git-crypt/issues/232 +%if %{pkg_version_cmp libopenssl-devel 3} != -1 +CXXFLAGS="${CXXFLAGS} -DOPENSSL_API_COMPAT=0x30000000L" +%endif +export CXXFLAGS make %{?_smp_mflags} \ - ENABLE_MAN=yes \ - CXXFLAGS="-std=c++11 %{optflags}" + ENABLE_MAN=yes %install %make_install \