2 # - not compatible with apache2 (is it apache1 module?)
3 %define mod_name midgard
4 %define arname mod_midgard
5 %define apxs /usr/sbin/apxs
6 Summary: Midgard Apache module
7 Summary(pl): Modu³ Midgard do Apache
8 Name: apache-mod_midgard
11 License: distributable
12 Vendor: Midgard Project <http://www.midgard-project.org>
13 Group: Networking/Daemons
14 Source0: %{arname}-%{version}.tar.bz2
15 # Source0-md5: 9b00986652ed2b495aebc23ec2337bb1
16 #Source0: http://www.midgard-project.org/attachment/434f392e6f87e1e76202f00695dd251f/599f017caa73216fbf3d676ff086d37f/%{arname}-1.4.1-5.tar.bz2
17 Patch0: %{arname}-conf.patch
18 URL: http://www.midgard-project.org/
19 BuildRequires: %{apxs}
20 BuildRequires: apache-devel >= 2.0
21 BuildRequires: expat-devel
22 BuildRequires: midgard-lib-devel >= 1.4.1-5
23 BuildRequires: mysql-devel
24 Requires: apache(modules-api) = %apache_modules_api
25 %requires_eq_to midgard-lib midgard-lib-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
30 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
33 %setup -q -n %{arname}-%{version}
37 Midgard is a freely-available Web application development and
38 publishing platform based on the popular PHP scripting language. It is
39 an Open Source development project, giving you the freedom to create
40 your solutions in an open environment. Midgard is the tool for
41 creating, modifying and maintaining dynamic database-enabled web
45 Midgard jest wolnodostêpn± platform± rozwoju i publikowania aplikacji
46 opart± na popularnym jêzyku skryptowym, PHP. Jest to projekt Open
47 Source, umo¿liwiaj±cy u¿ytkownikowi tworzenie rozwi±zañ w otwartym
48 ¶rodowisku. Midgard jest narzêdziem do tworzenia, modyfikacji i
49 utrzymywania dynamicznych, wykorzystuj±cych bazy danych serwisów WWW.
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
63 install midgard-root.php $RPM_BUILD_ROOT%{_pkglibdir}
64 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
65 install midgard.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
68 rm -rf $RPM_BUILD_ROOT
71 if [ -f /var/lock/subsys/httpd ]; then
72 /etc/rc.d/init.d/httpd restart 1>&2
76 if [ "$1" = "0" ]; then
77 if [ -f /var/lock/subsys/httpd ]; then
78 /etc/rc.d/init.d/httpd restart 1>&2
83 %defattr(644,root,root,755)
84 %doc AUTHORS COPYING ChangeLog INSTALL INSTALL.ru NEWS README README.ru
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
86 %attr(755,root,root) %{_pkglibdir}/*.so
88 %config %{_pkglibdir}/midgard-root.php