## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 21 %bcond_without check %global crate sequoia-sop Name: rust-%{crate} Version: 0.26.1 Release: %autorelease Summary: Stateless OpenPGP Interface using Sequoia # Upstream license specification: GPL-2.0-or-later License: GPLv2+ URL: https://crates.io/crates/sequoia-sop Source0: %{crates_source} Source1: LICENSE.dependencies # Initial patched metadata # * exclude files that are only useful for upstream development # * prevent manpages from getting installed twice # * drop windows-specific features and dependencies Patch0: sequoia-sop-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Implementation of the Stateless OpenPGP Interface using 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+ # LGPLv2+ # LGPLv3 or GPLv2 or GPLv3 # 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 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}/sqop %{_mandir}/man1/sqop* %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE.txt %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cli-devel %{_description} This package contains library source intended for building other packages which use the "cli" feature of the "%{crate}" crate. %files -n %{name}+cli-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-devel %{_description} This package contains library source intended for building other packages which use the "compression" feature of the "%{crate}" crate. %files -n %{name}+compression-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-bzip2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-bzip2-devel %{_description} This package contains library source intended for building other packages which use the "compression-bzip2" feature of the "%{crate}" crate. %files -n %{name}+compression-bzip2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compression-deflate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compression-deflate-devel %{_description} This package contains library source intended for building other packages which use the "compression-deflate" feature of the "%{crate}" crate. %files -n %{name}+compression-deflate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crypto-nettle-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crypto-nettle-devel %{_description} This package contains library source intended for building other packages which use the "crypto-nettle" feature of the "%{crate}" crate. %files -n %{name}+crypto-nettle-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a # install manual pages mkdir -p %{buildroot}/%{_mandir}/man1 cp -pav man-sqop/* %{buildroot}/%{_mandir}/man1/ %if %{with check} %check %cargo_test -a %endif %changelog * Sat Jul 23 2022 Fedora Release Engineering 0.26.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Mar 16 2022 Fabio Valentini 0.26.1-1 - Update to version 0.26.1; Fixes RHBZ#1972711 * Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.23.0-4 - Rebuild with package notes * Fri Jan 21 2022 Fedora Release Engineering - 0.23.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.23.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 07 2021 Fabio Valentini - 0.23.0-1 - Update to version 0.23.0. * Thu Apr 08 2021 Fabio Valentini - 0.22.2-1 - Initial package