fix some spec file issues

This commit is contained in:
Peter Vrabec 2007-02-26 19:23:08 +00:00
parent 4940ab8619
commit e3e8515a40

View File

@ -1,13 +1,13 @@
Summary: Allows restricted root access for specified users
Name: sudo
Version: 1.6.8p12
Release: 12%{?dist}
Release: 13%{?dist}
License: BSD
Group: Applications/System
URL: http://www.courtesan.com/sudo/
Source0: http://www.courtesan.com/sudo/dist/sudo-%{version}.tar.gz
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
BuildRequires: pam-devel
@ -64,6 +64,7 @@ export CFLAGS="$RPM_OPT_FLAGS $F_PIE -DHAVE_PAM_LOGIN" LDFLAGS="-pie"
%configure \
--prefix=%{_prefix} \
--sbindir=%{_sbindir} \
--libdir=%{_libdir} \
--with-logging=syslog \
--with-logfac=authpriv \
--with-pam \
@ -79,8 +80,8 @@ rm -rf $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`
chmod 755 $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/*
install -d -m 700 $RPM_BUILD_ROOT/var/run/sudo
install -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
install -p -d -m 700 $RPM_BUILD_ROOT/var/run/sudo
install -p -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
cat > $RPM_BUILD_ROOT/etc/pam.d/sudo << EOF
@ -126,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
/bin/chmod 0440 /etc/sudoers || :
%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
- fix rpmlint issue
@ -393,7 +397,7 @@ rm -rf $RPM_BUILD_ROOT
- built package for 5.2
* Mon May 18 1998 Michael Maher <mike@redhat.com>
- updated SPEC file.
- updated SPEC file
* Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com>
- updated to 1.5.4