Initial import (#1901118)
parent
bc8b39691c
commit
63b11abbba
@ -0,0 +1 @@
|
||||
/pleaser-0.4.1.crate
|
@ -0,0 +1,117 @@
|
||||
# Generated by rust2rpm 16
|
||||
%bcond_without check
|
||||
|
||||
%global crate pleaser
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.4.1
|
||||
Release: 1%{?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
|
||||
|
||||
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
|
||||
* Mon Nov 23 21:34:08 GMT 2020 ed neville <ed@s5h.net> - 0.3.24-1
|
||||
- Initial package
|
Loading…
Reference in new issue