## 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 # * missing dev-dependencies: fehler, subplot-build, subplotlib %bcond_with check %global crate sequoia-sq Name: rust-%{crate} Version: 0.26.0 Release: %autorelease Summary: Command-line frontends for Sequoia # Upstream license specification: GPL-2.0-or-later License: GPLv2+ URL: https://crates.io/crates/sequoia-sq 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 automated generation of upstream integration tests Patch0: sequoia-sq-fix-metadata.diff Patch1: 0001-build-remove-automated-integration-test-generation.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %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+ # LGPLv2+ # 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: GPLv3 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 %{_bindir}/sq %{_mandir}/man1/sq* %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp %{SOURCE1} . # 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 * Sat Jul 23 2022 Fedora Release Engineering 0.26.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Mar 16 2022 Fabio Valentini 0.26.0-1 - Update to version 0.26.0; Fixes RHBZ#2059968 * Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.25.0-5 - Rebuild with package notes * Fri Jan 21 2022 Fedora Release Engineering - 0.25.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 14 2021 Sahana Prasad - 0.25.0-3 - Rebuilt with OpenSSL 3.0.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.25.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Apr 08 2021 Fabio Valentini - 0.25.0-1 - Initial package