]> git.pld-linux.org Git - packages/apache1-mod_auth_pgsql.git/blobdiff - apache1-mod_auth_pgsql.spec
- release 4: mod_auth_pgsql added to Obsoletes.
[packages/apache1-mod_auth_pgsql.git] / apache1-mod_auth_pgsql.spec
index 2764e13ffffdc20a33cab5aa5de887436d49cc83..9e686bd3e7a39d9bf796d7e15b5048376ab25a77 100644 (file)
@@ -1,4 +1,5 @@
 %define                mod_name        auth_pgsql
+%define        apxs            /usr/sbin/apxs
 Summary:       This is the PostgreSQL authentication module for Apache
 Summary(cs):   Základní autentizace pro WWW server Apache pomocí PostgreSQL
 Summary(da):   Autenticering for webtjeneren Apache fra en PostgreSQL-database
@@ -13,33 +14,20 @@ Summary(pt_BR):     Autentica
 Summary(sv):   Grundläggande autenticering till webbservern Apache med en PostgreSQL-databas
 Name:          apache-mod_%{mod_name}
 Version:       0.9.12
-Release:       2
+Release:       4
 License:       GPL
 Group:         Networking/Daemons
-Group(cs):     Sí»ové/Démoni
-Group(da):     Netværks/Dæmoner
-Group(de):     Netzwerkwesen/Server
-Group(es):     Red/Servidores
-Group(fr):     Réseau/Serveurs
-Group(is):     Net/Púkar
-Group(it):     Rete/Demoni
-Group(no):     Nettverks/Daemoner
-Group(pl):     Sieciowe/Serwery
-Group(pt):     Rede/Servidores
-Group(ru):     óÅÔØ/äÅÍÏÎÙ
-Group(sl):     Omre¾ni/Stre¾niki
-Group(sv):     Nätverk/Demoner
-Group(uk):     íÅÒÅÖÁ/äÅÍÏÎÉ
 Source0:       http://www.giuseppetanzilli.it/mod_%{mod_name}/dist/mod_%{mod_name}-%{version}.tar.gz
 BuildRequires: postgresql-devel
-BuildRequires: /usr/sbin/apxs
+BuildRequires: %{apxs}
 BuildRequires: apache(EAPI)-devel
-Prereq:                /usr/sbin/apxs
+Prereq:                %{_sbindir}/apxs
 Requires:      apache(EAPI)
 URL:           http://www.giuseppetanzilli.it/mod_auth_pgsql/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     mod_auth_pgsql
 
-%define                _pkglibdir      %(/usr/sbin/apxs -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
 
 %description
 This is an authentication module for Apache that allows you to
@@ -92,7 +80,7 @@ PostgreSQL-databas.
 %setup -q -n "mod_%{mod_name}-%{version}"
 
 %build
-/usr/sbin/apxs \
+%{apxs} \
        -I %{_includedir}/postgresql \
        -l pq \
        -c mod_%{mod_name}.c \
@@ -108,14 +96,14 @@ install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/sbin/apxs -e -a -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+%{_sbindir}/apxs -e -a -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       /usr/sbin/apxs -e -A -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       %{_sbindir}/apxs -e -A -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
This page took 0.075691 seconds and 4 git commands to generate.