X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache-mod_auth_kerb.spec;h=e164bdc84bdb6a46d749d4974d79c765d36be668;hb=ef39562723e3c7ed37b967e8dcc3755beaa2b8bd;hp=55b80047eb03ab1506db0a79ad47be38ffbd5773;hpb=c602842c559bc733cc3bafe5eed3448bf75f0bc3;p=packages%2Fapache-mod_auth_kerb.git diff --git a/apache-mod_auth_kerb.spec b/apache-mod_auth_kerb.spec index 55b8004..e164bdc 100644 --- a/apache-mod_auth_kerb.spec +++ b/apache-mod_auth_kerb.spec @@ -1,23 +1,26 @@ +# +# Conditional build: +%bcond_with krb4 # build with Kerberos V4 support +# %define mod_name auth_kerb %define apxs /usr/sbin/apxs Summary: This is the Kerberos authentication module for Apache -Summary(pl): Modu³ uwierzytelnienia Kerberos dla Apache +Summary(pl.UTF-8): Moduł uwierzytelnienia Kerberos dla Apache Name: apache-mod_%{mod_name} -Version: 5.0 -%define pre rc6 -Release: 0.%{pre}.1 +Version: 5.3 +Release: 1 Epoch: 1 License: GPL Group: Networking/Daemons -Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}-%{pre}.tar.gz -# Source0-md5: 274edfb950af20ce6ef0ddcb7c20263a +Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz +# Source0-md5: a363588578050b3d320a2ceccf3ed666 Source1: %{name}.conf -Patch1: %{name}-aprfix.patch URL: http://modauthkerb.sourceforge.net/ BuildRequires: %{apxs} BuildRequires: apache-devel BuildRequires: gdbm-devel -BuildRequires: heimdal-devel +BuildRequires: krb5-devel +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -29,16 +32,19 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) This is an authentication module for Apache that allows you to authenticate HTTP clients using user entries in an Kerberos directory. -%description -l pl -To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na -uwierzytelnianie klientów HTTP z u¿yciem wpisów w katalogu Kerberosa. +%description -l pl.UTF-8 +To jest moduł uwierzytelnienia dla Apache pozwalający na +uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa. %prep -%setup -q -n mod_%{mod_name}-%{version}-%{pre} -%patch1 -p1 +%setup -q -n mod_%{mod_name}-%{version} %build -%configure +%configure \ + %{?with_krb4:--with-krb4} \ + %{!?with_krb4:--without-krb4} \ + --with-apache=%{_prefix} + %{__sed} -i -e 's/-pthread/-lpthread/' Makefile %{__make} @@ -53,15 +59,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/20_mod_%{mod_name}.c rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/httpd ]; then - /etc/rc.d/init.d/httpd restart 1>&2 -fi +%service -q httpd restart -%preun +%postun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/httpd ]; then - /etc/rc.d/init.d/httpd restart 1>&2 - fi + %service -q httpd restart fi %files