/[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.7 - (hide annotations) (download)
Mon Jun 2 12:02:52 2008 UTC (16 years, 5 months ago) by snetram
Branch: MAIN
Changes since 1.6: +2 -1 lines
* Mon Jun 2 2008 Stephen Noble <support@dungog.net> 1.0-7
- fix syntax error

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

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