1 |
slords |
1.1 |
Summary: SME server mod_deflate activation |
2 |
|
|
%define name smeserver-mod_deflate |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.0 |
5 |
|
|
%define release 2 |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release} |
8 |
|
|
Copyright: Freely distributable |
9 |
|
|
Group: Apache |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
12 |
|
|
Packager: Michel Van hees <michel@vanhees.cc> |
13 |
|
|
BuildRoot: /var/tmp/e-smith-buildroot |
14 |
|
|
BuildRequires: e-smith-devtools |
15 |
|
|
BuildArchitectures: noarch |
16 |
|
|
Requires: smeserver-release >= 7 |
17 |
|
|
AutoReqProv: no |
18 |
|
|
|
19 |
|
|
%changelog |
20 |
|
|
* Mon Jul 16 2007 Michel Van hees <michel@vanhees.cc> |
21 |
|
|
- Thanks to Sylvain Gomez that correct the uninstall script |
22 |
|
|
|
23 |
|
|
* Wed Jun 14 2006 Michel Van hees <michel@vanhees.cc> |
24 |
|
|
- start developpement |
25 |
|
|
|
26 |
|
|
%description |
27 |
|
|
Activate mod_deflate on smeserver |
28 |
|
|
|
29 |
|
|
%prep |
30 |
|
|
%setup |
31 |
|
|
#%patch0 -p1 |
32 |
|
|
#%patch1 -p1 |
33 |
|
|
|
34 |
|
|
%build |
35 |
|
|
perl createlinks |
36 |
|
|
|
37 |
|
|
%install |
38 |
|
|
rm -rf $RPM_BUILD_ROOT |
39 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
40 |
|
|
rm -f %{name}-%{version}-filelist |
41 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
42 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
43 |
|
|
|
44 |
|
|
%clean |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
47 |
|
|
%pre |
48 |
|
|
%preun |
49 |
|
|
%post |
50 |
|
|
/sbin/e-smith/db configuration set modDeflate service level 9 status enabled |
51 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
52 |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
53 |
|
|
|
54 |
|
|
%postun |
55 |
|
|
/sbin/e-smith/db configuration delete modDeflate |
56 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
57 |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
58 |
|
|
|
59 |
|
|
%files -f %{name}-%{version}-filelist |
60 |
|
|
%defattr(-,root,root) |