]> git.pld-linux.org Git - packages/sudo.git/blobdiff - sudo.spec
- rel up for new libcrypto
[packages/sudo.git] / sudo.spec
index d83109cc2e07731720fac509fee690d88e960cee..a471980581c67a4d9911e520a519417511634f4e 100644 (file)
--- a/sudo.spec
+++ b/sudo.spec
@@ -1,6 +1,9 @@
 #
 # Conditional build:
 %bcond_without selinux         # build without SELinux support
+%bcond_without skey            # disable skey (onetime passwords) support
+%bcond_without heimdal         # disable Kerberos support
+%bcond_without ldap            # disable LDAP support
 #
 Summary:       Allows command execution as root for specified users
 Summary(es):   Permite que usuarios específicos ejecuten comandos como se fueran el root
@@ -10,26 +13,26 @@ Summary(pt_BR):     Permite que usu
 Summary(ru):   ðÏÚ×ÏÌÑÅÔ ÏÐÒÅÄÅÌÅÎÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÓÐÏÌÎÑÔØ ËÏÍÁÎÄÙ ÏÔ ÉÍÅÎÉ root
 Summary(uk):   äÏÚ×ÏÌѤ ×ËÁÚÁÎÉÍ ËÏÒÉÓÔÕ×ÁÞÁÍ ×ÉËÏÎÕ×ÁÔÉ ËÏÍÁÎÄɠצĠ¦ÍÅΦ root
 Name:          sudo
-Version:       1.6.8p8
+Version:       1.6.8p12
 Release:       4
 Epoch:         1
 License:       BSD
 Group:         Applications/System
-Source0:       ftp://ftp.courtesan.com/pub/sudo/%{name}-%{version}.tar.gz
-# Source0-md5: 7a60e95d0931dcf3caff7929e974d5cc
+Source0:       ftp://ftp.sudo.ws/pub/sudo/%{name}-%{version}.tar.gz
+# Source0-md5: b29893c06192df6230dd5f340f3badf5
 Source1:       %{name}.pamd
 Source2:       %{name}.logrotate
 Patch0:                %{name}-selinux.patch
 Patch1:                %{name}-ac.patch
-URL:           http://www.courtesan.com/sudo/
+URL:           http://www.sudo.ws/sudo/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
+%{?with_heimdal:BuildRequires: heimdal-devel >= 0.7}
 %{?with_selinux:BuildRequires: libselinux-devel}
-BuildRequires: heimdal-devel
-BuildRequires: openldap-devel
-BuildRequires: skey-devel >= 2.2-11
 BuildRequires: libtool
+%{?with_ldap:BuildRequires:    openldap-devel >= 2.3.0}
 BuildRequires: pam-devel
+%{?with_skey:BuildRequires:    skey-devel >= 2.2-11}
 Requires:      pam >= 0.77.3
 Obsoletes:     cu-sudo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -119,7 +122,10 @@ cp -f /usr/share/automake/config.sub .
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
-%ifarch sparc sparc64
+# sparc64 2.4.x kernels have buggy sys32_utimes(somefile, NULL) syscall
+# it's fixed in >= 2.4.31-0.3, but keep workaround not to require very
+# fresh kernel
+%ifarch sparc sparcv9
 export ac_cv_func_utimes=no
 %endif
 %configure \
@@ -135,9 +141,9 @@ export ac_cv_func_utimes=no
        --with-secure-path="/bin:/sbin:/usr/bin:/usr/sbin" \
        --with-loglen=320 \
        --disable-saved-ids \
-       --with-kerb5 \
-       --with-ldap \
-       --with-skey \
+       --with%{!?with_heimdal:out}-kerb5 \
+       --with%{!?with_ldap:out}-ldap \
+       --with%{!?with_skey:out}-skey \
        --with-long-otp-prompt
 
 %{__make}
@@ -167,8 +173,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc BUGS CHANGES HISTORY README TODO TROUBLESHOOTING sample.sudoers
-%attr(440,root,root) %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/sudoers
-%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/sudo
+%attr(440,root,root) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/sudoers
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sudo
 %attr(4755,root,root) %{_bindir}/sudo
 %attr(4755,root,root) %{_bindir}/sudoedit
 %{?with_selinux:%attr(755,root,root) %{_sbindir}/sesh}
This page took 0.042468 seconds and 4 git commands to generate.