]> git.pld-linux.org Git - packages/sudo.git/blobdiff - sudo.spec
- release 2
[packages/sudo.git] / sudo.spec
index 72d374f93bb7987fc398cd6961df252b169a86b0..4ca8965422cf8144437e2f0e19b04426afb18825 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
-Release:       4
+Version:       1.6.8p12
+Release:       2
 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)
@@ -138,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}
@@ -170,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.031121 seconds and 4 git commands to generate.