]> git.pld-linux.org Git - packages/apache-mod_transform.git/commitdiff
- added
authoraredridel <aredridel@pld-linux.org>
Sun, 30 May 2004 17:04:02 +0000 (17:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_transform.spec -> 1.1

apache-mod_transform.spec [new file with mode: 0644]

diff --git a/apache-mod_transform.spec b/apache-mod_transform.spec
new file mode 100644 (file)
index 0000000..d09a4fb
--- /dev/null
@@ -0,0 +1,63 @@
+%define                mod_name        transform
+%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:       0.4.0
+Release:       1
+License:       GPL
+Group:         Networking/Daemons
+Source0:       http://www.outoforder.cc/downloads/mod_transform/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: a41ea16eeefb9b798186153b154a1219
+Source1:       mod_%{mod_name}.conf
+URL:   http://www.outoforder.cc/projects/apache/mod_transform/
+BuildRequires: %{apxs}
+BuildRequires: libxslt-devel
+BuildRequires: libxml2-devel
+Requires(post,preun):  %{apxs}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define                _sysconfdir     /etc/httpd
+
+%description
+mod_transform is a filter module that allows Apache 2.0 to do dynamic XSL
+Transformations on either static XML documents, or XML documents generated
+from another Apache module or CGI program.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+
+libtool --mode=install install src/libmod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}
+mv $RPM_BUILD_ROOT%{_pkglibdir}/libmod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+#%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/61_mod_transform.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/*
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*.conf
This page took 0.139578 seconds and 4 git commands to generate.