Blob Blame History Raw
%define moodlewebdir %{_var}/www/moodle/web
%define moodledatadir %{_var}/www/moodle/data

# Suppress finding Perl libraries supplied by filter/algebra/*.p?
%define __perl_requires %{nil}
%define __perl_provides %{nil}

Name:           moodle
Version:        1.6.5
Release:        4%{?dist}
Summary:        A Course Management System

Group:          Applications/Publishing
License:        GPL
URL:            http://moodle.org/
Source0:        http://download.moodle.org/stable16/%{name}-%{version}.tgz
Source1:        moodle.conf
Source2:        moodle-config.php
Source3:        moodle.cron
Source4:        moodle-cron
Source5:        moodle.init
Source6:        moodle-README-rpm
Source7:        http://download.moodle.org/lang16/af_utf8.zip
Source8:        http://download.moodle.org/lang16/ar_utf8.zip
Source9:        http://download.moodle.org/lang16/be_utf8.zip
Source10:       http://download.moodle.org/lang16/bg_utf8.zip
Source11:       http://download.moodle.org/lang16/bs_utf8.zip
Source12:       http://download.moodle.org/lang16/ca_utf8.zip
Source13:       http://download.moodle.org/lang16/cs_utf8.zip
Source14:       http://download.moodle.org/lang16/da_utf8.zip
Source15:       http://download.moodle.org/lang16/de_utf8.zip
Source16:       http://download.moodle.org/lang16/de_du_utf8.zip
Source17:       http://download.moodle.org/lang16/el_utf8.zip
Source18:       http://download.moodle.org/lang16/en_utf8.zip
Source19:       http://download.moodle.org/lang16/en_us_utf8.zip
Source20:       http://download.moodle.org/lang16/es_utf8.zip
Source21:       http://download.moodle.org/lang16/et_utf8.zip
Source22:       http://download.moodle.org/lang16/eu_utf8.zip
Source23:       http://download.moodle.org/lang16/fa_utf8.zip
Source24:       http://download.moodle.org/lang16/fi_utf8.zip
Source25:       http://download.moodle.org/lang16/fil_utf8.zip
Source26:       http://download.moodle.org/lang16/fr_utf8.zip
Source27:       http://download.moodle.org/lang16/fr_ca_utf8.zip
Source28:       http://download.moodle.org/lang16/ga_utf8.zip
Source29:       http://download.moodle.org/lang16/gl_utf8.zip
Source30:       http://download.moodle.org/lang16/he_utf8.zip
Source31:       http://download.moodle.org/lang16/hi_utf8.zip
Source32:       http://download.moodle.org/lang16/hr_utf8.zip
Source33:       http://download.moodle.org/lang16/hu_utf8.zip
Source34:       http://download.moodle.org/lang16/id_utf8.zip
Source35:       http://download.moodle.org/lang16/is_utf8.zip
Source36:       http://download.moodle.org/lang16/it_utf8.zip
Source37:       http://download.moodle.org/lang16/ja_utf8.zip
Source38:       http://download.moodle.org/lang16/ka_utf8.zip
Source39:       http://download.moodle.org/lang16/km_utf8.zip
Source40:       http://download.moodle.org/lang16/kn_utf8.zip
Source41:       http://download.moodle.org/lang16/ko_utf8.zip
Source42:       http://download.moodle.org/lang16/lt_utf8.zip
Source43:       http://download.moodle.org/lang16/lv_utf8.zip
Source44:       http://download.moodle.org/lang16/mi_tn_utf8.zip
Source45:       http://download.moodle.org/lang16/ml_utf8.zip
Source46:       http://download.moodle.org/lang16/ms_utf8.zip
Source47:       http://download.moodle.org/lang16/nl_utf8.zip
Source48:       http://download.moodle.org/lang16/nn_utf8.zip
Source49:       http://download.moodle.org/lang16/no_utf8.zip
Source50:       http://download.moodle.org/lang16/no_gr_utf8.zip
Source51:       http://download.moodle.org/lang16/pl_utf8.zip
Source52:       http://download.moodle.org/lang16/pt_utf8.zip
Source53:       http://download.moodle.org/lang16/pt_br_utf8.zip
Source54:       http://download.moodle.org/lang16/ro_utf8.zip
Source55:       http://download.moodle.org/lang16/ru_utf8.zip
Source56:       http://download.moodle.org/lang16/si_utf8.zip
Source57:       http://download.moodle.org/lang16/sk_utf8.zip
Source58:       http://download.moodle.org/lang16/sl_utf8.zip
Source59:       http://download.moodle.org/lang16/so_utf8.zip
Source60:       http://download.moodle.org/lang16/sq_utf8.zip
Source61:       http://download.moodle.org/lang16/sr_cr_utf8.zip
Source62:       http://download.moodle.org/lang16/sr_cr_bo_utf8.zip
Source63:       http://download.moodle.org/lang16/sr_lt_utf8.zip
Source64:       http://download.moodle.org/lang16/sv_utf8.zip
Source65:       http://download.moodle.org/lang16/th_utf8.zip
Source66:       http://download.moodle.org/lang16/tl_utf8.zip
Source67:       http://download.moodle.org/lang16/tr_utf8.zip
Source68:       http://download.moodle.org/lang16/uk_utf8.zip
Source69:       http://download.moodle.org/lang16/vi_utf8.zip
Source70:       http://download.moodle.org/lang16/zh_cn_utf8.zip
Source71:       http://download.moodle.org/lang16/zh_tw_utf8.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  unzip
Requires:       php-gd vixie-cron mimetex perl(lib) php-mysql
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service

