|
|
|
@ -1,8 +1,18 @@
|
|
|
|
|
# Generated by rust2rpm 16
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
%global __cargo_skip_build 0
|
|
|
|
|
%global crate pleaser
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
# disabling this as it chokes on the vendored dependencies
|
|
|
|
|
%undefine __brp_mangle_shebangs
|
|
|
|
|
# el8 doesn't have these macros
|
|
|
|
|
%global __crates_url https://crates.io/api/v1/crates/
|
|
|
|
|
%global crates_source %{__crates_url}%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
%global version_no_tilde %{version}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.5.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
@ -11,17 +21,27 @@ Summary: Please, a polite regex-first sudo alternative
|
|
|
|
|
# Upstream license specification: GPL-3.0-or-later
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: https://crates.io/crates/pleaser
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
Source0: %{crates_source}
|
|
|
|
|
Source1: %{crate}-%{version}-vendor.tar.gz
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?el8}
|
|
|
|
|
# Patch nix dependency to >= 0.19 as upstream bumped
|
|
|
|
|
Patch0: pleaser-fix-metadata.diff
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Patch nix dep to >= 0.19
|
|
|
|
|
Patch0: pleaser-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Please, a polite regex-first sudo alternative.}
|
|
|
|
@ -57,7 +77,10 @@ which use "%{crate}" crate.
|
|
|
|
|
%files devel
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?el8}
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -69,14 +92,26 @@ This package contains library source intended for building other packages
|
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%if ! 0%{?el8}
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
%cargo_prep -V 1
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
# drop opt-level generation to fix s390x OOM problems
|
|
|
|
|
sed -i 's/opt-level=3/opt-level=1/' .cargo/config
|
|
|
|
|
%endif
|
|
|
|
|
%else
|
|
|
|
|
%cargo_prep
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
@ -116,6 +151,9 @@ EOF
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Nov 23 2021 ed neville <ed@s5h.net> - 0.5.0-1
|
|
|
|
|
- EPEL8 sections
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|