/[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.6 - (hide annotations) (download)
Mon Jun 2 09:25:24 2008 UTC (16 years, 6 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-moodle-1_0-7_el4_sme
Changes since 1.5: +6 -2 lines
* Mon Jun 2 2008 Stephen Noble <support@dungog.net> 1.0-7
- fix syntax error
* Mon Jun 2 2008 Stephen Noble <support@dungog.net> 1.0-6
- update config.php file to 1.9.1

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

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