# Get rid of the old language pack names.  We do not Provide them on purpose,
# since the base moodle package does not, in fact, support these languages.
Obsoletes:      moodle-cy <= 1.6.5, moodle-fo <= 1.6.5, moodle-tw <= 1.6.5

%description
Moodle is a course management system (CMS) - a free, Open Source software
package designed using sound pedagogical principles, to help educators create
effective online learning communities.

# For maintenance purposes, here is the list of language packs with their
# corresponding date stamps and the source number above.  This list follows
# the order of the one on http://download.moodle.org/lang16/ which is mostly,
# but not completely, alphabetical.  Last updated 2007-05-07.
#
# Afrikaans:                             2007-01-05, Source7
# Albanian:                              2007-01-05, Source60
# Arabic:                                2007-05-01, Source8
# Basque:                                2007-04-16, Source22
# Belarusian:                            2007-01-05, Source9
# Bosnian:                               2007-04-16, Source11
# Bulgarian:                             2007-01-05, Source10
# Catalan:                               2007-04-16, Source12
# Croatian:                              2006-05-07, Source32
# Chinese (Simplified):                  2007-04-19, Source70
# Chinese (Traditional/Big5):            2007-04-16, Source71
# Czech:                                 2007-05-07, Source13
# Danish:                                2007-04-16, Source14
# Dutch:                                 2007-04-16, Source47
# English:                               2007-05-07, Source18
# English (US):                          2007-01-05, Source19
# Estonian:                              2007-04-28, Source21
# Farsi:                                 2006-06-30, Source23
# Filipino:                              2006-07-31, Source25
# Finnish:                               2007-04-16, Source24
# French:                                2007-05-07, Source26
# French (Canada):                       2007-04-16, Source27
# Gaelic:                                2007-01-05, Source28
# Gallego:                               2007-05-01, Source29
# Georgian:                              2007-04-16, Source38
# German:                                2007-04-17, Source15
# German (Personal):                     2007-04-16, Source16
# Greek:                                 2007-03-31, Source17
# Hebrew:                                2006-06-30, Source30
# Hindi:                                 2007-01-05, Source31
# Hungarian:                             2007-04-16, Source33
# Icelandic:                             2007-03-31, Source35
# Indonesian:                            2007-01-05, Source34
# Italian:                               2007-04-16, Source36
# Japanese:                              2007-05-05, Source37
# Kannada:                               2006-06-30, Source40
# Khmer:                                 2006-06-30, Source39
# Korean:                                2007-05-05, Source41
# Lithuanian:                            2007-01-05, Source42
# Latvian:                               2007-01-05, Source43
# Malayalam:                             2006-06-30, Source45
# Malaysian:                             2007-01-05, Source46
# Maori (Ngai Tahu):                     2006-07-06, Source44
# Norwegian:                             2007-04-16, Source49
# Norwegian (Primary):                   2006-02-02, Source50
# Nynorsk:                               2006-05-01, Source48
# Polish:                                2007-04-16, Source51
# Portuguese:                            2007-04-16, Source52
# Portuguese (Brazil):                   2007-04-16, Source53
# Romanian:                              2007-01-05, Source54
# Russian:                               2007-04-21, Source55
# Sinhala:                               2006-10-16, Source56
# Serbian (Cyrillic Bosnia Herzegovina): 2006-08-26, Source62
# Serbian (Cyrillic):                    2007-04-16, Source61
# Serbian (Latin):                       2007-04-16, Source63
# Slovak:                                2007-04-16, Source57
# Slovenian:                             2007-04-16, Source58
# Somali:                                2006-06-30, Source59
# Spanish (International):               2007-04-26, Source20
# Swedish:                               2007-04-16, Source64
# Tagalog:                               2007-04-16, Source66
# Thai:                                  2007-04-16, Source65
# Turkish:                               2007-04-16, Source67
# Ukrainian:                             2007-01-05, Source68
# Vietnamese:                            2007-04-16, Source69

%package        af
Summary:        Moodle language pack for Afrikaans
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    af
This package contains the files needed to display Moodle in Afrikaans.

%files          af
%defattr (-,root,root,-)
%{moodlewebdir}/lang/af_utf8
%{moodlewebdir}/install/lang/af_utf8

%package        ar
Summary:        Moodle language pack for Arabic
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ar
This package contains the files needed to display Moodle in Arabic.

%files          ar
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ar_utf8
%{moodlewebdir}/install/lang/ar_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/ar.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/ar.js

%package        be
Summary:        Moodle language pack for Belarusian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    be
This package contains the files needed to display Moodle in Belarusian.

%files          be
%defattr (-,root,root,-)
%{moodlewebdir}/lang/be_utf8
%{moodlewebdir}/install/lang/be_utf8

%package        bg
Summary:        Moodle language pack for Bulgarian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    bg
This package contains the files needed to display Moodle in Bulgarian.

%files          bg
%defattr (-,root,root,-)
%{moodlewebdir}/lang/bg_utf8
%{moodlewebdir}/install/lang/bg_utf8

%package        bs
Summary:        Moodle language pack for Bosnian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    bs
This package contains the files needed to display Moodle in Bosnian.

