Logoj0ke.net Open Build Service > Projects > Apache:Modules > apache2-mod_pagespeed > Changes
Sign Up | Log In

Changes of Revision 4

[-] Changed apache2-mod_pagespeed.spec
x
 
1
@@ -2,14 +2,14 @@
2
 %define    pkgname     apache2-mod_pagespeed
3
 %define apa_moddir %{_libdir}/apache2
4
 %define apa_confdir    %{_sysconfdir}/apache2/conf.d
5
-Requires:  apache2 >= 2.2
6
+Requires:  apache2 >= 2.2  cron
7
 BuildRequires: apache2 >= 2.2
8
 %endif
9
 %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
10
 %define    pkgname     mod_pagespeed
11
 %define apa_moddir %{_libdir}/httpd/modules
12
 %define    apa_confdir %{_sysconfdir}/httpd/conf.d
13
-Requires:  httpd >= 2.2
14
+Requires:  httpd >= 2.2    cron
15
 BuildRequires: httpd >= 2.2
16
 %endif
17
 
18
@@ -20,6 +20,8 @@
19
 Summary:   Apache2 mod_pagespeed
20
 License:   Apache License 2.0
21
 Source0:   mod_pagespeed.tar.bz2
22
+Source1:   pagespeed.conf.rh
23
+Source2:   mod-pagespeed.crondaily
24
 Group:     Productivity/Networking/Web/Servers
25
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
26
 BuildRequires: gcc-c++ make subversion python
27
@@ -43,8 +45,17 @@
28
 %__make BUILDTYPE=Release
29
 
30
 %install
31
+%__install -d %{buildroot}/var/mod_pagespeed/cache
32
+%__install -d %{buildroot}/var/mod_pagespeed/files
33
+%__install -D -m0755 %{S:2} %{buildroot}%{_sysconfdir}/cron.daily/mod-pagespeed
34
 %__install -D -m0755 out/Release/libmod_pagespeed.so   %{buildroot}%{apa_moddir}/libmod_pagespeed.so
35
+%if 0%{?suse_version}
36
 %__install -D -m0644 out/Release/install/common/pagespeed.conf.template    %{buildroot}%{apa_confdir}/pagespeed.conf
37
+%endif
38
+%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
39
+mkdir -p %{buildroot}%{apa_confdir}
40
+cat %{S:1} | sed -e s@"%LIBDIR%"@"%{_libdir}"@g > %{buildroot}%{apa_confdir}/pagespeed.conf
41
+%endif
42
 
43
 %clean
44
 rm -rf %{buildroot}
45
@@ -53,6 +64,10 @@
46
 %defattr(-,root,root)
47
 %{apa_moddir}/libmod_pagespeed.so
48
 %config(noreplace) %{apa_confdir}/pagespeed.conf
49
+%config %{_sysconfdir}/cron.daily/mod-pagespeed
50
+%defattr(0777,root,root)
51
+%dir /var/mod_pagespeed/cache
52
+%dir /var/mod_pagespeed/files
53
 
54
 %changelog
55
 * Thu Nov 04 2010 Carsten Schoene <cs@linux-administrator.com> - 0.0.136
56
[+] Added mod-pagespeed.crondaily ^
[+] Added pagespeed.conf.rh ^