X-Git-Url: https://git.pld-linux.org/?p=packages%2Fapache-mod_python.git;a=blobdiff_plain;f=apache-mod_python.spec;h=e939fdcc9dec209b793ab0b559c5a72f2b5d15ba;hp=c990550adbe677ccf37e653f250ac7e979d96265;hb=cee733262a76bd9fd69856c8b62fb370be1c2c86;hpb=2bd51d05ceb5c15445f68d82306f650bfa613b37 diff --git a/apache-mod_python.spec b/apache-mod_python.spec index c990550..e939fdc 100644 --- a/apache-mod_python.spec +++ b/apache-mod_python.spec @@ -1,4 +1,3 @@ -%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 @@ -11,49 +10,40 @@ Summary(id): Interpreter Perl untuk web server Apache Summary(is): Perl túlkur fyrir Apache vefþjóninn Summary(it): Interprete Python integrato per il server Web Apache Summary(ja): Apache Web ¥µ¡¼¥Ð¡¼ÍѤÎÁȹþ¤ß Perl ¥¤¥ó¥¿¡¼¥×¥ê¥¿ -Summary(no): En Python-fortolker for webtjeneren Apache -Summary(pl): Wbudowany interpreter Pythona dla serwera WWW Apache +Summary(nb): En Python-fortolker for webtjeneren Apache +Summary(pl): Wbudowany interpreter jêzyka Python dla serwera WWW Apache Summary(pt): Um interpretador de Perl embebido para o servidor Web Apache Summary(ru): ÷ÓÔÒÏÅÎÎÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ Perl ÄÌÑ WWW-ÓÅÒ×ÅÒÁ Apache Summary(sk): Interpreter jazyka Perl pre webový server Apache 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 -Release: 4 -License: distributable +Version: 3.1.3 +Release: 3 +License: Apache Group License 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 +Source0: http://www.apache.org/dist/httpd/modpython/mod_%{mod_name}-%{version}.tgz +# Source0-md5: 2e1983e35edd428f308b0dfeb1c23bfe +Source1: %{name}.conf +Patch0: %{name}-lib64.patch URL: http://www.modpython.org/ +BuildRequires: %{apxs} +BuildRequires: apache-devel >= 2.0.44 +BuildRequires: apr-devel >= 1:0.9.4-1 BuildRequires: autoconf BuildRequires: automake -BuildRequires: apache-devel +BuildRequires: flex >= 2.5.31 BuildRequires: python-devel >= 2.2 BuildRequires: rpm-pythonprov -BuildRequires: %{apxs} -Prereq: %{_sbindir}/apxs -Requires: apache -%requires_eq python +Requires(post,preun): %{apxs} +Requires: apache >= 2.0.44 +# apache.py uses pdb module +Requires: python-devel-tools +%pyrequires_eq python BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define apache_moddir %(%{apxs} -q LIBEXECDIR) +%define _sysconfdir %(%{apxs} -q SYSCONFDIR) +%define _pkglibdir %(%{apxs} -q LIBEXECDIR) %description Mod_python is a module that embeds the Python language interpreter @@ -63,13 +53,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 @@ -80,7 +68,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. @@ -89,7 +76,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 @@ -100,7 +86,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 @@ -111,7 +96,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 @@ -119,7 +103,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 @@ -129,7 +112,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. @@ -138,16 +120,15 @@ 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 -%patch1 -p1 -%patch2 -p1 +%if "%{_libdir}" == "%{_prefix}/lib64" +%patch0 +%endif %build -aclocal -autoconf +%{__aclocal} +%{__autoconf} # new apache needs it CFLAGS="-DEAPI %{rpmcflags}" @@ -158,24 +139,24 @@ CFLAGS="-DEAPI %{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{apache_moddir},%{py_sitedir}/mod_%{mod_name}} +install -d $RPM_BUILD_ROOT%{_pkglibdir} \ + $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf README COPYRIGHT NEWS CREDITS +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/60_mod_python.conf %clean rm -rf $RPM_BUILD_ROOT %post -%{_sbindir}/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 - %{_sbindir}/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 @@ -183,7 +164,9 @@ fi %files %defattr(644,root,root,755) -%doc doc-html/* -%doc {README,COPYRIGHT,NEWS,CREDITS}.gz -%attr(755,root,root) %{apache_moddir}/* -%{py_sitedir}/mod_%{mod_name} +%doc doc-html/* README COPYRIGHT NEWS CREDITS +%{_sysconfdir}/httpd.conf/60_mod_python.conf +%attr(755,root,root) %{_pkglibdir}/*.so +%dir %{py_sitedir}/mod_%{mod_name} +%attr(755,root,root) %{py_sitedir}/mod_%{mod_name}/*.so +%{py_sitedir}/mod_%{mod_name}/*.py[co]