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