X-Git-Url: https://git.pld-linux.org/?p=packages%2Fapache-mod_python.git;a=blobdiff_plain;f=apache-mod_python.spec;h=0cc45aac2caa12d01a29ffd7c6c732a39c970cb8;hp=c70179e541b5d79f02162f7699f9c2c45b079585;hb=675d6e6cff13b8b0e85157cf53d2fb0e7a5cdbee;hpb=22317842032ab4deda5203ee8ace36c6374b2551 diff --git a/apache-mod_python.spec b/apache-mod_python.spec index c70179e..0cc45aa 100644 --- a/apache-mod_python.spec +++ b/apache-mod_python.spec @@ -1,76 +1,165 @@ +%include /usr/lib/rpm/macros.python %define mod_name python -Summary: A Python for the Apache Web server -Summary(pl): Python dla serwera WWW Apache +%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 +Summary(de): Ein eingebetteter Python-Interpreter für den Apache Web-Server +Summary(es): Intérprete Perl para el servidor Web Apache +Summary(fr): Interpréteur Python intégré pour le serveur Web Apache +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(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.2 -Release: 0.1 +Version: 2.7.8 +Release: 5 License: distributable Group: Networking/Daemons -Group(de): Netzwerkwesen/Server -Group(pl): Sieciowe/Serwery Source0: http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz -Patch0: apache-mod_python-shared.patch -Patch1: apache-mod_python-DESTDIR.patch +#Patch0: %{name}-shared.patch +Patch1: %{name}-DESTDIR.patch +Patch2: %{name}-Makefile-in.patch +Patch3: %{name}-cleanup.patch +# PLD keeps static libs in /usr/lib default python install stores them in .../config/ +Patch4: %{name}-static-lib-dir-fix.patch + URL: http://www.modpython.org/ -Requires: apache -Requires: python BuildRequires: autoconf -BuildRequires: apache +BuildRequires: automake BuildRequires: apache-devel -BuildRequires: python-devel +BuildRequires: python-devel >= 2.2 +BuildRequires: python-static >= 2.2 +BuildRequires: rpm-pythonprov +BuildRequires: %{apxs} +Prereq: %{_sbindir}/apxs +Requires: apache +%pyrequires_eq python BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define apache_moddir %(/usr/sbin/apxs -q LIBEXECDIR) -%define python_prefix %(echo `python -c "import sys; print sys.prefix"`) -%define python_version %(echo `python -c "import sys; print sys.version[:3]"`) -%define python_libdir %{python_prefix}/lib/python%{python_version} -%define python_includedir %{python_prefix}/include/python%{python_version} -%define python_sitedir %{python_libdir}/site-packages +%define apache_moddir %(%{apxs} -q LIBEXECDIR) %description -mod_python allows embedding Python within the Apache Web server for a -considerable boost in performance and added flexibility in designing -web based applications. +Mod_python is a module that embeds the Python language interpreter +within the server, allowing Apache handlers to be written in Python. + +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 +geschrieben zu werden. + +Mod_python verbindet die Vielseitigkeit von Python und die +Leistungsstärke des Apache Web-Servers, was eine enorme Steigerung der +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. + +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. -NOTE: This versions should still be considered Beta. +%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 +Python. + +Mod_python conjugue la versatilité de Python et la puissance du +serveur Web Apache de façon à augmenter considérablement la +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 +scritti in Python. + +Mod_python unisce in sé la versatilità di Python e la potenza del +server Web Apache, con un conseguente accrescimento di flessibilità e +un miglioramento notevole nelle prestazioni rispetto all'approccio +tradizionale CGI. + +%description -l ja +Mod_python ¤Ï¥µ¡¼¥Ð¡¼Æâ¤Ë Python +¸À¸ì¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òÁȤ߹þ¤ó¤À¥â¥¸¥å¡¼¥ë ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Apache +¥Ï¥ó¥É¥é¤ò Python ¤Çµ­½Ò¤Ç¤­¤Þ¤¹¡£ Mod_python ¤Ï¡¢Python ¤ÎÈÆÍÑÀ­¤È +Apache Web ¥µ¡¼¥Ð¡¼¤Î¥Ñ¥ï¡¼¤òÁȤ߹ç¤ï¤»¤ë ¤³¤È¤Ë¤è¤ê¡¢½¾Íè¤Î CGI +¥¢¥×¥í¡¼¥Á¤«¤é½ÀÆðÀ­¤È¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤òÂçÉý¤Ë¸þ¾å¤µ¤»¤Þ¤¹¡£ %description -l pl -mod_python pozwala na zagnie¿d¿enie pythona w serwerze WWW Apache w -celu zauwa¿alnej poprawy wydajno¶ci i zwiêkszonej elastyczno¶ci przy -tworzeniu aplikacji opartych na WWW. +mod_python jest modu³em osadzaj±cym interpreter jêzyka Python w +serwerze WWW Apache, umo¿liwiaj±c mu obs³ugê kodu napisanego w +Pythonie. + +mod_python ³±czy wszechstronno¶æ Pythona i moc Apache'a jako serwera +WWW, co daje zwiêkszon± elastyczno¶æ i zauwa¿aln± poprawê wydajno¶ci w +stosunku do tradycyjnego rozwi±zania opartego na CGI. -Uwaga: ta wersja nadal powinna byæ uwa¿ana za Beta. +%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. -%prep +Mod_python sammanför mångsidigheten hos Python och kraften hos +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 +%patch4 -p1 %build -autoconf -%configure --with-apxs=/usr/sbin/apxs +%{__aclocal} +%{__autoconf} + +# new apache needs it +CFLAGS="-DEAPI %{rpmcflags}" +%configure \ + --with-apxs=%{apxs} + %{__make} dso %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{apache_moddir},%{python_sitedir}/mod_%{mod_name}} +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 @@ -78,7 +167,7 @@ fi %files %defattr(644,root,root,755) -%doc doc/* -%doc {README,COPYRIGHT,NEWS,CREDITS}.gz +%doc doc-html/* +%doc README COPYRIGHT NEWS CREDITS %attr(755,root,root) %{apache_moddir}/* -%{python_sitedir}/mod_%{mod_name} +%{py_sitedir}/mod_%{mod_name}