/[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.9 - (hide annotations) (download)
Wed Sep 17 07:44:42 2008 UTC (16 years, 2 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-moodle-1_0-9_el4_sme
Changes since 1.8: +7 -2 lines
remove httpd.conf/80OptDomainMoodle template

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

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