%define mod_name xslt
+%define apxs /usr/sbin/apxs
Summary: Module to serve XML based content
Summary(pl): Modu³ do udostêpniania dokumentów XML
Name: apache-mod_%{mod_name}
Version: 1.1
-Release: 2
+Release: 3
License: GPL
URL: http://modxslt.userworld.com/
Source0: http://prdownloads.sourceforge.net/mod%{mod_name}/mod_%{mod_name}-%{version}.tar.gz
Source1: mod_%{mod_name}.conf
Patch0: mod_%{mod_name}-includes.patch
+Patch1: mod_%{mod_name}-regex.patch
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
Requires: expat
Requires: sablotron
+BuildRequires: %{apxs}
BuildRequires: apache-devel
BuildRequires: sablotron-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _pkglibdir %(%{_sbindir}/apxs -q LIBEXECDIR)
+%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
%define _sysconfdir /etc/httpd
%description
plikiem XML bêdzie sourcefile.xml. Modu³ otworzy plik sourcefile.xml i
okre¶li DOCTYPE, na podstawie którego otworzy odpowiedni plik XSL.
Je¿eli DOCTYPE jest "tutorial", plikiem XSL bêdzie tutorial_html.xsl.
-Pole content-type zwrócone przegl±darce bêdzie zawiera³o text/html.
-T³umaczenie jest przezroczyste dla u¿ytkownika.
+Nastêpnie modu³ dokona przetworzania pliku XML za pomoc± arkusza XSLT
+i zwwórci przegl±darce powsta³y w ten sposób text/html.
+Ca³y proces odbywa siê w sposób niewidoczny dla u¿ytkownika.
%prep
%setup -q -n mod%{mod_name}
%patch0 -p1
+%patch1 -p1
%build
-CFLAGS="%{rpmcflags}"; export CFLAGS
-%{__make} APXS=%{_sbindir}/apxs
+CFLAGS="%{rpmcflags} -DEAPI"; export CFLAGS
+%{__make} APXS=%{apxs}
%install
rm -rf $RPM_BUILD_ROOT
%preun
if [ "$1" = "0" ]; then
- grep -v -q "^Include.*mod_%{mod_name}.conf" /etc/httpd/httpd.conf > \
+ grep -v "^Include.*mod_%{mod_name}.conf" /etc/httpd/httpd.conf > \
/etc/httpd/httpd.conf.tmp
mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
if [ -f /var/lock/subsys/httpd ]; then