1 |
%define name smeserver-mod_python |
2 |
%define version 0.1 |
3 |
%define release 0 |
4 |
|
5 |
Summary: SME Server mod_python implementation |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
License: GPL |
10 |
Group: Applications/Internet |
11 |
Source: %{name}-%{version}.tgz |
12 |
BuildArch: noarch |
13 |
BuildRequires: e-smith-devtools |
14 |
Requires: smeserver-release >= 7 |
15 |
Requires: httpd >= 2 |
16 |
Requires: mod_python |
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
|
19 |
%description |
20 |
Implementation of mod_python for SME Server 7. |
21 |
|
22 |
%changelog |
23 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
24 |
- Clean up spec so package can be built by koji/plague |
25 |
|
26 |
* Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com> |
27 |
- 0.1-0 |
28 |
- Original version adopted from smeserver-mod_dav |
29 |
|
30 |
%prep |
31 |
|
32 |
%setup |
33 |
|
34 |
%build |
35 |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/modPython |
36 |
mkdir -p $DEFAULTS |
37 |
echo "service" > $DEFAULTS/type |
38 |
echo "enabled" > $DEFAULTS/status |
39 |
|
40 |
%install |
41 |
rm -rf $RPM_BUILD_ROOT |
42 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
43 |
rm -f %{name}-%{version}-filelist |
44 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
45 |
|
46 |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%post |
50 |
/etc/e-smith/events/actions/initialize-default-databases |
51 |
/etc/e-smith/events/actions/navigation-conf |
52 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
53 |
/etc/rc7.d/S86httpd-e-smith sigusr1 |
54 |
|
55 |
%postun |
56 |
/sbin/e-smith/db configuration delete modPython |
57 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
58 |
/etc/e-smith/events/actions/navigation-conf |
59 |
/etc/rc7.d/S86httpd-e-smith sigusr1 |
60 |
|
61 |
%files -f %{name}-%{version}-filelist |
62 |
%defattr(-,root,root) |