X-Git-Url: https://git.pld-linux.org/?p=packages%2Fapache-mod_python.git;a=blobdiff_plain;f=apache-mod_python.spec;h=aa634897f55655e571af67531bf02827681f049b;hp=61f93d2598363bf7c952e6a2a65a3d1b3d277be5;hb=964e9a8397c507666e6aca9d6fb7ecdf8b08a4e9;hpb=e6efa46f26d9eb352814be932a6caf284aae0707 diff --git a/apache-mod_python.spec b/apache-mod_python.spec index 61f93d2..aa63489 100644 --- a/apache-mod_python.spec +++ b/apache-mod_python.spec @@ -1,56 +1,56 @@ +%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 Name: apache-mod_%{mod_name} Version: 2.7.6 -Release: 3 +Release: 4 License: distributable Group: Networking/Daemons Group(de): Netzwerkwesen/Server +Group(es): Red/Servidores +Group(fr): Réseau/Serveurs Group(pl): Sieciowe/Serwery +Group(pt): Rede/Server Source0: http://www.modpython.org/dist/mod_%{mod_name}-%{version}.tgz Patch0: apache-mod_python-shared.patch Patch1: apache-mod_python-DESTDIR.patch URL: http://www.modpython.org/ -Requires: apache -%requires_eq python BuildRequires: autoconf +BuildRequires: automake BuildRequires: apache BuildRequires: apache-devel -BuildRequires: python-devel +BuildRequires: python-devel >= 2.2 BuildRequires: rpm-pythonprov +Requires: apache +%requires_eq python BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define apache_moddir %(/usr/sbin/apxs -q LIBEXECDIR) - -%include /usr/lib/rpm/macros.python +%define apache_moddir %(/usr/sbin/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. -NOTE: This versions should still be considered Beta. - %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. -Uwaga: ta wersja nadal powinna byæ uwa¿ana za Beta. - %prep %setup -q -n mod_%{mod_name}-%{version} %patch0 -p1 %patch1 -p1 %build +aclocal autoconf # new apache needs it -CFLAGS=-DEAPI +CFLAGS="-DEAPI %{rpmcflags}" %configure \ - --with-apxs=/usr/sbin/apxs + --with-apxs=/usr/sbin/apxs %{__make} dso