Пакет moodle2.1-mod-book

Скачать moodle-mod-book.spec
# vim: set ft=spec: -*- rpm-spec -*-

# %%branch_switch set %%branch_release use
#%%define branch_switch Mxx

%define packagetype mod
%define packagename book
%define packagversion 2.1.0
%define packagedate 20111105
%define packagemoodleversion 2011110500
%define moodlebranch 2.1
%define moodlebranch2 2.2
%define moodlepackagename %moodle_name%moodlebranch
%define moodlerequires 2011070100

#Name: %moodlepackagename-%packagetype-%packagename
Name: moodle2.1-mod-book
Version: %packagversion.%packagedate
Release: %branch_release alt2

Summary: This module makes it easy to create multi-page resources with a book-like format
License: %gpl3plus
Group: Networking/WWW

Url: http://docs.moodle.org/20/en/Book_module
Packager: Aleksey Avdeev <solo@altlinux.ru>
BuildArch: noarch

Source: %name-%version.tar

Requires: %moodle_name-base >= 2.1
Requires: %moodle_moddir
Requires: %moodle_name-version >= %moodlerequires
Provides: %moodle_name-appfor = 2.1
Provides: %moodle_name-%packagetype-%packagename-version = %packagemoodleversion
Provides: %moodle_name-%packagetype-%packagename-appfor = %moodlerequires
Provides: %moodle_name%moodlebranch2-%packagetype-%packagename = %version-%release
Conflicts: %moodle_name-%packagetype-%packagename-version < %packagemoodleversion

BuildRequires(pre): rpm-macros-branch
BuildRequires(pre): rpm-macros-moodle
BuildPreReq: rpm-build-webserver-common
BuildPreReq: rpm-build-licenses

This module can be used to build complete book-like websites inside of
your Moodle course.

Previously created websites can be imported directly into the Book module.
Books can be printed entirely or by chapter.

The book module allows you to have main chapters and sub chapters,
but it goes no deeper. In other words, sub chapters cannot have their
own sub chapters. This was an intentional decision by the creator of
the book module. He intended this to be a simple resource for teachers
and students.



mkdir -p %buildroot%moodle_moddir/%packagename/
cp -rp * %buildroot%moodle_moddir/%packagename/


* Wed Mar 21 2012 Aleksey Avdeev <solo@altlinux.ru>
- Update cronbuild use
- Add Provides: moodle2.2-mod-book

* Thu Jan 12 2012 Aleksey Avdeev <solo@altlinux.ru>
- Rename package to moodle2.1-mod-book
- 2.1 (20111105)

* Thu Jan 12 2012 Aleksey Avdeev <solo@altlinux.ru>
- Add cronbuild use

* Tue Aug 30 2011 Aleksey Avdeev <solo@altlinux.ru>
- Add Provides: %%moodle_name-%%packagetype-%%packagename-appfor

* Sun Aug 28 2011 Aleksey Avdeev <solo@altlinux.ru>
- Add Provides: %%moodle_name-appfor

* Thu Aug 25 2011 Aleksey Avdeev <solo@altlinux.ru>
- Fix requires

* Tue Aug 23 2011 Aleksey Avdeev <solo@altlinux.ru>
- Rename package to moodle2.0-mod-book
- 2.0rc (20110320)

* Tue Aug 23 2011 Aleksey Avdeev <solo@altlinux.ru>
- initial build for ALT Linux Sisyphus