]> git.pld-linux.org Git - packages/apache-mod_transform.git/blame - apache-mod_transform.spec
- BR s@%{apxs}@apache-apxs@g
[packages/apache-mod_transform.git] / apache-mod_transform.spec
CommitLineData
b40a1925 1%define mod_name transform
2%define apxs /usr/sbin/apxs
3Summary: Module to serve XML based content
3c4c5417 4Summary(pl.UTF-8): Moduł do udostępniania dokumentów XML
b40a1925 5Name: apache-mod_%{mod_name}
6Version: 0.4.0
978c4c48 7Release: 4
6b3c9aed 8License: GPL v2+
b40a1925 9Group: Networking/Daemons
10Source0: http://www.outoforder.cc/downloads/mod_transform/mod_%{mod_name}-%{version}.tar.gz
11# Source0-md5: a41ea16eeefb9b798186153b154a1219
631f8ef9 12Source1: %{name}.conf
d9e92171 13URL: http://www.outoforder.cc/projects/apache/mod_transform/
d3e24321 14BuildRequires: apache-apxs >= 2.0
6eafb6ed 15BuildRequires: apr-devel >= 1:1.0.0
d9e92171
JB
16BuildRequires: autoconf
17BuildRequires: automake
18BuildRequires: libtool
b40a1925 19BuildRequires: libxml2-devel
b714e181 20BuildRequires: libxslt-devel
e62a7384 21BuildRequires: rpmbuild(macros) >= 1.268
978c4c48
ER
22BuildRequires: sed >= 4.0
23Requires: apache(modules-api) = %apache_modules_api
b40a1925 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
978c4c48
ER
26%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
27%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
b40a1925 28
29%description
b714e181
JB
30mod_transform is a filter module that allows Apache 2.0 to do dynamic
31XSL Transformations on either static XML documents, or XML documents
32generated from another Apache module or CGI program.
33
aef41a29
JR
34%description -l pl.UTF-8
35mod_transform to moduł filtra umożliwiający serwerowi Apache 2.0
36wykonywać dynamiczne przekształcenia XML na statycznych dokumentach
37XML lub dokumentach XML generowanych przez inny moduł Apache'a lub
b714e181 38program CGI.
b40a1925 39
40%prep
41%setup -q -n mod_%{mod_name}-%{version}
978c4c48
ER
42sed -i -e "s:apr-config:apr-1-config:g" aclocal.m4 m4/apache.m4
43sed -i -e "s:apu-config:apu-1-config:g" aclocal.m4 m4/apache.m4
b40a1925 44
45%build
896e6596 46%{__libtoolize}
47%{__aclocal} -I m4
48%{__autoconf}
49%{__autoheader}
50%{__automake}
b40a1925 51%configure
52%{__make}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
57
b5552f5b 58install src/.libs/libmod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
b40a1925 59install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/61_mod_transform.conf
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post
e62a7384 65%service -q httpd restart
b40a1925 66
1de56f06 67%postun
b40a1925 68if [ "$1" = "0" ]; then
e62a7384 69 %service -q httpd restart
b40a1925 70fi
71
72%files
73%defattr(644,root,root,755)
b5552f5b 74%doc TODO
82c81e37
ER
75%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
76%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.234205 seconds and 4 git commands to generate.