1 |
# $Id: moodle.spec,v 1.4 2008/09/16 14:01:04 slords Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
%define name moodle |
6 |
Summary: Moodle is a course management system |
7 |
Name: %{name} |
8 |
%define version 1.9.2 |
9 |
%define release 20080910.1 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
13 |
URL: http://moodle.org/ |
14 |
Group: SMEserver/addon |
15 |
#wget http://download.moodle.org/stable18/moodle-latest-18.tgz |
16 |
Source: moodle-weekly-19-20080910.tgz |
17 |
BuildArchitectures: noarch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
Requires: e-smith-release >= 7.0 |
20 |
BuildRequires: e-smith-devtools |
21 |
AutoReqProv: no |
22 |
|
23 |
%description |
24 |
http://moodle.org/ |
25 |
Moodle is a course management system (CMS) |
26 |
A free, Open Source software package designed using sound pedagogical principles, |
27 |
to help educators create effective online learning communities. |
28 |
|
29 |
%changelog |
30 |
* Tue Sep 16 2008 Shad L. Lords <slords@mail.com> 1.9.2-20080910.1 |
31 |
- upstream release |
32 |
|
33 |
* Thu Dec 06 2007 Stephen Noble <support@dungog.net> 1.8.3-1 |
34 |
- upstream release |
35 |
|
36 |
* Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.8.1-1 |
37 |
- upstream release |
38 |
- builds from unchanged .tgz |
39 |
|
40 |
* Sat Dec 2 2006 Stephen Noble <support@dungog.net> |
41 |
- build with correct permissions |
42 |
- [1.7-2] |
43 |
* Fri Dec 1 2006 Stephen Noble <support@dungog.net> |
44 |
- initial release |
45 |
- [1.7-1] |
46 |
|
47 |
%prep |
48 |
%setup -c -n %{name} |
49 |
%build |
50 |
#this lets you drop a .tgz in with the root of moodle and it builds ok |
51 |
mkdir -p root/opt/moodle/moodledata |
52 |
mkdir -p root/opt/moodle/moodlejunk |
53 |
mv %{name} root/opt/moodle/html |
54 |
|
55 |
#? rpm debug complains |
56 |
mkdir -p root/usr/lib/debug/opt/moodle/html/filter/tex |
57 |
touch root/usr/lib/debug/opt/moodle/html/filter/tex/mimetex.freebsd.debug |
58 |
touch root/usr/lib/debug/opt/moodle/html/filter/tex/mimetex.linux.debug |
59 |
|
60 |
|
61 |
%install |
62 |
rm -rf $RPM_BUILD_ROOT |
63 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
64 |
rm -f %{name}-%{version}-filelist |
65 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
66 |
--dir '/opt/moodle/moodledata' 'attr(755,www,www)' \ |
67 |
--dir '/opt/moodle/moodlejunk' 'attr(755,www,www)' \ |
68 |
> %{name}-%{version}-filelist |
69 |
|
70 |
%clean |
71 |
cd .. |
72 |
rm -rf %{name} |
73 |
|
74 |
%pre |
75 |
%preun |
76 |
%post |
77 |
%postun |
78 |
|
79 |
%files -f %{name}-%{version}-filelist |
80 |
%defattr(-,root,root) |
81 |
|