%files          bs
%defattr (-,root,root,-)
%{moodlewebdir}/lang/bs_utf8
%{moodlewebdir}/install/lang/bs_utf8

%package        ca
Summary:        Moodle language pack for Catalan
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ca
This package contains the files needed to display Moodle in Catalan.

%files          ca
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ca_utf8
%{moodlewebdir}/install/lang/ca_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/ca.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/ca.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-ca.php

%package        cs
Summary:        Moodle language pack for Czech
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    cs
This package contains the files needed to display Moodle in Czech.

%files          cs
%defattr (-,root,root,-)
%{moodlewebdir}/lang/cs_utf8
%{moodlewebdir}/install/lang/cs_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/cs.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/cs.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/cs.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/cs.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-cz.php

%package        da
Summary:        Moodle language pack for Danish
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    da
This package contains the files needed to display Moodle in Danish.

%files          da
%defattr (-,root,root,-)
%{moodlewebdir}/lang/da_utf8
%{moodlewebdir}/install/lang/da_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/da.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/da.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/da.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/da.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-dk.php

%package        de
Summary:        Moodle language pack for German
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    de
This package contains the files needed to display Moodle in German.

%files          de
%defattr (-,root,root,-)
%{moodlewebdir}/lang/de_utf8
%{moodlewebdir}/install/lang/de_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/de.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/de.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/de.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/de.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-de.php

%package        de_du
Summary:        Moodle language pack for German (Personal)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    de_du
This package contains the files needed to display Moodle in German (Personal).

%files          de_du
%defattr (-,root,root,-)
%{moodlewebdir}/lang/de_du_utf8
%{moodlewebdir}/install/lang/de_du_utf8

%package        el
Summary:        Moodle language pack for Greek
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    el
This package contains the files needed to display Moodle in Greek.

%files          el
%defattr (-,root,root,-)
%{moodlewebdir}/lang/el_utf8
%{moodlewebdir}/install/lang/el_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/el.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/el.js

%package        es
Summary:        Moodle language pack for Spanish
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    es
This package contains the files needed to display Moodle in Spanish.

%files          es
%defattr (-,root,root,-)
%{moodlewebdir}/lang/es_utf8
%{moodlewebdir}/install/lang/es*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/es.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/es.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/es.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/es.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-es.php

%package        et
Summary:        Moodle language pack for Estonian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    et
This package contains the files needed to display Moodle in Estonian.

%files          et
%defattr (-,root,root,-)
%{moodlewebdir}/lang/et_utf8
%{moodlewebdir}/install/lang/et_utf8

%package        eu
Summary:        Moodle language pack for Basque
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    eu
This package contains the files needed to display Moodle in Basque.

%files          eu
%defattr (-,root,root,-)
%{moodlewebdir}/lang/eu_utf8
%{moodlewebdir}/install/lang/eu_utf8

%package        fa
Summary:        Moodle language pack for Farsi
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    fa
This package contains the files needed to display Moodle in Farsi.

%files          fa
%defattr (-,root,root,-)
%{moodlewebdir}/lang/fa_utf8
%{moodlewebdir}/install/lang/fa_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/fa.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/fa*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/fa.js

%package        fi
Summary:        Moodle language pack for Finnish
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    fi
This package contains the files needed to display Moodle in Finnish.

%files          fi
%defattr (-,root,root,-)
%{moodlewebdir}/lang/fi_utf8
%{moodlewebdir}/install/lang/fi_utf8
%{moodlewebdir}/lib/editor/htmlarea/plugins/TableOperations/lang/fi.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/fi.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/fi.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-fi.php

%package        fil
Summary:        Moodle language pack for Filipino
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    fil
This package contains the files needed to display Moodle in Filipino.

%files          fil
%defattr (-,root,root,-)
%{moodlewebdir}/lang/fil_utf8
%{moodlewebdir}/install/lang/fil_utf8

%package        fr
Summary:        Moodle language pack for French
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    fr
This package contains the files needed to display Moodle in French.

%files          fr
%defattr (-,root,root,-)
%{moodlewebdir}/lang/fr_utf8
%{moodlewebdir}/install/lang/fr_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/fr.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/fr.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/fr.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/fr.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-fr.php

%package        fr_ca
Summary:        Moodle language pack for French (Canada)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    fr_ca
This package contains the files needed to display Moodle in French (Canada).

%files          fr_ca
%defattr (-,root,root,-)
%{moodlewebdir}/lang/fr_ca_utf8
%{moodlewebdir}/install/lang/fr_ca_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/fr_ca.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/fr_ca.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/fr_ca.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/fr_ca.js

%package        ga
Summary:        Moodle language pack for Gaelic
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ga
This package contains the files needed to display Moodle in Gaelic.

%files          ga
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ga_utf8
%{moodlewebdir}/install/lang/ga_utf8

%package        gl
Summary:        Moodle language pack for Gallego
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    gl
This package contains the files needed to display Moodle in Gallego.

%files          gl
%defattr (-,root,root,-)
%{moodlewebdir}/lang/gl_utf8
%{moodlewebdir}/install/lang/gl_utf8

%package        gu
Summary:        Moodle language pack for Gujarati
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    gu
This package contains the files needed to display Moodle in Gujarati.
Currently, only the installer is available in Gujarati.

%files          gu
%defattr (-,root,root,-)
%{moodlewebdir}/install/lang/gu_utf8

