# Generated by rust2rpm 23 %bcond_without check %global crate pleaser Name: rust-pleaser Version: 0.5.3 Release: 1%{?dist} Summary: Please, a polite regex-first sudo alternative License: GPL-3.0-or-later URL: https://crates.io/crates/pleaser Source0: %{crates_source} Source1: LICENSE.dependencies BuildRequires: rust-packaging >= 21 %global _description %{expand: Please, a polite regex-first sudo alternative.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 # GPL-3.0-or-later # MIT # MIT OR Apache-2.0 # Unlicense OR MIT License: GPL-3.0-or-later AND Apache-2.0 AND MIT %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc CONTRIBUTING.md %doc README.md %{_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 %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 %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CONTRIBUTING.md %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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp %{SOURCE1} . %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 * Mon Oct 31 2022 Fabio Valentini - 0.5.3-1 - Update to version 0.5.3. - Regenerate spec file with rust2rpm v23. - Restore accidentally deleted changelog entries. - Drop unnecessary patch for nix version compatibility. - Update license tag for binary subpackage. * Sat Jul 23 2022 Fedora Release Engineering - 0.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.5.0-4 - Rebuild with package notes * 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