SHA256
1
0
forked from pool/git-crypt

Accepting request 1066049 from home:etamPL:branches:devel:tools:scm

fixed building with openssl-3

OBS-URL: https://build.opensuse.org/request/show/1066049
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git-crypt?expand=0&rev=5
This commit is contained in:
Adam Mizerski 2023-02-15 20:09:53 +00:00 committed by Git OBS Bridge
parent 7c822d1f50
commit 9c71fa01be
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -45,9 +45,14 @@ down your entire repository.
%setup -q %setup -q
%build %build
make %{?_smp_mflags} \
ENABLE_MAN=yes \
CXXFLAGS="-std=c++11 %{optflags}" 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 %install
%make_install \ %make_install \