%package        he
Summary:        Moodle language pack for Hebrew
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    he
This package contains the files needed to display Moodle in Hebrew.

%files          he
%defattr (-,root,root,-)
%{moodlewebdir}/lang/he_utf8
%{moodlewebdir}/install/lang/he_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/he.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/he.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/he.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/he.js

%package        hi
Summary:        Moodle language pack for Hindi
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    hi
This package contains the files needed to display Moodle in Hindi.

%files          hi
%defattr (-,root,root,-)
%{moodlewebdir}/lang/hi_utf8
%{moodlewebdir}/install/lang/hi_utf8

%package        hr
Summary:        Moodle language pack for Croatian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    hr
This package contains the files needed to display Moodle in Croatian.

%files          hr
%defattr (-,root,root,-)
%{moodlewebdir}/lang/hr_utf8
%{moodlewebdir}/install/lang/hr_utf8

%package        hu
Summary:        Moodle language pack for Hungarian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    hu
This package contains the files needed to display Moodle in Hungarian.

%files          hu
%defattr (-,root,root,-)
%{moodlewebdir}/lang/hu_utf8
%{moodlewebdir}/install/lang/hu_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/hu.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/hu.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/hu.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/hu.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-hu.php

%package        id
Summary:        Moodle language pack for Indonesian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    id
This package contains the files needed to display Moodle in Indonesian.

%files          id
%defattr (-,root,root,-)
%{moodlewebdir}/lang/id_utf8
%{moodlewebdir}/install/lang/id_utf8

%package        is
Summary:        Moodle language pack for Icelandic
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    is
This package contains the files needed to display Moodle in Icelandic.

%files          is
%defattr (-,root,root,-)
%{moodlewebdir}/lang/is_utf8
%{moodlewebdir}/install/lang/is_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/is.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/is.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/is.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/is.js

%package        it
Summary:        Moodle language pack for Italian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    it
This package contains the files needed to display Moodle in Italian.

%files          it
%defattr (-,root,root,-)
%{moodlewebdir}/lang/it_utf8
%{moodlewebdir}/install/lang/it_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/it.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/it.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-it.php

%package        ja
Summary:        Moodle language pack for Japanese
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ja
This package contains the files needed to display Moodle in Japanese.

%files          ja
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ja_utf8
%{moodlewebdir}/install/lang/ja_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/ja.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/ja.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-ja.php

%package        ka
Summary:        Moodle language pack for Georgian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ka
This package contains the files needed to display Moodle in Georgian.

%files          ka
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ka_utf8
%{moodlewebdir}/install/lang/ka_utf8

%package        km
Summary:        Moodle language pack for Khmer
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    km
This package contains the files needed to display Moodle in Khmer.

%files          km
%defattr (-,root,root,-)
%{moodlewebdir}/lang/km_utf8
%{moodlewebdir}/install/lang/km_utf8

%package        kn
Summary:        Moodle language pack for Kannada
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    kn
This package contains the files needed to display Moodle in Kannada.

%files          kn
%defattr (-,root,root,-)
%{moodlewebdir}/lang/kn_utf8
%{moodlewebdir}/install/lang/kn_utf8

%package        ko
Summary:        Moodle language pack for Korean
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ko
This package contains the files needed to display Moodle in Korean.

%files          ko
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ko_utf8
%{moodlewebdir}/install/lang/ko_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/ko.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/ko.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/ko.js

%package        lo
Summary:        Moodle language pack for Lao
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    lo
This package contains the files needed to display Moodle in Lao.
Currently, only the installer is available in Lao.

%files          lo
%defattr (-,root,root,-)
%{moodlewebdir}/install/lang/lo_utf8

%package        lt
Summary:        Moodle language pack for Lithuanian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    lt
This package contains the files needed to display Moodle in Lithuanian.

%files          lt
%defattr (-,root,root,-)
%{moodlewebdir}/lang/lt_utf8
%{moodlewebdir}/install/lang/lt_utf8

%package        lv
Summary:        Moodle language pack for Latvian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    lv
This package contains the files needed to display Moodle in Latvian.

%files          lv
%defattr (-,root,root,-)
%{moodlewebdir}/lang/lv_utf8
%{moodlewebdir}/install/lang/lv_utf8

%package        mi_tn
Summary:        Moodle language pack for Maori (Ngai Tahu)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}
Obsoletes:      moodle-mi <= 1.6.3
Provides:       moodle-mi = 1.6.3

%description    mi_tn
This package contains the files needed to display Moodle in Maori (Ngai Tahu).

%files          mi_tn
%defattr (-,root,root,-)
%{moodlewebdir}/lang/mi_tn_utf8
%{moodlewebdir}/install/lang/mi_*

%package        ml
Summary:        Moodle language pack for Malayalam
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ml
This package contains the files needed to display Moodle in Malayalam.

%files          ml
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ml_utf8
%{moodlewebdir}/install/lang/ml_utf8

%package        ms
Summary:        Moodle language pack for Malaysian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ms
This package contains the files needed to display Moodle in Malaysian.

%files          ms
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ms_utf8
%{moodlewebdir}/install/lang/ms_utf8

%package        nl
Summary:        Moodle language pack for Dutch
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    nl
This package contains the files needed to display Moodle in Dutch.

%files          nl
%defattr (-,root,root,-)
%{moodlewebdir}/lang/nl_utf8
%{moodlewebdir}/install/lang/nl_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/nl.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/nl.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/nl.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-nl.php

