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