/[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.8 - (hide annotations) (download)
Tue Sep 16 12:26:46 2008 UTC (16 years, 2 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-moodle-1_0-8_el4_sme
Changes since 1.7: +8 -8 lines
Remove moodle config.php template

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