]> git.pld-linux.org Git - packages/apache-mod_python.git/blobdiff - apache-mod_python.spec
- Fixes configure.in (different in PLD than oryginal python) static lib layout.
[packages/apache-mod_python.git] / apache-mod_python.spec
index aa9739029efc98ccbd1575211c40a864019ce038..28cdbaf99e79f9a91bddc55ef3ad5f5d84218d46 100644 (file)
@@ -1,5 +1,6 @@
 %include       /usr/lib/rpm/macros.python
 %define                mod_name        python
+%define        apxs            /usr/sbin/apxs
 Summary:       An embedded Python interpreter for the Apache Web server
 Summary(cs):   Vestavìný interpret Pythonu pro WWW server Apache
 Summary(da):   En indbygget Python-fortolker for webtjeneren Apache
@@ -18,40 +19,30 @@ Summary(sk):        Interpreter jazyka Perl pre webov
 Summary(sl):   Vkljuèeni pythonski tolmaè za spletni stre¾nik Apache
 Summary(sv):   En inbyggd Python-interpretator för webbservern Apache
 Name:          apache-mod_%{mod_name}
-Version:       2.7.6
+Version:       2.7.8
 Release:       4
 License:       distributable
 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.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
-Patch0:                apache-mod_python-shared.patch
-Patch1:                apache-mod_python-DESTDIR.patch
-Patch2:                apache-mod_python-Makefile-in.patch
+#Patch0:               %{name}-shared.patch
+Patch1:                %{name}-DESTDIR.patch
+Patch2:                %{name}-Makefile-in.patch
+Patch3:                %{name}-cleanup.patch
 URL:           http://www.modpython.org/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: apache
 BuildRequires: apache-devel
 BuildRequires: python-devel >= 2.2
+# Necessary /usr/lib/python2.2/config/libpython2.2.a -> /usr/lib/libpython2.2.a added in 2.2.1-20
+BuildRequires:  python-static >= 2.2.1-20
 BuildRequires: rpm-pythonprov
+BuildRequires: %{apxs}
+Prereq:                %{_sbindir}/apxs
 Requires:      apache
-%requires_eq   python
+%pyrequires_eq python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                apache_moddir   %(/usr/sbin/apxs -q LIBEXECDIR)
+%define                apache_moddir   %(%{apxs} -q LIBEXECDIR)
 
 %description
 Mod_python is a module that embeds the Python language interpreter
@@ -61,13 +52,11 @@ Mod_python brings together the versatility of Python and the power of
 the Apache Web server for a considerable boost in flexibility and
 performance over the traditional CGI approach.
 
-
 %description -l cs
 Balíèek mod_python obsahuje modul, který umo¾ní serveru Apache pøímo
 interpretovat CGI skripty napsané v jazyce Python. To vede k výraznému
 zvý¹ení rychlosti jejich provedení.
 
-
 %description -l de
 Mod_python ist ein Modul, das den Python-Sprachinterpreter innerhalb
 des Servers einbettet und es den Apache-Handlern ermöglicht, in Python
@@ -78,7 +67,6 @@ Leistungsst
 Flexibilität und Leistung gegenüber dem traditionellen CGI-Ansatz
 bedeutet.
 
-
 %description -l es
 Mod_python es un módulo que activa el intérprete de Python en el
 servidor, permitiendo que se escriban gestores para Apache en Python.
@@ -87,7 +75,6 @@ Mod_python proporciona la versatilidad y el poder del servidor web
 Apache para acelerar considerablemente la flexibilidad y prestaciones
 en comparación a una aproximación tradicional con CGI.
 
-
 %description -l fr
 Mod_python est un module qui intègre l'interpréteur de langage Python
 dans le serveur, permettant aux gestionnaires Apache d'être écrits en
@@ -98,7 +85,6 @@ serveur Web Apache de fa
 flexibilité et la performance par rapport à une approche CGI
 traditionnelle.
 
-
 %description -l it
 Mod_python è un modulo che integra nel server l'interprete del
 linguaggio Python, in modo che i programmi di gestione possano essere
@@ -109,7 +95,6 @@ server Web Apache, con un conseguente accrescimento di flessibilit
 un miglioramento notevole nelle prestazioni rispetto all'approccio
 tradizionale CGI.
 
-
 %description -l ja
 Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python
 ¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache
@@ -117,7 +102,6 @@ Mod_python 
 Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI
 ¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ­¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£
 
-
 %description -l pl
 mod_python jest modu³em osadzaj±cym interpreter jêzyka Python w
 serwerze WWW Apache, umo¿liwiaj±c mu obs³ugê kodu napisanego w
@@ -127,7 +111,6 @@ mod_python 
 WWW, co daje zwiêkszon± elastyczno¶æ i zauwa¿aln± poprawê wydajno¶ci w
 stosunku do tradycyjnego rozwi±zania opartego na CGI.
 
-
 %description -l sv
 Mod_python är en modul som bygger in en interpretator för språket
 Python i servern, och låter Apach-hanterare skrivas i Python.
@@ -136,21 +119,23 @@ Mod_python sammanf
 webbservern Apache till en avsevärd ökning av flexibiliteten och
 prestandan jämfört med den traditionella CGI-metoden.
 
-
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
-%patch0 -p1
+# Patch reverted. Dynamic build makes apache segfault on all my i686 machines
+# No working reports collected on IRC/mailing lists.
+#%patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
-aclocal
-autoconf
+%{__aclocal}
+%{__autoconf}
 
 # new apache needs it
 CFLAGS="-DEAPI %{rpmcflags}"
 %configure \
-       --with-apxs=/usr/sbin/apxs
+       --with-apxs=%{apxs}
 
 %{__make} dso
 
@@ -160,20 +145,18 @@ install -d $RPM_BUILD_ROOT{%{apache_moddir},%{py_sitedir}/mod_%{mod_name}}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf README COPYRIGHT NEWS CREDITS
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/sbin/apxs -e -a -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
+%{apxs} -e -a -n %{mod_name} %{apache_moddir}/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 %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
+       %{apxs} -e -A -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
@@ -182,6 +165,6 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc doc-html/*
-%doc {README,COPYRIGHT,NEWS,CREDITS}.gz
+%doc README COPYRIGHT NEWS CREDITS
 %attr(755,root,root) %{apache_moddir}/*
 %{py_sitedir}/mod_%{mod_name}
This page took 0.058429 seconds and 4 git commands to generate.