The package rpms/rust-sequoia-octopus-librnp.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rust-sequoia-octopus-librnp.git/comm....
Change: +ExcludeArch: %{arm} s390x
Thanks.
Full change: ============
commit dd4d4c03704a0510e1edcd1ab8685b79a9e0d4a7 Author: Fabio Valentini decathorpe@gmail.com Date: Mon Apr 26 10:04:09 2021 +0200
initial import (#1948159)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b13224f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/sequoia-octopus-librnp-1.0.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 080723b..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sequoia-octopus-librnp - -The rust-sequoia-octopus-librnp package diff --git a/rust-sequoia-octopus-librnp.spec b/rust-sequoia-octopus-librnp.spec new file mode 100644 index 0000000..eb47e92 --- /dev/null +++ b/rust-sequoia-octopus-librnp.spec @@ -0,0 +1,92 @@ +# Not generated by rust2rpm 16 +# https://pagure.io/fedora-rust/rust2rpm/issue/125 +%bcond_without check +%global __cargo_skip_build 0 + +%global crate sequoia-octopus-librnp + +%global tb_plugindir %{_libdir}/thunderbird +%global __provides_exclude_from ^%{tb_plugindir}/.*\.so$ + +Name: rust-%{crate} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Reimplementation of RNP's interface using Sequoia + +# Upstream license specification: GPL-2.0-or-later +License: GPLv2+ +URL: https://crates.io/crates/sequoia-octopus-librnp +Source: %{crates_source} +# Initial patched metadata +# * exclude files only useful for upstream development +# * do not use bundled sqlite in rusqlite +Patch: sequoia-octopus-librnp-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +# exclude architectures where thunderbird is not available +ExcludeArch: %{arm} s390x + +BuildRequires: rust-packaging + +%global _description %{expand: +Reimplementation of RNP's interface using Sequoia for use with +Thunderbird.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# 0BSD or MIT or ASL 2.0 +# ASL 2.0 +# ASL 2.0 or Boost +# 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 LGPLv3+ +# 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 + +Requires: thunderbird +#Provides: thunderbird-librnp + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE.txt +%doc README.md +#%%{tb_plugindir}/librnp.so +%{tb_plugindir}/libsequoia_octopus_librnp.so + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +mkdir -p %{buildroot}/%{tb_plugindir} +# https://src.fedoraproject.org/rpms/thunderbird/pull-request/11 +# https://bugzilla.mozilla.org/show_bug.cgi?id=1698540 +#cp -pav target/release/libsequoia_octopus_librnp.so %%{buildroot}/%%{tb_plugindir}/librnp.so +cp -pav target/release/libsequoia_octopus_librnp.so %{buildroot}/%{tb_plugindir}/ + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Apr 26 2021 Fabio Valentini decathorpe@gmail.com - 1.0.1-1 +- Initial package diff --git a/sequoia-octopus-librnp-fix-metadata.diff b/sequoia-octopus-librnp-fix-metadata.diff new file mode 100644 index 0000000..39e2ebc --- /dev/null +++ b/sequoia-octopus-librnp-fix-metadata.diff @@ -0,0 +1,20 @@ +diff --git a/Cargo.toml b/Cargo.toml +index f26fe3e..afc89e3 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -22,6 +22,7 @@ keywords = ["cryptography", "openpgp", "pgp", "encryption", "signing"] + categories = ["cryptography", "authentication", "email"] + license = "GPL-2.0-or-later" + repository = "https://gitlab.com/sequoia-pgp/sequoia-octopus-librnp" ++exclude = ["notes.org", "rust-toolchain"] + + [lib] + crate-type = ["cdylib"] +@@ -61,7 +62,6 @@ default-features = false + + [dependencies.rusqlite] + version = "0.24" +-features = ["bundled"] + + [dependencies.sequoia-autocrypt] + version = "0.23" diff --git a/sources b/sources new file mode 100644 index 0000000..7f83ec6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sequoia-octopus-librnp-1.0.1.crate) = 2b3e068035847f19a333b2d9702d5adad4a36b6c2a36707be8c1a3a6ec2d17791c02a8f90c6f37be9741323b28dab6577b93fe0a21bc8156c253845e09eda573
arch-excludes@lists.fedoraproject.org