%package        nn
Summary:        Moodle language pack for Nynorsk
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    nn
This package contains the files needed to display Moodle in Nynorsk.

%files          nn
%defattr (-,root,root,-)
%{moodlewebdir}/lang/nn_utf8
%{moodlewebdir}/install/lang/nn_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/nn.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/nn.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/nn.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/nn.js

%package        no
Summary:        Moodle language pack for Norwegian Bokmal
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    no
This package contains the files needed to display Moodle in Norwegian Bokmal.

%files          no
%defattr (-,root,root,-)
%{moodlewebdir}/lang/no_utf8
%{moodlewebdir}/install/lang/no_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/nb.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/nb.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/nb.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/nb.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-no.php

%package        no_gr
Summary:        Moodle language pack for Norwegian (Primary)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    no_gr
This package contains the files needed to display Moodle in Norwegian
(Primary).

%files          no_gr
%defattr (-,root,root,-)
%{moodlewebdir}/lang/no_gr_utf8
%{moodlewebdir}/install/lang/no_gr_utf8

%package        pl
Summary:        Moodle language pack for Polish
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    pl
This package contains the files needed to display Moodle in Polish.

%files          pl
%defattr (-,root,root,-)
%{moodlewebdir}/lang/pl_utf8
%{moodlewebdir}/install/lang/pl_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/pl.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/pl.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/pl.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/pl.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-pl.php

%package        pt
Summary:        Moodle language pack for Portuguese
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    pt
This package contains the files needed to display Moodle in Portuguese.

%files          pt
%defattr (-,root,root,-)
%{moodlewebdir}/lang/pt_utf8
%{moodlewebdir}/install/lang/pt_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/pt.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/pt.js

%package        pt_br
Summary:        Moodle language pack for Portuguese (Brazil)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    pt_br
This package contains the files needed to display Moodle in Portuguese
(Brazil).

%files          pt_br
%defattr (-,root,root,-)
%{moodlewebdir}/lang/pt_br_utf8
%{moodlewebdir}/install/lang/pt_br_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/pt_br.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/pt_br.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/pt_br.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/pt_br.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-br.php

%package        ro
Summary:        Moodle language pack for Romanian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ro
This package contains the files needed to display Moodle in Romanian.

%files          ro
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ro_utf8
%{moodlewebdir}/install/lang/ro_utf8
%{moodlewebdir}/lib/editor/htmlarea/plugins/TableOperations/lang/ro.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-ro.php

%package        ru
Summary:        Moodle language pack for Russian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ru
This package contains the files needed to display Moodle in Russian.

%files          ru
%defattr (-,root,root,-)
%{moodlewebdir}/lang/ru_utf8
%{moodlewebdir}/install/lang/ru_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/ru*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/ru*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/ru*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/ru*
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-ru.php

%package        si
Summary:        Moodle language pack for Sinhala
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    si
This package contains the files needed to display Moodle in Sinhala.

%files          si
%defattr (-,root,root,-)
%{moodlewebdir}/lang/si_utf8
%{moodlewebdir}/install/lang/si_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/si.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/si.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/si.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/si.js

%package        sk
Summary:        Moodle language pack for Slovak
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    sk
This package contains the files needed to display Moodle in Slovak.

%files          sk
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sk_utf8
%{moodlewebdir}/install/lang/sk_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/sk.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/sk.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/sk.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/sk.js

%package        sl
Summary:        Moodle language pack for Slovenian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    sl
This package contains the files needed to display Moodle in Slovenian.

%files          sl
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sl_utf8
%{moodlewebdir}/install/lang/sl_utf8

%package        sm
Summary:        Moodle language pack for Samoan
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    sm
This package contains the files needed to display Moodle in Samoan.
Currently, only the installer is available in Samoan.

%files          sm
%defattr (-,root,root,-)
%{moodlewebdir}/install/lang/sm_utf8

%package        so
Summary:        Moodle language pack for Somali
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    so
This package contains the files needed to display Moodle in Somali.

%files          so
%defattr (-,root,root,-)
%{moodlewebdir}/lang/so_utf8
%{moodlewebdir}/install/lang/so_utf8

%package        sq
Summary:        Moodle language pack for Albanian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    sq
This package contains the files needed to display Moodle in Albanian.

%files          sq
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sq_utf8
%{moodlewebdir}/install/lang/sq_utf8

%package        sr_cr
Summary:        Moodle language pack for Serbian (Cyrillic)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}
Obsoletes:      moodle-sr <= 1.6.3
Provides:       moodle-sr = 1.6.3

%description    sr_cr
This package contains the files needed to display Moodle in Serbian (Cyrillic).

%files          sr_cr
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sr_cr_utf8
%{moodlewebdir}/install/lang/sr_cr_utf8

%package        sr_cr_bo
Summary:        Moodle language pack for Serbian (Cyrillic Bosnia Herzegovina)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}
Obsoletes:      moodle-sr <= 1.6.3
Provides:       moodle-sr = 1.6.3

%description    sr_cr_bo
This package contains the files needed to display Moodle in Serbian
(Cyrillic Bosnia Herzegovina).

%files          sr_cr_bo
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sr_cr_bo_utf8
%{moodlewebdir}/install/lang/sr_cr_bo_utf8
%{moodlewebdir}/install/lang/sr_utf8

