|
|
|
# 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
|
|
|
|
%autochangelog
|