1 |
# use fakeroot -ba sudo.spec to build! |
# use fakeroot -ba sudo.spec to build! |
|
%define _disable_ld_no_undefined 1 |
|
2 |
|
|
3 |
Name: sudo |
Name: sudo |
4 |
Version: 1.8.12 |
Version: 1.8.12 |
5 |
Release: %mkrel 1 |
Release: %mkrel 2 |
6 |
Epoch: 1 |
Epoch: 1 |
7 |
Summary: Allows command execution as root for specified users |
Summary: Allows command execution as root for specified users |
8 |
License: GPLv2+ |
License: GPLv2+ |
14 |
Source3: sudo-1.7.2p2-sudoers |
Source3: sudo-1.7.2p2-sudoers |
15 |
Patch1: sudo-1.6.7p5-strip.patch |
Patch1: sudo-1.6.7p5-strip.patch |
16 |
Patch2: sudo-1.7.2p1-envdebug.patch |
Patch2: sudo-1.7.2p1-envdebug.patch |
17 |
|
Patch3: sudo-1.8.12-sudo_util-linking.patch |
18 |
|
Patch4: sudo-1.8.12-crypt-null.patch |
19 |
BuildRequires: audit-devel |
BuildRequires: audit-devel |
20 |
BuildRequires: bison |
BuildRequires: bison |
21 |
BuildRequires: groff-for-man |
BuildRequires: groff-for-man |
46 |
%setup -q -n %{name}-%{version}%{?pre} |
%setup -q -n %{name}-%{version}%{?pre} |
47 |
%patch1 -p1 -b .strip |
%patch1 -p1 -b .strip |
48 |
%patch2 -p1 -b .envdebug |
%patch2 -p1 -b .envdebug |
49 |
|
%patch3 -p1 -b .linking |
50 |
|
%patch4 -p1 -b .crypt |
51 |
|
|
52 |
# fix attribs |
# fix attribs |
53 |
find -name "Makefile.*" | xargs perl -pi -e "s|-m 0444|-m 0644|g" |
find -name "Makefile.*" | xargs perl -pi -e "s|-m 0444|-m 0644|g" |