%package        sr_lt
Summary:        Moodle language pack for Serbian (Latin)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}
Obsoletes:      moodle-sr <= 1.6.3
Provides:       moodle-sr = 1.6.3

%description    sr_lt
This package contains the files needed to display Moodle in Serbian (Latin).

%files          sr_lt
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sr_lt_utf8
%{moodlewebdir}/install/lang/sr_lt_utf8

%package        sv
Summary:        Moodle language pack for Swedish
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    sv
This package contains the files needed to display Moodle in Swedish.

%files          sv
%defattr (-,root,root,-)
%{moodlewebdir}/lang/sv_utf8
%{moodlewebdir}/install/lang/sv_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/sv.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/sv.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/sv.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/sv.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-se.php

%package        ta
Summary:        Moodle language pack for Tamil
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    ta
This package contains the files needed to display Moodle in Tamil.
Currently, only the installer is available in Tamil.

%files          ta
%defattr (-,root,root,-)
%{moodlewebdir}/install/lang/ta_utf8

%package        th
Summary:        Moodle language pack for Thai
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    th
This package contains the files needed to display Moodle in Thai.

%files          th
%defattr (-,root,root,-)
%{moodlewebdir}/lang/th_utf8
%{moodlewebdir}/install/lang/th_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/th.js

%package        tl
Summary:        Moodle language pack for Tagalog
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    tl
This package contains the files needed to display Moodle in Tagalog.

%files          tl
%defattr (-,root,root,-)
%{moodlewebdir}/lang/tl_utf8
%{moodlewebdir}/install/lang/tl_utf8

%package        to
Summary:        Moodle language pack for Tonga
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    to
This package contains the files needed to display Moodle in Tonga.
Currently, only the installer is available in Tonga.

%files          to
%defattr (-,root,root,-)
%{moodlewebdir}/install/lang/to_utf8

%package        tr
Summary:        Moodle language pack for Turkish
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    tr
This package contains the files needed to display Moodle in Turkish.

%files          tr
%defattr (-,root,root,-)
%{moodlewebdir}/lang/tr_utf8
%{moodlewebdir}/install/lang/tr_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/tr.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/tr.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/tr.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/tr.js
%{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-tr.php

%package        uk
Summary:        Moodle language pack for Ukrainian
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    uk
This package contains the files needed to display Moodle in Ukrainian.

%files          uk
%defattr (-,root,root,-)
%{moodlewebdir}/lang/uk_utf8
%{moodlewebdir}/install/lang/uk_utf8

%package        vi
Summary:        Moodle language pack for Vietnamese
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}

%description    vi
This package contains the files needed to display Moodle in Vietnamese.

%files          vi
%defattr (-,root,root,-)
%{moodlewebdir}/lang/vi_utf8
%{moodlewebdir}/install/lang/vi_utf8

%package        zh_cn
Summary:        Moodle language pack for Chinese (Simplified)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}
Obsoletes:      moodle-zh <= 1.6.3
Provides:       moodle-zh = 1.6.3

%description    zh_cn
This package contains the files needed to display Moodle in Chinese
(Simplified).

%files          zh_cn
%defattr (-,root,root,-)
%{moodlewebdir}/lang/zh_cn_utf8
%{moodlewebdir}/install/lang/zh_cn_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/zh_cn.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/zh_cn.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/zh_cn.js
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/zh_cn.js

%package        zh_tw
Summary:        Moodle language pack for Chinese (Traditional/Big5)
Group:          Applications/Publishing
Requires:       moodle = %{version}-%{release}
Obsoletes:      moodle-zh <= 1.6.3
Provides:       moodle-zh = 1.6.3

%description    zh_tw
This package contains the files needed to display Moodle in Chinese
(Traditional/Big5).

