## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 26 %bcond_without check # RHEL does not have packages for Rust dependencies %if 0%{?rhel} %global bundled_rust_deps 1 %else %global bundled_rust_deps 0 %endif %global crate sequoia-sqv Name: rust-sequoia-sqv Version: 1.3.0 Release: %autorelease Summary: Simple OpenPGP signature verification program License: LGPL-2.0-or-later URL: https://crates.io/crates/sequoia-sqv Source: %{crates_source} # To create the vendor tarball: # tar xf %%{crate}-%%{version}.crate ; \ # pushd %%{crate}-%%{version} ; \ # rm Cargo.lock ; \ # patch -p1 < ../sequoia-sqv-fix-metadata.diff ; \ # cargo vendor --versioned-dirs ; \ # tar Jcvf ../%%{crate}-%%{version}-vendor.tar.xz vendor/ ; \ # popd Source1: %{crate}-%{version}-vendor.tar.xz # Manually created patch for downstream crate metadata changes # * switch crypto backend from Nettle to OpenSSL # * drop features for unsupported crypto backends Patch: sequoia-sqv-fix-metadata.diff %if 0%{?bundled_rust_deps} BuildRequires: rust-toolset # vendored openssl-sys crate 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} # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-3-Clause # BSL-1.0 # LGPL-2.0-or-later # MIT # MIT OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: %{shrink: LGPL-2.0-or-later AND Apache-2.0 AND BSD-3-Clause AND BSL-1.0 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 %if 0%{?bundled_rust_deps} %license cargo-vendor.txt %endif %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} -p1 %{?bundled_rust_deps:-a1} %if 0%{?bundled_rust_deps} %cargo_prep -v vendor rm Cargo.lock %else %cargo_prep %endif %if ! 0%{?bundled_rust_deps} %generate_buildrequires %cargo_generate_buildrequires %endif %build export ASSET_OUT_DIR=target/assets %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %if 0%{?bundled_rust_deps} %cargo_vendor_manifest %endif %install %cargo_install # install manual pages mkdir -p %{buildroot}/%{_mandir}/man1 cp -pav target/assets/man-pages/sqv*.1 %{buildroot}/%{_mandir}/man1/ # install shell completions install -Dpm 0644 target/assets/shell-completions/sqv.bash \ %{buildroot}/%{bash_completions_dir}/sqv.bash install -Dpm 0644 target/assets/shell-completions/sqv.fish \ %{buildroot}/%{fish_completions_dir}/sqv.fish install -Dpm 0644 target/assets/shell-completions/_sqv \ %{buildroot}/%{zsh_completions_dir}/_sqv %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Mar 27 2025 Fabio Valentini - 1.3.0-2 - Make installation of shell completions and man pages more robust * Mon Mar 17 2025 Fabio Valentini - 1.3.0-1 - Update to version 1.3.0; Fixes RHBZ#2350411 * Thu Feb 06 2025 Fabio Valentini - 1.2.1-5 - Update vendor tarball for openssl crate >= v0.10.70 (RUSTSEC-2025-0004) * Sat Aug 24 2024 Fabio Valentini - 1.2.1-4 - Use vendored dependencies in RHEL builds * Sat Jul 20 2024 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 1.2.1-2 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Fri Apr 19 2024 Fabio Valentini - 1.2.1-1 - Update to version 1.2.1; Fixes RHBZ#2275941 * Sat Jan 27 2024 Fedora Release Engineering - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Aug 07 2023 Fabio Valentini - 1.1.0-7 - Regenerate with rust2rpm v24 * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu May 18 2023 Fabio Valentini - 1.1.0-5 - Rebuild for sequoia-openpgp v1.16 * Sun Feb 05 2023 Fabio Valentini - 1.1.0-4 - Rebuild for fixed frame pointer compiler flags in Rust RPM macros * Sat Jan 21 2023 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Mar 16 2022 Fabio Valentini - 1.1.0-1 - Update to version 1.1.0; Fixes RHBZ#2029868 * Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 1.0.0-4 - Rebuild with package notes * Fri Jan 21 2022 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Apr 08 2021 Fabio Valentini - 1.0.0-1 - Initial package ## END: Generated by rpmautospec