## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec Name: opendoas Version: 6.8.2 Release: %autorelease Summary: Portable fork of the OpenBSDs doas command # ISC: main program # BSD-3-Clause: libopenbsd License: ISC AND BSD-3-Clause URL: https://github.com/Duncaen/OpenDoas Source0: %url/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: %url/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig Source2: https://xn--1xa.duncano.de/duncan.asc # Remove chown from Makefile install as it is not permitted in mock Patch0: 01-patch-makefile-to-remove-chown.patch BuildRequires: byacc BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: make BuildRequires: pam-devel Provides: doas = %{version}-%{release} Provides: bundled(libopenbsd) %description doas is a minimal replacement for the venerable sudo. It was initially written by Ted Unangst of the OpenBSD project to provide 95% of the features of sudo with a fraction of the codebase. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 %build %set_build_flags # Non standard build script ./configure --prefix=%{_prefix} --with-timestamp --with-pam %make_build %install %make_install mkdir -p %{_sysconfdir} cat > %{buildroot}%{_sysconfdir}/doas.conf << EOF # Allow wheel by default permit :wheel EOF mkdir -p %{buildroot}%{_sysconfdir}/pam.d cat > %{buildroot}%{_sysconfdir}/pam.d/doas << 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 %files %license LICENSE %doc README.md %attr(4755,root,root) %{_bindir}/doas %config(noreplace) %{_sysconfdir}/doas.conf %config(noreplace) %{_sysconfdir}/pam.d/doas %{_mandir}/man1/doas.1* %{_mandir}/man5/doas.conf.5* %changelog * Fri Jul 22 2022 Fedora Release Engineering 6.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jul 09 2022 Robert-André Mauchin 6.8.2-1 - Update to 6.8.2 - Close: rhbz#2046534 * Thu Jan 20 2022 Fedora Release Engineering - 6.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 6.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Mar 4 10:40:42 CET 2021 Robert-André Mauchin - 6.8.1-2 - Build with pam support - Add pam config file - Set binary as suid * Wed Jan 27 01:04:53 CET 2021 Robert-André Mauchin - 6.8.1-1 - Initial package