# Generated by rust2rpm 16 %bcond_without check %global crate pleaser Name: rust-%{crate} Version: 0.5.0 Release: 3%{?dist} 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} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif # Patch nix dep to >= 0.19 Patch0: pleaser-fix-metadata.diff # Patch process id type for syslog Patch1: pleaser-fix-syslog.diff BuildRequires: rust-packaging %global _description %{expand: Please, a polite regex-first sudo alternative.} %description %{_description} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %doc README.md %license LICENSE %{_bindir}/please %{_bindir}/pleaseedit %{_mandir}/man1/please.1* %{_mandir}/man5/please.ini.5* %config(noreplace) /etc/pam.d/please %config(noreplace) /etc/pam.d/pleaseedit %endif %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %doc README.md %license LICENSE %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %{__install} -Dpm4755 -t %{buildroot}%{_bindir} target/release/please %{__install} -Dpm4755 -t %{buildroot}%{_bindir} target/release/pleaseedit %{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 man/please.1 %{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man5 man/please.ini.5 mkdir -p $RPM_BUILD_ROOT/etc/pam.d cat > $RPM_BUILD_ROOT/etc/pam.d/please << EOF #%PAM-1.0 auth include system-auth account include system-auth password include system-auth session optional pam_keyinit.so revoke session required pam_limits.so session include system-auth EOF mkdir -p $RPM_BUILD_ROOT/etc/pam.d cat > $RPM_BUILD_ROOT/etc/pam.d/pleaseedit << EOF #%PAM-1.0 auth include system-auth account include system-auth password include system-auth session optional pam_keyinit.so revoke session required pam_limits.so session include system-auth EOF %if %{with check} %check %cargo_test %endif %changelog * Fri Jan 21 2022 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Nov 23 21:34:08 GMT 2020 ed neville - 0.3.24-1 - Initial package