Initial import from Fedora
Resolves: RHEL-45856 Signed-off-by: Daiki Ueno <dueno@redhat.com>
This commit is contained in:
parent
c910ea6d8c
commit
edace736d6
2
.gitignore
vendored
2
.gitignore
vendored
@ -0,0 +1,2 @@
|
|||||||
|
/rust-sequoia-sqv-1.2.1-vendor.tar.xz
|
||||||
|
/sequoia-sqv-1.2.1.crate
|
11
changelog
Normal file
11
changelog
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.0-4
|
||||||
|
- Rebuild with package notes
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Apr 08 2021 Fabio Valentini <decathorpe@gmail.com> - 1.0.0-1
|
||||||
|
- Initial package
|
121
rust-sequoia-sqv.spec
Normal file
121
rust-sequoia-sqv.spec
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
# Generated by rust2rpm 26
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
%global crate sequoia-sqv
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
# RHEL: Use bundled deps as it doesn't ship Rust libraries
|
||||||
|
%global bundled_rust_deps 1
|
||||||
|
%global __brp_mangle_shebangs_exclude_from ^/usr/src/debug/.*$
|
||||||
|
%else
|
||||||
|
# Fedora: Use only system Rust libraries
|
||||||
|
%global bundled_rust_deps 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: rust-sequoia-sqv
|
||||||
|
Version: 1.2.1
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Simple OpenPGP signature verification program
|
||||||
|
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
URL: https://crates.io/crates/sequoia-sqv
|
||||||
|
Source0: %{crates_source}
|
||||||
|
|
||||||
|
# Generated using cargo-vendor-filterer:
|
||||||
|
# cargo download %%{crate}==%%{version} > %%{crate}-%%{version}.crate
|
||||||
|
# tar xf %%{crate}-%%{version}.crate
|
||||||
|
# pushd %%{crate}-%%{version}
|
||||||
|
# cargo vendor-filterer --platform x86_64-unknown-linux-gnu \
|
||||||
|
# --platform powerpc64le-unknown-linux-gnu \
|
||||||
|
# --platform aarch64-unknown-linux-gnu \
|
||||||
|
# --platform i686-unknown-linux-gnu \
|
||||||
|
# --platform s390x-unknown-linux-gnu \
|
||||||
|
# --all-features=true
|
||||||
|
Source1: %{name}-%{version}-vendor.tar.xz
|
||||||
|
# Manually created patch for downstream crate metadata changes
|
||||||
|
# * switch crypto backend from Nettle to OpenSSL
|
||||||
|
# * exclude files that are only useful for upstream development
|
||||||
|
# * drop features for unsupported crypto backends
|
||||||
|
Patch: sequoia-sqv-fix-metadata.diff
|
||||||
|
|
||||||
|
ExclusiveArch: %{rust_arches}
|
||||||
|
|
||||||
|
%if 0%{?bundled_rust_deps}
|
||||||
|
BuildRequires: rust-toolset
|
||||||
|
# vendored openssl-sys
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: cargo-rpm-macros >= 24
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global _description %{expand:
|
||||||
|
A simple OpenPGP signature verification program.}
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
|
%package -n %{crate}
|
||||||
|
Summary: %{summary}
|
||||||
|
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
|
||||||
|
# Apache-2.0
|
||||||
|
# Apache-2.0 OR MIT
|
||||||
|
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
|
||||||
|
# BSL-1.0
|
||||||
|
# GPL-2.0-or-later
|
||||||
|
# LGPL-2.0-or-later
|
||||||
|
# MIT
|
||||||
|
# MIT OR Apache-2.0
|
||||||
|
# MIT OR Apache-2.0 OR Zlib
|
||||||
|
# Unlicense OR MIT
|
||||||
|
# Zlib OR Apache-2.0 OR MIT
|
||||||
|
License: GPL-2.0-or-later AND Apache-2.0 AND BSL-1.0 AND LGPL-2.0-or-later AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
|
||||||
|
# LICENSE.dependencies contains a full license breakdown
|
||||||
|
|
||||||
|
%description -n %{crate} %{_description}
|
||||||
|
|
||||||
|
%files -n %{crate}
|
||||||
|
%license LICENSE.txt
|
||||||
|
%license LICENSE.dependencies
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/sqv
|
||||||
|
%{_mandir}/man1/sqv*
|
||||||
|
%{bash_completions_dir}/sqv.bash
|
||||||
|
%{fish_completions_dir}/sqv.fish
|
||||||
|
%{zsh_completions_dir}/_sqv
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{crate}-%{version} -N %{?bundled_rust_deps:-a1}
|
||||||
|
%autopatch -M 99 -p1
|
||||||
|
%if 0%{?bundled_rust_deps}
|
||||||
|
%cargo_prep -v vendor
|
||||||
|
%else
|
||||||
|
%cargo_prep
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%cargo_generate_buildrequires
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cargo_build
|
||||||
|
%{cargo_license_summary}
|
||||||
|
%{cargo_license} > LICENSE.dependencies
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cargo_install
|
||||||
|
# install manual pages
|
||||||
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||||
|
cp -pav target/release/build/%{crate}-*/out/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/
|
||||||
|
# install shell completions
|
||||||
|
install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.bash \
|
||||||
|
%{buildroot}/%{bash_completions_dir}/sqv.bash
|
||||||
|
install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.fish \
|
||||||
|
%{buildroot}/%{fish_completions_dir}/sqv.fish
|
||||||
|
install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/_sqv \
|
||||||
|
%{buildroot}/%{zsh_completions_dir}/_sqv
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
%cargo_test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
27
rust2rpm.toml
Normal file
27
rust2rpm.toml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[package]
|
||||||
|
cargo-toml-patch-comments = [
|
||||||
|
"switch crypto backend from Nettle to OpenSSL",
|
||||||
|
"exclude files that are only useful for upstream development",
|
||||||
|
"drop features for unsupported crypto backends",
|
||||||
|
]
|
||||||
|
extra-files = [
|
||||||
|
"%{_mandir}/man1/sqv*",
|
||||||
|
"%{bash_completions_dir}/sqv.bash",
|
||||||
|
"%{fish_completions_dir}/sqv.fish",
|
||||||
|
"%{zsh_completions_dir}/_sqv",
|
||||||
|
]
|
||||||
|
|
||||||
|
[scripts]
|
||||||
|
install.post = [
|
||||||
|
"# install manual pages",
|
||||||
|
"mkdir -p %{buildroot}/%{_mandir}/man1",
|
||||||
|
"cp -pav target/release/build/%{crate}-*/out/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/",
|
||||||
|
"# install shell completions",
|
||||||
|
"install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.bash \\",
|
||||||
|
" %{buildroot}/%{bash_completions_dir}/sqv.bash",
|
||||||
|
"install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/sqv.fish \\",
|
||||||
|
" %{buildroot}/%{fish_completions_dir}/sqv.fish",
|
||||||
|
"install -Dpm 0644 target/release/build/%{crate}-*/out/shell-completions/_sqv \\",
|
||||||
|
" %{buildroot}/%{zsh_completions_dir}/_sqv",
|
||||||
|
]
|
||||||
|
|
17
sequoia-sqv-fix-metadata.diff
Normal file
17
sequoia-sqv-fix-metadata.diff
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- sequoia-sqv-1.2.1/Cargo.toml 1970-01-01T00:00:01+00:00
|
||||||
|
+++ sequoia-sqv-1.2.1/Cargo.toml 2024-04-19T12:33:50.962487+00:00
|
||||||
|
@@ -98,13 +98,9 @@
|
||||||
|
version = "0.6"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
-crypto-botan = ["sequoia-openpgp/crypto-botan"]
|
||||||
|
-crypto-botan2 = ["sequoia-openpgp/crypto-botan2"]
|
||||||
|
-crypto-cng = ["sequoia-openpgp/crypto-cng"]
|
||||||
|
crypto-nettle = ["sequoia-openpgp/crypto-nettle"]
|
||||||
|
crypto-openssl = ["sequoia-openpgp/crypto-openssl"]
|
||||||
|
-crypto-rust = ["sequoia-openpgp/crypto-rust"]
|
||||||
|
-default = ["crypto-nettle"]
|
||||||
|
+default = ["crypto-openssl"]
|
||||||
|
|
||||||
|
[badges.gitlab]
|
||||||
|
repository = "sequoia-pgp/sequoia"
|
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SHA512 (rust-sequoia-sqv-1.2.1-vendor.tar.xz) = 2a607f30a146a9948dd1e94921f331e9c2448728e048a4c19c49c70e774309eb960ae41c54562bef1725a1038751a7e5ef5177c091c781783bea2a8f973f9721
|
||||||
|
SHA512 (sequoia-sqv-1.2.1.crate) = 9e784b64b8c2b84b6e89abfecd49083b8cc37809a4879ec0fa4201e79b31cbf06562c07773b0b6ebc31990034c70172f2dc59ba4b0c3af1e8bdc23e9dec29cd8
|
Loading…
Reference in New Issue
Block a user