Accepting request 1066050 from devel:tools:scm

OBS-URL: https://build.opensuse.org/request/show/1066050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git-crypt?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2023-02-16 15:56:37 +00:00 committed by Git OBS Bridge
commit 9d04398856
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Feb 11 11:10:29 UTC 2023 - Adam Mizerski <adam@mizerski.pl>
- fixed building with openssl-3
-------------------------------------------------------------------
Sat Apr 23 08:58:51 UTC 2022 - Adam Mizerski <adam@mizerski.pl>

View File

@ -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
make %{?_smp_mflags} \
ENABLE_MAN=yes \
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
%install
%make_install \