Set up update workflow with %autorelease macro
- removed stri patch that was not relevant - intercept feature is not compatible with selinux rbac support so we do not build it anymore Signed-off-by: Radovan Sroka <rsroka@redhat.com>
This commit is contained in:
parent
b9a4f24d95
commit
206108fe35
23
sudo.spec
23
sudo.spec
@ -1,10 +1,18 @@
|
|||||||
|
|
||||||
|
# comment out if no extra version
|
||||||
|
%global extraver p2
|
||||||
|
|
||||||
Summary: Allows restricted root access for specified users
|
Summary: Allows restricted root access for specified users
|
||||||
Name: sudo
|
Name: sudo
|
||||||
Version: 1.9.8p2
|
Version: 1.9.8
|
||||||
Release: %autorelease
|
# remove -b 3 after rebase !!!
|
||||||
|
# use "-p -e % {?extraver}" when beta
|
||||||
|
# use "-e % {?extraver}"" when patch version
|
||||||
|
# use nothing special when normal version
|
||||||
|
Release: %autorelease -b 3
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://www.sudo.ws
|
URL: https://www.sudo.ws
|
||||||
Source0: %{url}/dist/%{name}-%{version}.tar.gz
|
Source0: %{url}/dist/%{name}-%{version}%{?extraver}.tar.gz
|
||||||
Source1: sudoers
|
Source1: sudoers
|
||||||
Requires: pam
|
Requires: pam
|
||||||
Recommends: nano
|
Recommends: nano
|
||||||
@ -23,9 +31,6 @@ BuildRequires: sendmail
|
|||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
# don't strip
|
|
||||||
Patch1: sudo-1.6.7p5-strip.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Sudo (superuser do) allows a system administrator to give certain
|
Sudo (superuser do) allows a system administrator to give certain
|
||||||
users (or groups of users) the ability to run some (or all) commands
|
users (or groups of users) the ability to run some (or all) commands
|
||||||
@ -66,9 +71,7 @@ BuildRequires: python3-devel
|
|||||||
%{name}-python-plugin allows using sudo plugins written in Python.
|
%{name}-python-plugin allows using sudo plugins written in Python.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{name}-%{version}%{?extraver}
|
||||||
|
|
||||||
%patch1 -p1 -b .strip
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Remove bundled copy of zlib
|
# Remove bundled copy of zlib
|
||||||
@ -89,6 +92,7 @@ export CFLAGS="$RPM_OPT_FLAGS $F_PIE" LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
|
|||||||
--docdir=%{_pkgdocdir} \
|
--docdir=%{_pkgdocdir} \
|
||||||
--enable-openssl \
|
--enable-openssl \
|
||||||
--disable-root-mailer \
|
--disable-root-mailer \
|
||||||
|
--disable-intercept \
|
||||||
--with-logging=syslog \
|
--with-logging=syslog \
|
||||||
--with-logfac=authpriv \
|
--with-logfac=authpriv \
|
||||||
--with-pam \
|
--with-pam \
|
||||||
@ -192,7 +196,6 @@ EOF
|
|||||||
%attr(0644,root,root) %{_libexecdir}/sudo/group_file.so
|
%attr(0644,root,root) %{_libexecdir}/sudo/group_file.so
|
||||||
%attr(0644,root,root) %{_libexecdir}/sudo/sample_approval.so
|
%attr(0644,root,root) %{_libexecdir}/sudo/sample_approval.so
|
||||||
%attr(0644,root,root) %{_libexecdir}/sudo/system_group.so
|
%attr(0644,root,root) %{_libexecdir}/sudo/system_group.so
|
||||||
%attr(0644,root,root) %{_libexecdir}/sudo/sudo_intercept.so
|
|
||||||
%attr(0644,root,root) %{_libexecdir}/sudo/libsudo_util.so.?.?.?
|
%attr(0644,root,root) %{_libexecdir}/sudo/libsudo_util.so.?.?.?
|
||||||
%{_libexecdir}/sudo/libsudo_util.so.?
|
%{_libexecdir}/sudo/libsudo_util.so.?
|
||||||
%{_libexecdir}/sudo/libsudo_util.so
|
%{_libexecdir}/sudo/libsudo_util.so
|
||||||
|
Loading…
Reference in New Issue
Block a user