SHA256
1
0
forked from pool/rnp
Andreas Stieger 2022-01-15 08:26:01 +00:00 committed by Git OBS Bridge
parent 53ba558057
commit fc1d2d4234
2 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jan 15 08:14:17 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
- disable tests
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 9 20:44:23 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de> Mon Aug 9 20:44:23 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -1,8 +1,8 @@
# #
# spec file for package rnp # spec file for package rnp
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# Copyright (c) 2021 Andreas Stieger <Andreas.Stieger@gmx.de> # Copyright (c) 2022 Andreas Stieger <Andreas.Stieger@gmx.de>
# #
# 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
@ -18,6 +18,7 @@
%define soname 0 %define soname 0
%bcond_with rnp_tests
Name: rnp Name: rnp
Version: 0.15.2 Version: 0.15.2
Release: 0 Release: 0
@ -30,13 +31,15 @@ BuildRequires: gcc-c++
# https://github.com/rnpgp/rnp/issues/1579 # https://github.com/rnpgp/rnp/issues/1579
BuildRequires: git BuildRequires: git
BuildRequires: gpg2 >= 2.2 BuildRequires: gpg2 >= 2.2
BuildRequires: gtest
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: cmake(json-c) >= 0.11 BuildRequires: cmake(json-c) >= 0.11
BuildRequires: pkgconfig(botan-2) >= 2.14.0 BuildRequires: pkgconfig(botan-2) >= 2.14.0
BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
BuildRequires: rubygem(asciidoctor) BuildRequires: rubygem(asciidoctor)
%if %{with rnp_tests}
BuildRequires: gtest
%endif
%description %description
RNP is a set of OpenPGP (RFC4880) tools, an alternative to GnuPG. RNP is a set of OpenPGP (RFC4880) tools, an alternative to GnuPG.
@ -63,9 +66,13 @@ This package contains the files needed to build against librnp.
%build %build
%cmake \ %cmake \
-DBUILD_SHARED_LIBS=on \ -DBUILD_SHARED_LIBS=on \
-DBUILD_TESTING=on \
-DDOWNLOAD_GTEST=off \ -DDOWNLOAD_GTEST=off \
-DDOWNLOAD_RUBYRNP=off \ -DDOWNLOAD_RUBYRNP=off \
%if %{with rnp_tests}
-DBUILD_TESTING=on \
%else
-DBUILD_TESTING=off \
%endif
%cmake_build %cmake_build
@ -73,7 +80,9 @@ This package contains the files needed to build against librnp.
%cmake_install %cmake_install
%check %check
%if %{with rnp_tests}
%ctest %ctest
%endif
%post -n librnp%{soname} -p /sbin/ldconfig %post -n librnp%{soname} -p /sbin/ldconfig
%postun -n librnp%{soname} -p /sbin/ldconfig %postun -n librnp%{soname} -p /sbin/ldconfig