OBS-URL: https://build.opensuse.org/package/show/security:privacy/rnp?expand=0&rev=10
102 lines
3.0 KiB
RPMSpec
102 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package rnp
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# Copyright (c) 2022 Andreas Stieger <Andreas.Stieger@gmx.de>
|
|
#
|
|
# 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.16.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/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source2: https://github.com/rnpgp/rnp/releases/download/v%{version}/v%{version}.tar.gz.asc#/%{name}-%{version}.tar.gz.asc
|
|
Source3: https://www.rnpgp.org/openpgp_keys/BEDBA05C1E6EE2DFB4BA72E1EC5D520AD90A7262-A845A5BD622556E89D7763B5EB06D1696BEC4C90.asc#/%{name}.keyring
|
|
BuildRequires: cmake >= 3.14
|
|
BuildRequires: gcc-c++
|
|
# https://github.com/rnpgp/rnp/issues/1579
|
|
BuildRequires: git
|
|
BuildRequires: gpg2 >= 2.2
|
|
BuildRequires: gtest
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: cmake(json-c) >= 0.11
|
|
BuildRequires: pkgconfig(botan-2) >= 2.14.0
|
|
BuildRequires: pkgconfig(bzip2)
|
|
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
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake \
|
|
-DBUILD_SHARED_LIBS=on \
|
|
-DDOWNLOAD_GTEST=off \
|
|
-DDOWNLOAD_RUBYRNP=off \
|
|
-DBUILD_TESTING=on \
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%post -n librnp%{soname} -p /sbin/ldconfig
|
|
%postun -n librnp%{soname} -p /sbin/ldconfig
|
|
|
|
%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
|