# # spec file for package rnp # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2023 Andreas Stieger # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define soname 0 Name: rnp Version: 0.17.0 Release: 0 Summary: OpenPGP implementation fully compliant with RFC 4880 License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause URL: https://www.rnpgp.com/ Source: https://github.com/rnpgp/rnp/releases/download/v%{version}/%{name}-v%{version}.tar.gz Source2: https://github.com/rnpgp/rnp/releases/download/v%{version}/%{name}-v%{version}.tar.gz.asc Source3: https://www.rnpgp.org/openpgp_keys/31AF5A24D861EFCB7CB79A1924900CE0AEFB5417-50DA59D5B9134FA2DB1EB20CFB829AB5D0FE017F.asc#/%{name}.keyring Patch0: rnp-v0.17.0-disable-static.patch Patch2: rnp-v0.17.0-system-sexp.patch BuildRequires: cmake >= 3.18 BuildRequires: gcc-c++ BuildRequires: gpg2 >= 2.2 BuildRequires: gtest BuildRequires: pkgconfig BuildRequires: pkgconfig(botan-2) >= 2.14.0 BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(json-c) >= 0.11 BuildRequires: pkgconfig(sexp) >= 0.8.2 BuildRequires: pkgconfig(zlib) BuildRequires: rubygem(asciidoctor) %description RNP is a set of OpenPGP (RFC4880) tools, an alternative to GnuPG. %package -n librnp%{soname} Summary: OpenPGP implementation as a C++ library fully compliant with RFC 4880 %description -n librnp%{soname} RNP is a set of OpenPGP (RFC4880) tools, an alternative to GnuPG. librnp is the library used by RNP for all OpenPGP functions, useful for developers to build against, different from GPGME. %package devel Summary: Development files for RNP Requires: librnp%{soname} = %{version} %description devel RNP is a set of OpenPGP (RFC4880) tools, an alternative to GnuPG. This package contains the files needed to build against librnp. %prep %autosetup -p1 -n %{name}-v%{version} rm -rf src/libsexp %build %cmake \ -DDOWNLOAD_GTEST:BOOL=OFF \ -DBUILD_TESTING:BOOL=ON \ %{nil} %cmake_build %install %cmake_install %check %ctest %ldconfig_scriptlets -n librnp%{soname} %files %license LICENSE* %{_bindir}/* %{_mandir}/man1/*.1%{?ext_man} %files -n librnp%{soname} %license LICENSE* %{_libdir}/*.so.0* %files devel %license LICENSE* %doc CHANGELOG.md README.adoc %{_includedir}/* %{_libdir}/cmake/rnp %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_mandir}/man3/*.3%{?ext_man} %changelog