%files          zh_tw
%defattr (-,root,root,-)
%{moodlewebdir}/lang/zh_tw_utf8
%{moodlewebdir}/install/lang/zh_tw_utf8
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/zh_tw*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/zh_tw*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/zh_tw*
%{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/zh_tw*

%prep
%setup -q -n %{name}
cp %{SOURCE6} README-rpm

cd lang
unzip -qq -o %{SOURCE7}
unzip -qq -o %{SOURCE8}
unzip -qq -o %{SOURCE9}
unzip -qq -o %{SOURCE10}
unzip -qq -o %{SOURCE11}
unzip -qq -o %{SOURCE12}
unzip -qq -o %{SOURCE13}
unzip -qq -o %{SOURCE14}
unzip -qq -o %{SOURCE15}
unzip -qq -o %{SOURCE16}
unzip -qq -o %{SOURCE17}
unzip -qq -o %{SOURCE18}
unzip -qq -o %{SOURCE19}
unzip -qq -o %{SOURCE20}
unzip -qq -o %{SOURCE21}
unzip -qq -o %{SOURCE22}
unzip -qq -o %{SOURCE23}
unzip -qq -o %{SOURCE24}
unzip -qq -o %{SOURCE25}
unzip -qq -o %{SOURCE26}
unzip -qq -o %{SOURCE27}
unzip -qq -o %{SOURCE28}
unzip -qq -o %{SOURCE29}
unzip -qq -o %{SOURCE30}
unzip -qq -o %{SOURCE31}
unzip -qq -o %{SOURCE32}
unzip -qq -o %{SOURCE33}
unzip -qq -o %{SOURCE34}
unzip -qq -o %{SOURCE35}
unzip -qq -o %{SOURCE36}
unzip -qq -o %{SOURCE37}
unzip -qq -o %{SOURCE38}
unzip -qq -o %{SOURCE39}
unzip -qq -o %{SOURCE40}
unzip -qq -o %{SOURCE41}
unzip -qq -o %{SOURCE42}
unzip -qq -o %{SOURCE43}
unzip -qq -o %{SOURCE44}
unzip -qq -o %{SOURCE45}
unzip -qq -o %{SOURCE46}
unzip -qq -o %{SOURCE47}
unzip -qq -o %{SOURCE48}
unzip -qq -o %{SOURCE49}
unzip -qq -o %{SOURCE50}
unzip -qq -o %{SOURCE51}
unzip -qq -o %{SOURCE52}
unzip -qq -o %{SOURCE53}
unzip -qq -o %{SOURCE54}
unzip -qq -o %{SOURCE55}
unzip -qq -o %{SOURCE56}
unzip -qq -o %{SOURCE57}
unzip -qq -o %{SOURCE58}
unzip -qq -o %{SOURCE59}
unzip -qq -o %{SOURCE60}
unzip -qq -o %{SOURCE61}
unzip -qq -o %{SOURCE62}
unzip -qq -o %{SOURCE63}
unzip -qq -o %{SOURCE64}
unzip -qq -o %{SOURCE65}
unzip -qq -o %{SOURCE66}
unzip -qq -o %{SOURCE67}
unzip -qq -o %{SOURCE68}
unzip -qq -o %{SOURCE69}
unzip -qq -o %{SOURCE70}
unzip -qq -o %{SOURCE71}
cd ..

find . -type f \! -name \*.pl -exec chmod a-x {} \;
find . -name \*.cgi -exec chmod a+x {} \;
chmod a+x admin/process_email.php
chmod a+x mod/chat/chatd.php
chmod a+x mod/wiki/ewiki/fragments/mkhuge
sed -i 's/\r//' auth/fc/Readme.txt
sed -i 's/\r//' doc/contents.php
sed -i 's/\r//' lang/README.txt
sed -i 's/\r//' lang/en_utf8/help/assignment/quickgrade.html
sed -i 's/\r//' lang/en_utf8/help/lesson/importppt.html
sed -i 's/\r//' lang/en_utf8/help/lesson/questionoption.html
sed -i 's/\r//' lang/en_utf8/help/lesson/questiontypes.html
sed -i 's/\r//' lang/en_utf8/help/uploadgroups.html
sed -i 's/\r//' lib/adodb/license.txt
sed -i 's/\r//' lib/adodb/pear/readme.Auth.txt
sed -i 's/\r//' lib/adodb/readme.htm
sed -i 's/\r//' lib/adodb/readme.txt
sed -i 's/\r//' lib/adodb/tips_portable_sql.htm
sed -i 's/\r//' lib/mp3player/readme.txt
sed -i 's/\r//' login/change_password_form.html
sed -i 's/\r//' mod/wiki/ewiki/README
sed -i 's/\r//' mod/wiki/ewiki/README.de
sed -i 's/\r//' question/format/webct/TODO.txt
sed -i 's/\r//' theme/chameleon/pix/mod/README.txt

%build
rm config-dist.php install.php tags filter/tex/mimetex.* filter/tex/README.mimetex

# Get rid of language files in subordinate packages for languages not supported
# by moodle itself.
rm lib/editor/tinymce/jscripts/tiny_mce/langs/cy.js
rm lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/cy.js
rm lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/cy.js
rm lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/cy.js
rm lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/tw.js
rm lib/phpmailer/language/phpmailer.lang-fo.php

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{moodlewebdir}
mkdir -p $RPM_BUILD_ROOT%{moodledatadir}
cp -a * $RPM_BUILD_ROOT%{moodlewebdir}
rm $RPM_BUILD_ROOT%{moodlewebdir}/README*
install -p -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/moodle.conf
install -p -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{moodlewebdir}/config.php
install -p -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/moodle
install -p -D -m 0755 %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/moodle-cron
install -p -D -m 0755 %{SOURCE5} $RPM_BUILD_ROOT%{_initrddir}/moodle
find $RPM_BUILD_ROOT -name \*.mimetex-\* -exec rm {} \;

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/chkconfig --add %{name}

%preun
if [ $1 = 0 ]; then
  /sbin/service %{name} stop >/dev/null 2>&1
  /sbin/chkconfig --del %{name}
fi

%files
%defattr(-,root,root,-)
%doc README* doc/COPYRIGHT.txt
%dir %{_var}/www/moodle
%dir %{moodlewebdir}
%config(noreplace) %{moodlewebdir}/config.php
%config(noreplace) %{moodlewebdir}/course/format/lams/config.php
%config(noreplace) %{moodlewebdir}/course/format/scorm/config.php
%config(noreplace) %{moodlewebdir}/course/format/social/config.php
%config(noreplace) %{moodlewebdir}/course/format/topics/config.php
%config(noreplace) %{moodlewebdir}/course/format/weeks/config.php
%config(noreplace) %{moodlewebdir}/course/format/weekscss/config.php
%config(noreplace) %{moodlewebdir}/theme/chameleon/config.php
%config(noreplace) %{moodlewebdir}/theme/cornflower/config.php
%config(noreplace) %{moodlewebdir}/theme/formal_white/config.php
%config(noreplace) %{moodlewebdir}/theme/metal/config.php
%config(noreplace) %{moodlewebdir}/theme/oceanblue/config.php
%config(noreplace) %{moodlewebdir}/theme/orangewhite/config.php
%config(noreplace) %{moodlewebdir}/theme/orangewhitepda/config.php
%config(noreplace) %{moodlewebdir}/theme/standard/config.php
%config(noreplace) %{moodlewebdir}/theme/standardblue/config.php
%config(noreplace) %{moodlewebdir}/theme/standardgreen/config.php
%config(noreplace) %{moodlewebdir}/theme/standardlogo/config.php
%config(noreplace) %{moodlewebdir}/theme/standardred/config.php
%config(noreplace) %{moodlewebdir}/theme/standardwhite/config.php
%config(noreplace) %{moodlewebdir}/theme/wood/config.php
%{moodlewebdir}/[a-ce-hj-km-z]*
%doc %{moodlewebdir}/doc
%{moodlewebdir}/index.php
%dir %{moodlewebdir}/install
%dir %{moodlewebdir}/install/lang
%{moodlewebdir}/install/lang/en*
%{moodlewebdir}/install/welcome.html
%{moodlewebdir}/iplookup
%dir %{moodlewebdir}/lang
%{moodlewebdir}/lang/en*
%{moodlewebdir}/lang/README.txt
%{moodlewebdir}/lib
%exclude %{moodlewebdir}/lib/editor/htmlarea/plugins/TableOperations/lang/fi.js
%exclude %{moodlewebdir}/lib/editor/htmlarea/plugins/TableOperations/lang/ro.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/a*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/c*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/d*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/el.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/es.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/f*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/h*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/i*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/j*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/k*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/n*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/p*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/ru*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/s*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/t*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/langs/z*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/c*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/d*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/es.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/f*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/h*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/i*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/k*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/n*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/p*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/r*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/s*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/t*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/advimage/langs/z*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/c*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/d*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/es.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/f*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/h*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/i*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/n*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/p*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/r*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/s*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/t*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/plugins/fullscreen/langs/z*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/a*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/c*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/d*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/el.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/es.js
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/f*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/h*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/i*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/j*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/k*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/n*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/p*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/ru*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/s*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/t*
%exclude %{moodlewebdir}/lib/editor/tinymce/jscripts/tiny_mce/themes/advanced/langs/z*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-b*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-c*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-d*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-es.php
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-f*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-h*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-i*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-j*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-n*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-p*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-r*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-s*
%exclude %{moodlewebdir}/lib/phpmailer/language/phpmailer.lang-t*
%{moodlewebdir}/login
%attr(-,apache,apache) %{moodledatadir}
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%config(noreplace) %{_sysconfdir}/httpd/conf.d/moodle.conf
%{_initrddir}/%{name}
%{_sbindir}/%{name}-cron

%changelog
* Mon May  7 2007 Jerry James <Jerry.James@usu.edu> - 1.6.5-4
- Mark a bunch of config.php files as configuration files.
- Update language packs to the 07 May 2007 versions.

* Fri Apr 20 2007 Jerry James <Jerry.James@usu.edu> - 1.6.5-3
- perl-Text-Aspell is now available, so use it.  Don't make the spellchecker
  a separate package, however, since it is an htmlarea plugin, not a moodle
  plugin.  Somebody we will provide htmlarea as a separate package.
- Update language packs to the 20 Apr 2007 versions.

* Tue Apr 17 2007 Jerry James <Jerry.James@usu.edu> - 1.6.5-2
- Fix a CVS gaffe.
- Obsolete language packs with old names.
- Update language packs to the 17 Apr 2007 versions.

* Thu Apr 12 2007 Jerry James <Jerry.James@usu.edu> - 1.6.5-1
- Update to 1.6.5 (fixes BZ 220041 and 232103)
- Own /var/www/moodle/web (BZ 233882)
- Drop unused mimetex patches
- Add executable bits to 3 scripts that should have them
- Remove the installation language files from the main package (twice)
- Package the moodle language files, not just the installation files
- Rename/add several language files to match the upstream list
- Minor typo fixes in the scripts

* Sat Oct 28 2006 Mike McGrath <imlinux@gmail.com> - 1.6.3-3
- Release bump

* Sun Oct 22 2006 Mike McGrath <imlinux@gmail.com> - 1.6.3-2
- Added requires php-mysql

* Fri Oct 13 2006 Mike McGrath <imlinux@gmail.com> - 1.6.3-1
- Major changes, update to 1.6.3
- SpellChecker moved
- Language install method has been changed (added a cp)

* Thu Sep 07 2006 Mike McGrath <imlinux@gmail.com> - 1.5.4-2
- Release bump

* Thu Aug 24 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.5.4-1
- Update to 1.5.4.
- Remove SA18267.patch; not needed in 1.5.4.
- Add -nn subpackage for new Norwegian Nynorsk language.
- Change description for -no subpackage to indicate Bokmal explicitly.
  Note that I have purposefully misspelled "Bokmal" in order to avoid
  introducing a non-ASCII character.

* Mon Jan  9 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.5.3-2
- Add security patch for adodb (SA18267)

* Sat Dec 10 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.5.3-1
- Update to 1.5.3
- Split off spell check package due to lack of Text::Aspell

* Mon Oct 12 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.5.2-1
- Initial RPM release