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

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

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


Revision 1.4 - (hide annotations) (download)
Sat Dec 22 22:18:30 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.3: +0 -2 lines
Remove Packager/Distribution (added by buildsys)

1 slords 1.1 Summary: smserver rpm to setup moodle, a course management system
2     %define name smeserver-moodle
3     Name: %{name}
4     %define version 0.9
5     %define release 2
6     Version: %{version}
7 slords 1.3 Release: %{release}%{?dist}
8 slords 1.2 License: GPL
9 slords 1.1 URL: http://www.dungog.net/sme
10     Group: SMEserver/addon
11     Source: %{name}-%{version}.tar.gz
12     BuildArchitectures: noarch
13     BuildRoot: /var/tmp/%{name}-%{version}
14     Requires: e-smith-release >= 7.0
15     Requires: moodle
16     Requires: gd
17     AutoReqProv: no
18    
19     %description
20     smserver rpm to setup moodle, a course management system
21    
22     %changelog
23     * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
24     - rpm %post events reordered, to enable clean install
25     - [0.9-2]
26    
27     * Fri Dec 1 2006 Stephen Noble <support@dungog.net>
28     - initial release
29     - [0.9-1]
30    
31     %prep
32     %setup
33    
34     %build
35     #perl createlinks
36     mkdir -p root/etc/e-smith/db/accounts/defaults/moodle
37     echo "reserved" > root/etc/e-smith/db/accounts/defaults/moodle/type
38    
39     mkdir -p root/etc/e-smith/db/configuration/defaults/moodle
40     echo "Online Learning" > root/etc/e-smith/db/configuration/defaults/moodle/Name
41     echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/moodle/PublicAccess
42    
43     %install
44     rm -rf $RPM_BUILD_ROOT
45     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
46     rm -f %{name}-%{version}-filelist
47     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
48     echo "%doc COPYING" >> %{name}-%{version}-filelist
49    
50     %clean
51     cd ..
52     rm -rf %{name}-%{version}
53    
54     %pre
55    
56     %preun
57    
58     %post
59     /etc/e-smith/events/actions/initialize-default-databases
60     /sbin/e-smith/expand-template /etc/e-smith/sql/init/80moodle.sql
61     /etc/rc.d/init.d/mysql.init start
62     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
63     /usr/local/bin/svc -h /service/httpd-e-smith
64     /sbin/e-smith/expand-template /etc/crontab
65    
66     echo ""
67     echo "see www.dungog.net/sme/webapp.php"
68     echo "current settings, config show moodle ..."
69     /sbin/e-smith/config show moodle
70    
71     %postun
72     #uninstall
73     if [ $1 = 0 ] ; then
74     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
75     /usr/local/bin/svc -h /service/httpd-e-smith
76     /sbin/e-smith/expand-template /etc/crontab
77     fi
78    
79     %files -f %{name}-%{version}-filelist
80     %defattr(-,root,root)
81    

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