/[smecontribs]/rpms/smeserver-moodle/contribs7/smeserver-moodle.spec
ViewVC logotype

Annotation of /rpms/smeserver-moodle/contribs7/smeserver-moodle.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.10 - (hide annotations) (download)
Thu Oct 9 23:27:28 2008 UTC (16 years, 1 month ago) by dungog
Branch: MAIN
Changes since 1.9: +7 -2 lines
* Fri Oct 10 2008 Stephen Noble <support@dungog.net> 1.0-10
- /tmp to open_basedir [SME 4610]

1 dungog 1.10 # $Id: smeserver-moodle.spec,v 1.9 2008/09/17 07:44:42 dungog Exp $
2 slords 1.3 # Authority: dungog
3     # Name: Stephen Noble
4    
5 slords 1.1 %define name smeserver-moodle
6     %define version 1.0
7 dungog 1.10 %define release 10
8 slords 1.1 Summary: smserver rpm to setup moodle, a course management system
9     Name: %{name}
10     Version: %{version}
11     Release: %{release}%{?dist}
12     License: GNU GPL version 2
13     URL: http://www.dungog.net/sme
14     Group: SMEserver/addon
15     Source: %{name}-%{version}.tar.gz
16     Patch0: smeserver-moodle-1.0-null.patch
17     Patch1: smeserver-moodle-1.0-20db.patch2
18 dungog 1.4 Patch2: smeserver-moodle-1.0-clamscan.patch
19 dungog 1.5 Patch3: smeserver-moodle-1.0-191.patch
20 dungog 1.6 Patch4: smeserver-moodle-1.0-191fix.patch
21 dungog 1.8 Patch5: smeserver-moodle-1.0-removeConfig.patch
22 dungog 1.9 Patch6: smeserver-moodle-1.0-removedomainroot.patch
23 dungog 1.10 Patch7: smeserver-moodle-1.0-httptmp.patch
24 slords 1.1 BuildArchitectures: noarch
25     BuildRequires: e-smith-devtools >= 1.13.1-03
26     BuildRoot: /var/tmp/%{name}-%{version}
27     Requires: e-smith-release >= 7.0
28 dungog 1.8 Requires: moodle >= 1.8
29 slords 1.1 Requires: gd
30     AutoReqProv: no
31    
32     %description
33     smserver rpm to setup moodle, a course management system
34    
35     %changelog
36 dungog 1.10 * Fri Oct 10 2008 Stephen Noble <support@dungog.net> 1.0-10
37     - /tmp to open_basedir [SME 4610]
38    
39 dungog 1.9 * Tue Sep 17 2008 Stephen Noble <support@dungog.net> 1.0-9
40     - remove httpd.conf/80OptDomainMoodle template [SME 4055]
41    
42 dungog 1.8 * Tue Sep 16 2008 Stephen Noble <support@dungog.net> 1.0-8
43     - remove config.php template [SME 4556]
44    
45 dungog 1.6 * Mon Jun 2 2008 Stephen Noble <support@dungog.net> 1.0-7
46     - fix syntax error
47 snetram 1.7
48 dungog 1.5 * Mon Jun 2 2008 Stephen Noble <support@dungog.net> 1.0-6
49     - update config.php file to 1.9.1
50    
51 dungog 1.4 * Mon Jun 2 2008 Stephen Noble <support@dungog.net> 1.0-5
52     - allow clamscan [SME 4369]
53    
54 slords 1.1 * Sun Sep 2 2007 Stephen Noble <support@dungog.net> 1.0-4
55     - 20db patch fixed
56    
57     * Sun Sep 2 2007 Stephen Noble <support@dungog.net> 1.0-3
58     - crontab redirect to null not nul
59     - remove 20db patch
60    
61     * Sun Jul 29 2007 Stephen Noble <support@dungog.net> 1.0-2
62     - 20db template fixed
63    
64     * Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1
65     - http alias, auto setup, template config.php
66    
67     * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
68     - rpm %post events reordered, to enable clean install
69     - [0.9-2]
70    
71     * Fri Dec 1 2006 Stephen Noble <support@dungog.net>
72     - initial release
73     - [0.9-1]
74    
75     %prep
76     %setup
77     %patch0 -p1
78     %patch1 -p1
79 dungog 1.4 %patch2 -p1
80 dungog 1.5 %patch3 -p1
81 dungog 1.6 %patch4 -p1
82 dungog 1.8 %patch5 -p1
83 dungog 1.9 %patch6 -p1
84 dungog 1.10 %patch7 -p1
85 slords 1.1
86     %build
87    
88     mkdir -p root/etc/e-smith/db/accounts/defaults/moodle
89     echo "reserved" > root/etc/e-smith/db/accounts/defaults/moodle/type
90    
91     mkdir -p root/etc/e-smith/db/configuration/defaults/moodle
92     echo "Online Learning" > root/etc/e-smith/db/configuration/defaults/moodle/Name
93     echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/moodle/PublicAccess
94     echo "enabled" > root/etc/e-smith/db/configuration/defaults/moodle/status
95     echo "moodle" > root/etc/e-smith/db/configuration/defaults/moodle/DbName
96     echo "moodle" > root/etc/e-smith/db/configuration/defaults/moodle/DbUser
97    
98     mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
99     echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80moodle
100    
101     %install
102     rm -rf $RPM_BUILD_ROOT
103     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
104     rm -f %{name}-%{version}-filelist
105     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
106     echo "%doc COPYING" >> %{name}-%{version}-filelist
107    
108     %clean
109     cd ..
110     rm -rf %{name}-%{version}
111    
112     %pre
113     %preun
114     %post
115     /etc/e-smith/events/actions/initialize-default-databases
116     /sbin/e-smith/expand-template /etc/e-smith/sql/init/80moodle
117     /etc/rc.d/init.d/mysql.init start
118     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
119     /usr/bin/sv h /service/httpd-e-smith
120     /sbin/e-smith/expand-template /etc/crontab
121    
122     echo ""
123     echo "see http://wiki.contribs.org/moodle"
124    
125     %postun
126     #uninstall
127     if [ $1 = 0 ] ; then
128     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
129     /usr/bin/sv h /service/httpd-e-smith
130     /sbin/e-smith/expand-template /etc/crontab
131     fi
132    
133     %files -f %{name}-%{version}-filelist
134     %defattr(-,root,root)
135    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed