fix some spec file issues
This commit is contained in:
parent
4940ab8619
commit
e3e8515a40
14
sudo.spec
14
sudo.spec
@ -1,13 +1,13 @@
|
|||||||
Summary: Allows restricted root access for specified users
|
Summary: Allows restricted root access for specified users
|
||||||
Name: sudo
|
Name: sudo
|
||||||
Version: 1.6.8p12
|
Version: 1.6.8p12
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.courtesan.com/sudo/
|
URL: http://www.courtesan.com/sudo/
|
||||||
Source0: http://www.courtesan.com/sudo/dist/sudo-%{version}.tar.gz
|
Source0: http://www.courtesan.com/sudo/dist/sudo-%{version}.tar.gz
|
||||||
Source1: sudo-1.6.8p12-sudoers
|
Source1: sudo-1.6.8p12-sudoers
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: /etc/pam.d/system-auth, vim-minimal
|
Requires: /etc/pam.d/system-auth, vim-minimal
|
||||||
|
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
@ -64,6 +64,7 @@ export CFLAGS="$RPM_OPT_FLAGS $F_PIE -DHAVE_PAM_LOGIN" LDFLAGS="-pie"
|
|||||||
%configure \
|
%configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--sbindir=%{_sbindir} \
|
--sbindir=%{_sbindir} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
--with-logging=syslog \
|
--with-logging=syslog \
|
||||||
--with-logfac=authpriv \
|
--with-logfac=authpriv \
|
||||||
--with-pam \
|
--with-pam \
|
||||||
@ -79,8 +80,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
mkdir $RPM_BUILD_ROOT
|
mkdir $RPM_BUILD_ROOT
|
||||||
make install DESTDIR="$RPM_BUILD_ROOT" install_uid=`id -u` install_gid=`id -g` sudoers_uid=`id -u` sudoers_gid=`id -g`
|
make install DESTDIR="$RPM_BUILD_ROOT" install_uid=`id -u` install_gid=`id -g` sudoers_uid=`id -u` sudoers_gid=`id -g`
|
||||||
chmod 755 $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/*
|
chmod 755 $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/*
|
||||||
install -d -m 700 $RPM_BUILD_ROOT/var/run/sudo
|
install -p -d -m 700 $RPM_BUILD_ROOT/var/run/sudo
|
||||||
install -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
|
install -p -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
||||||
cat > $RPM_BUILD_ROOT/etc/pam.d/sudo << EOF
|
cat > $RPM_BUILD_ROOT/etc/pam.d/sudo << EOF
|
||||||
@ -126,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/bin/chmod 0440 /etc/sudoers || :
|
/bin/chmod 0440 /etc/sudoers || :
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 26 2007 Peter Vrabec <pvrabec@redhat.com> 1.6.8p12-13
|
||||||
|
- fix some spec file issues
|
||||||
|
|
||||||
* Thu Dec 14 2006 Peter Vrabec <pvrabec@redhat.com> 1.6.8p12-12
|
* Thu Dec 14 2006 Peter Vrabec <pvrabec@redhat.com> 1.6.8p12-12
|
||||||
- fix rpmlint issue
|
- fix rpmlint issue
|
||||||
|
|
||||||
@ -393,7 +397,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
- built package for 5.2
|
- built package for 5.2
|
||||||
|
|
||||||
* Mon May 18 1998 Michael Maher <mike@redhat.com>
|
* Mon May 18 1998 Michael Maher <mike@redhat.com>
|
||||||
- updated SPEC file.
|
- updated SPEC file
|
||||||
|
|
||||||
* Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com>
|
* Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com>
|
||||||
- updated to 1.5.4
|
- updated to 1.5.4
|
||||||
|
Loading…
Reference in New Issue
Block a user