From 3f08e5d4c0ff6ca2cfb45387dfd327a5d51057e3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 13 Apr 2021 13:44:13 +0200 Subject: [PATCH] initial import (#1948161) --- .gitignore | 4 ++ README.md | 3 -- rust-sequoia-sq.spec | 80 ++++++++++++++++++++++++++++++++++++ sequoia-sq-fix-metadata.diff | 10 +++++ sources | 1 + 5 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-sequoia-sq.spec create mode 100644 sequoia-sq-fix-metadata.diff create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..063e5ca --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/sequoia-sq-0.25.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 184f4cb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sequoia-sq - -The rust-sequoia-sq package diff --git a/rust-sequoia-sq.spec b/rust-sequoia-sq.spec new file mode 100644 index 0000000..e50781d --- /dev/null +++ b/rust-sequoia-sq.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global __cargo_skip_build 0 + +%global crate sequoia-sq + +Name: rust-%{crate} +Version: 0.25.0 +Release: 1%{?dist} +Summary: Command-line frontends for Sequoia + +# Upstream license specification: GPL-2.0-or-later +# https://gitlab.com/sequoia-pgp/sequoia/-/issues/708 +License: GPLv2+ +URL: https://crates.io/crates/sequoia-sq +Source: %{crates_source} +# Initial patched metadata +# * exclude files that are only useful for upstream development +# * prevent manpages from getting installed twice +Patch0: sequoia-sq-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Command-line frontends for Sequoia.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# 0BSD or MIT or ASL 2.0 +# ASL 2.0 +# ASL 2.0 or MIT +# BSD +# CC0 +# GPLv2+ +# LGPLv3 or GPLv2 or GPLv3 +# LGPLv3+ +# MIT +# MIT or ASL 2.0 +# MIT or ASL 2.0 or zlib +# MIT or zlib or ASL 2.0 +# Unlicense or MIT +# zlib or ASL 2.0 or MIT +License: GPLv2+ and ASL 2.0 and BSD and CC0 and LGPLv3+ and MIT + +%description -n %{crate} %{_description} + +%files -n %{crate} +%{_bindir}/sq +%{_mandir}/man1/sq* + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +# remove integration tests (assert-cli is broken during RPM builds) +rm -r tests +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install +# install manual pages +mkdir -p %{buildroot}/%{_mandir}/man1 +cp -pav man-sq-net-autocrypt/* %{buildroot}/%{_mandir}/man1/ + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Thu Apr 08 2021 Fabio Valentini - 0.25.0-1 +- Initial package diff --git a/sequoia-sq-fix-metadata.diff b/sequoia-sq-fix-metadata.diff new file mode 100644 index 0000000..4c38fbf --- /dev/null +++ b/sequoia-sq-fix-metadata.diff @@ -0,0 +1,10 @@ +--- sequoia-sq-0.25.0/Cargo.toml 2021-03-05T14:32:49+00:00 ++++ sequoia-sq-0.25.0/Cargo.toml 2021-04-08T21:49:05.202328+00:00 +@@ -24,6 +24,7 @@ + categories = ["cryptography", "authentication", "command-line-utilities"] + license = "GPL-2.0-or-later" + repository = "https://gitlab.com/sequoia-pgp/sequoia" ++exclude = ["man-*", "Makefile"] + + [[bin]] + name = "sq" diff --git a/sources b/sources new file mode 100644 index 0000000..1d5d20d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sequoia-sq-0.25.0.crate) = 21bf5c9a48b9ea7f0bea46c520d13af4c2ce965b6b859035f69a8b5f83c65a6c9c90605870d7ff96956a123f18e15ac347c16794daf912783d59c53f3b202e71