Package moodle2.4: Specfile

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
# vim: set ft=spec: -*- rpm-spec -*-

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

%define packagversion 2.4.9
%define packagedate 20140310
%define packagemoodleversion 2012120309.00
%define moodlebranch 2.4
%define moodlepackagename %moodle_name%moodlebranch

#Name: %moodlepackagename
Name: moodle2.4
Version: %packagversion.%packagedate
Release: %branch_release alt1

Summary: The Course Management System Moodle
License: %gpl3plus
Group: Networking/WWW

Url: http://www.moodle.org
Packager: Aleksey Avdeev <solo@altlinux.ru>
BuildArch: noarch

Source: %name-%version.tar
Source1: distrolib.php
Source10: %moodle_name.httpd.conf
Source20: %moodle_name.httpd2.conf
Source21: %moodle_name.start.extra.conf
Source22: %moodle_name.start.mods.conf
Source23: %moodle_name.httpd2.inc.conf

Patch1: %name-alt-lang_installer.patch

Requires: %name-base = %version-%release
Requires: %name-auth-pam >= 2.4.0.2011112900.0.20130318
Provides: %moodle_name = %version-%release

BuildRequires(pre): rpm-macros-branch
BuildRequires(pre): rpm-macros-moodle >= 2.4
BuildRequires(pre): rpm-macros-apache2
BuildPreReq: rpm-macros-fonts
BuildPreReq: rpm-build-webserver-common
BuildPreReq: rpm-build-licenses
BuildPreReq: perl-HTML-Parser

%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.

This package, with dependencies, install all the standard components
of Moodle.

%package base
Summary: Base part for Moodle CMS
Group: Networking/WWW

PreReq: webserver-common
PreReq: %_sbindir/web-condstop-rpm
PreReq: %_sbindir/web-condstart-rpm
PreReq: %_sbindir/mt-getCFG
PreReq: %_sbindir/mt-setCFG
PreReq: %_sbindir/mt-newdatadir
PreReq: %_sbindir/mt-getdef
PreReq: %_sbindir/mt-setdef
Requires: %webserver_webappsdir
Requires: php-engine php5-gd2 php5-openssl php5-xmlrpc php5-curl iconv php5-mbstring php5-ldap
Requires: texlive-base-bin ImageMagick
Requires: php5-soap
Requires: php5-zip
Requires: php5-intl
Requires: php5-dom
Provides: %moodle_name-base = %version-%release
Provides: %{moodle_name}2.0-base = %version-%release
Provides: %moodle_dir
Provides: %moodle_admindir
Provides: %moodle_authdir
Provides: %moodle_blocksdir
Provides: %moodle_calendardir
Provides: %moodle_coursedir
Provides: %moodle_docdir
Provides: %moodle_enroldir
Provides: %moodle_filesdir
Provides: %moodle_filterdir
Provides: %moodle_langdir
Provides: %moodle_libdir
Provides: %moodle_logindir
Provides: %moodle_moddir
Provides: %moodle_pixdir
Provides: %moodle_questiondir
Provides: %moodle_questionformatdir
Provides: %moodle_themedir
Provides: %moodle_datadir
Provides: %moodle_name-version = %packagemoodleversion
Provides: moodle-lang-en_utf8 = %version-%release
Provides: %name-lang-en = %version-%release
Conflicts: moodle-apache2 < 2.4
Conflicts: moodle-apache2 >= 2.5
Conflicts: moodle-local-mysql < 2.4
Conflicts: moodle-local-mysql >= 2.5
Conflicts: moodle-lang < 2.0
Conflicts: moodle-lang-en_utf8 < 2.4
Conflicts: %moodle_name < 2.4
Conflicts: %moodle_name >= 2.5
Conflicts: %moodle_name-appfor < 2.0
# Old moodle-lang-*
Conflicts: moodle-lang-be_utf8 < 1.9.10.20100526
Conflicts: moodle-lang-de_utf8 < 1.9.10.20110705
Conflicts: moodle-lang-es_utf8 < 1.9.10.20101112
Conflicts: moodle-lang-fr_utf8 < 1.9.10.20110718
Conflicts: moodle-lang-hy_utf8 < 1.9.10.20100526
Conflicts: moodle-lang-it_utf8 < 1.9.10.20110319
Conflicts: moodle-lang-ja_utf8 < 1.9.10.20110809
Conflicts: moodle-lang-pt_utf8 < 1.9.10.20100814
Conflicts: moodle-lang-ru_utf8 < 1.9.10.20100617
Conflicts: moodle-lang-uk_utf8 < 1.9.10.20100526
Conflicts: moodle-lang-uz_utf8 < 1.9.10.20100526
Conflicts: moodle-lang-zh_tw_utf8 < 1.9.10.20100526
Conflicts: moodle-lang-zh_cn_utf8 < 1.9.10.20100526

%description base
%summary

Part of the standard components of Moodle, is not included
in this package is moved to subpackages.

#%package apache
#Summary: apache-related config for Moodle CMS
#Group: Networking/WWW
#Requires: %name = %version-%release
#Requires: apache apache-mod_php5
#Provides: %moodle_name-apache = %version-%release

#%description apache
#%summary

%package apache2
Summary: apache2-related config for Moodle CMS
Group: Networking/WWW
Requires: apache2-base > 2.2.17-alt2
Requires: %apache2_extra_available
Requires: %apache2_extra_enabled
Requires: %apache2_extra_start
Requires: %apache2_mods_start
Requires: %apache2_confdir_inc
Requires: %name-base >= 2.4.3.20130318
Requires: %moodle_dir
Requires: %moodle_datadir
Requires: apache2-mod_php5
Provides: %moodle_name-apache2 = %version-%release
Conflicts: %moodle_name >= 2.5
Conflicts: %moodle_name-base >= 2.5

%description apache2
%summary

%package local-mysql
Summary: installed mysql-server on localhost for Moodle
Group: Networking/WWW
Requires: %name-base >= 2.4.3.20130318
Requires: /usr/sbin/mysqld
Requires: php5-mysqli
Provides: %moodle_name-local-mysql = %version-%release
Conflicts: %moodle_name >= 2.5
Conflicts: %moodle_name-base >= 2.5

%description local-mysql
%summary

#%package local-pgsql
#Summary: installed postgresql-server on localhost for Moodle
#Group: Networking/WWW
#Requires: %name = %version-%release
#Requires: postgresql8.2-server php5-pgsql
#Provides: %moodle_name-local-pgsql = %version-%release

#%description local-pgsql
#%summary

%define auth_pam_moodlerequires 2012112900
%define auth_pam_packagemoodleversion 2012112900
%define auth_pam_packagemoodlerelease 2.4.0
%package auth-pam
Version: %auth_pam_packagemoodlerelease.%auth_pam_packagemoodleversion.0.%packagedate
Summary: PAM authentication for Moodle
Group: Networking/WWW

Requires: pecl-pam
Requires: %name-base >= 2.4.3.20130318
Requires: %moodle_authdir
Requires: %moodle_name-version >= %auth_pam_moodlerequires
Provides: %moodle_name-appfor = 2.4
Provides: %moodle_name-auth-pam-version = %auth_pam_packagemoodleversion
Provides: %moodle_name-auth-pam-appfor = %auth_pam_moodlerequires
Conflicts: %moodle_name-auth-pam-version < %auth_pam_packagemoodleversion

%description auth-pam
PAM (Pluggable Authentication Modules) authentication methods for Moodle

%add_perl_lib_path %moodle_filterdir/algebra
%define filter_from_reqprov /^perl(\\(AlgParser\\.pm\\|algebra2tex\\.pl\\))/d
%filter_from_provides %filter_from_reqprov
%filter_from_requires %filter_from_reqprov

%prep
%setup -q
%patch1 -p1

rm -f filter/tex/*mimetex*
#rm -f filter/algebra/*
rm -f lib/default.ttf

%build

%install
# install moodle
mkdir -p %buildroot%moodle_dir/
mkdir -p %buildroot%moodle_datadir/
cp -rp * %buildroot%moodle_dir/

# create config.php
touch %buildroot%moodle_dir/config.php

%define mimetexlinux_filter %moodle_filterdir/tex/mimetex.linux
ln -s -f $(relative %buildroot%webserver_cgibindir/mimetex.cgi \
	%buildroot%mimetexlinux_filter) \
	%buildroot%mimetexlinux_filter

%define default_ttf %moodle_libdir/default.ttf
ln -s -f $(relative %buildroot%_ttffontsdir/freefont/FreeSans.ttf \
	%buildroot%default_ttf) \
	%buildroot%default_ttf

# install distrolib.php
install -pD -m0644 %SOURCE1 %buildroot%moodle_dir/install/distrolib.php

# install apache config
install -pD -m0644 %SOURCE10 %buildroot%_sysconfdir/httpd/conf/addon-modules.d/%name.conf

# install apache2 config
install -pD -m0644 %SOURCE20 %buildroot%apache2_extra_available/%name.conf
install -pD -m0644 %SOURCE21 %buildroot%apache2_extra_start/100-%name.conf
install -pD -m0644 %SOURCE22 %buildroot%apache2_mods_start/100-%name.conf
install -pD -m0644 %SOURCE23 %buildroot%apache2_confdir_inc/Directory_%{moodle_name}_default.conf

mkdir -p %buildroot%apache2_extra_enabled/
touch %buildroot%apache2_extra_enabled/%name.conf

#Disclosure of the macros
find %buildroot%moodle_dir/install/distrolib.php %buildroot%_sysconfdir -type f -print0 \
	| xargs -r0 sed -ri "
s@%%(\{name\}|name([[:space:]/'\"=]))@%name\2@g
s@%%(\{webserver_datadir\}|webserver_datadir([[:space:]/'\"=]))@%webserver_datadir\2@g
s@%%(\{moodle_name\}|moodle_name([[:space:]/'\"=]))@%moodle_name\2@g
s@%%(\{moodle_dir\}|moodle_dir([[:space:]/'\"=]))@%moodle_dir\2@g
s@%%(\{moodle_datadir\}|moodle_datadir([[:space:]/'\"=]))@%moodle_datadir\2@g
"

%triggerun base -- moodle2.1 <= 2.1.1.20110817-alt2.1, moodle2.1-base <= 2.1.4.20120217-alt2, moodle2.0 <= 2.0.4.20110817-alt2.1, moodle2.0-base <= 2.0.7.20120217-alt2, moodle <= 1.9.13.20110817-alt2.1, moodle-base <= 1.9.16.20120217-alt3, moodle-apache <= 1.9.10-alt2.cvs20101110, moodle-apache2 <= 1.9.10-alt2.cvs20101110
if ls -l %moodle_dir/ | egrep -qsm1 '^([^[:space:]]+[[:space:]]+){3}(apache2?|root)[[:space:]]'; then
	echo "Warning: GUD directory %moodle_dir/ changed to %webserver_group."
	chgrp %webserver_group %moodle_dir/
fi
if [ -e "%moodle_dir/install/distrolib.php" ]; then
	old_moodle_def_dataroot="`%_sbindir/mt-getdef --file=%moodle_dir/install/distrolib.php dataroot`"
	if (echo "$old_moodle_def_dataroot" | \
			egrep -q '^[[:space:]]*(%moodle_olddatadir|%moodle_olddatadir2)(/+)?[[:space:]]*$'); then
		echo "Warning: In the file %moodle_dir/install/distrolib.php"
		echo "    path $old_moodle_dataroot replaced by %moodle_datadir."
		echo 'Original file %moodle_dir/install/distrolib.php is saved as %moodle_dir/install/distrolib.php.rpmold.'
		cp -fa --backup=t "%moodle_dir/install/distrolib.php" "%moodle_dir/install/distrolib.php.rpmold"
		%_sbindir/mt-setdef --file=%moodle_dir/install/distrolib.php \
			-m 'rpm update to %name-base-%version-%release' \
			dataroot '%moodle_datadir'
	fi
fi
if [ -e "%moodle_dir/config.php" ]; then
	%_sbindir/web-condstop-rpm

	old_moodle_directorypermissions="`%_sbindir/mt-getCFG --file=%moodle_dir/config.php --format='%%05o' directorypermissions`"
	if [ "$old_moodle_directorypermissions" != "02770" ]; then
		new_moodle_directorypermissions="02770"
		echo "Warning: In the file %moodle_dir/config.php"
		echo "    \$CFG->directorypermissions value varies with the $old_moodle_directorypermissions on the $new_moodle_directorypermissions."
	else
		new_moodle_directorypermissions="$old_moodle_directorypermissions"
	fi

	old_moodle_dataroot="`%_sbindir/mt-getCFG --file=%moodle_dir/config.php dataroot`"
	if (echo "$old_moodle_dataroot" | \
			egrep -q '^[[:space:]]*(%moodle_olddatadir|%moodle_olddatadir2)(/+)?[[:space:]]*$'); then
		new_moodle_dataroot="%moodle_datadir"
		rpmold_moodle_dataroot="`echo "$old_moodle_dataroot" | \
			sed -r 's@^[[:space:]]([^[:space:]]+[^/[:space:]])/*[[:space:]]*$@\1.rpmold@'`"
		echo "Warning: In the file %moodle_dir/config.php"
		echo "    path $old_moodle_dataroot replaced by %moodle_datadir."
	else
		new_moodle_dataroot="$old_moodle_dataroot"
		rpmold_moodle_dataroot=
	fi

	if [ "$old_moodle_dataroot" != "$new_moodle_dataroot" ] \
			|| [ "$old_moodle_directorypermissions" != "$new_moodle_directorypermissions" ]; then
		echo 'Original file %moodle_dir/config.php is saved as %moodle_dir/config.php.rpmold.'
		cp -fa --backup=t "%moodle_dir/config.php" "%moodle_dir/config.php.rpmold"

		if [ "$old_moodle_dataroot" != "$new_moodle_dataroot" ] \
				&& [ -e "$old_moodle_dataroot" ] \
				&& [ -d "$old_moodle_dataroot" ] \
				&& ( \
					( \
						[ -e "$new_moodle_dataroot" ] \
						&& [ -d "$new_moodle_dataroot" ] \
						&& [ "x`find "$new_moodle_dataroot" -mindepth 1 -maxdepth 1`" = "x" ] \
					) \
					|| ( \
						[ ! -e "$new_moodle_dataroot" ] \
					) \
				); then
			echo "Original directory $old_moodle_dataroot is renamed as $rpmold_moodle_dataroot."
			mv "$old_moodle_dataroot" "$rpmold_moodle_dataroot"

			echo "All contents of the directory $old_moodle_dataroot"
			echo "is copied to the $new_moodle_dataroot."
			%_sbindir/mt-newdatadir --file=%moodle_dir/config.php \
				-m 'rpm update to %name-base-%version-%release' \
				"$new_moodle_dataroot"
			pushd "$rpmold_moodle_dataroot"
				find . -mindepth 1 -maxdepth 1 -printf '%%f\0' \
					| xargs -r0 cp -af --target-directory="$new_moodle_dataroot/"
			popd

			chmod $new_moodle_directorypermissions "%moodle_domainsdir"
			chown root:%webserver_group "%moodle_domainsdir"
		fi

		if [ "$old_moodle_directorypermissions" != "$new_moodle_directorypermissions" ]; then
			%_sbindir/mt-setCFG --file=%moodle_dir/config.php --no-quote \
				-m 'rpm update to %name-base-%version-%release' \
				directorypermissions $new_moodle_directorypermissions
		fi
	fi

	if [ -e "$new_moodle_dataroot" ] \
			&& [ -d "$new_moodle_dataroot" ]; then
		if [ "x`find "$new_moodle_dataroot" -mindepth 1 -type d ! -perm $new_moodle_directorypermissions`" != "x" ]; then
			echo "Warning: Change permissions of subdirectories"
			echo "    $new_moodle_dataroot on the $new_moodle_directorypermissions."
			find "$new_moodle_dataroot" -mindepth 1 -type d ! -perm $new_moodle_directorypermissions -print0 \
				| xargs -0 chmod $new_moodle_directorypermissions
		fi

		if [ "x`find "$new_moodle_dataroot" -mindepth 1 ! -group %webserver_group`" != "x" ]; then
			echo "Warning: GUD files and subdirectories"
			echo "    $old_moodle_dataroot changed to %webserver_group."
			find "$new_moodle_dataroot" -mindepth 1 ! -group %webserver_group -print0 \
				| xargs -0 chgrp %webserver_group
		fi
	fi

	%_sbindir/web-condstart-rpm
fi
exit 0

%triggerun apache2 -- moodle-apache2 <= 1.9.10-alt2.cvs20101110
if [ -e %apache2_addonconfdir/A.%name.conf ]; then
	echo "Warning: The configuration file %apache2_addonconfdir/A.%name.conf"
	echo "   outdated and was saved as %apache2_addonconfdir/N.%name.conf.rpmold."
	echo "   Use %apache2_extra_available/%name.conf."
	mv %apache2_addonconfdir/A.%name.conf %apache2_addonconfdir/N.%name.conf.rpmold
fi
exit 0

#%post apache
#chown root:apache %moodle_dir/
#control apache-mod_php5 relaxed
#%_initdir/httpd reload

#%postun apache
#%_initdir/httpd reload

%files

%files base
%dir %attr(2775,root,%webserver_group) %moodle_dir/
%ghost %config(noreplace) %moodle_dir/config.php
%config(noreplace) %moodle_dir/install/distrolib.php
%moodle_dir/*
%exclude %moodle_authdir/pam/
#%exclude %moodle_moddir/journal/
#%exclude %moodle_moddir/hotpot/
#%exclude %moodle_questionformatdir/hotpot/
%dir %attr(2770,root,%webserver_group) %moodle_datadir/

#%files apache
#%config(noreplace) %_sysconfdir/httpd/conf/addon-modules.d/%name.conf

%files apache2
%config(noreplace) %apache2_extra_available/%name.conf
%ghost %apache2_extra_enabled/%name.conf
%config(noreplace) %apache2_confdir_inc/Directory_%{moodle_name}_default.conf
%config(noreplace) %apache2_extra_start/100-%name.conf
%config(noreplace) %apache2_mods_start/100-%name.conf

%files local-mysql

#%files local-pgsql

%files auth-pam
%moodle_authdir/pam/

%changelog
* Sat Mar 08 2014 Cronbuild Service <cronbuild@altlinux.org> 2.4.9.20140310-alt1
- repocop cronbuild 20140308. At your service.
- 2.4.9 (Build: 20140310)

* Fri Feb 21 2014 Cronbuild Service <cronbuild@altlinux.org> 2.4.8.20140220-alt1
- repocop cronbuild 20140221. At your service.
- 2.4.8+ (Build: 20140220)

* Sun Jan 12 2014 Cronbuild Service <cronbuild@altlinux.org> 2.4.8.20140113-alt1
- repocop cronbuild 20140112. At your service.
- 2.4.8 (Build: 20140113)

* Wed Dec 25 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131224-alt1
- repocop cronbuild 20131225. At your service.
- 2.4.7+ (Build: 20131224)

* Sat Dec 21 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131220-alt1
- repocop cronbuild 20131221. At your service.
- 2.4.7+ (Build: 20131220)

* Fri Dec 13 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131213-alt1
- repocop cronbuild 20131213. At your service.
- 2.4.7+ (Build: 20131213)

* Sat Dec 07 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131205-alt1
- repocop cronbuild 20131207. At your service.
- 2.4.7+ (Build: 20131205)

* Fri Nov 29 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131129-alt1
- repocop cronbuild 20131129. At your service.
- 2.4.7+ (Build: 20131129)

* Fri Nov 22 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131122-alt1
- repocop cronbuild 20131122. At your service.
- 2.4.7+ (Build: 20131122)

* Sat Nov 16 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131115-alt1
- repocop cronbuild 20131116. At your service.
- 2.4.7+ (Build: 20131115)

* Mon Nov 11 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.7.20131111-alt1
- repocop cronbuild 20131111. At your service.
- 2.4.7 (Build: 20131111)

* Sat Nov 09 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20131108-alt1
- repocop cronbuild 20131109. At your service.
- 2.4.6+ (Build: 20131108)

* Fri Nov 01 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20131101-alt1
- repocop cronbuild 20131101. At your service.
- 2.4.6+ (Build: 20131101)

* Fri Oct 25 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20131025-alt1
- repocop cronbuild 20131025. At your service.
- 2.4.6+ (Build: 20131025)

* Sun Oct 20 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20131018-alt1
- repocop cronbuild 20131020. At your service.
- 2.4.6+ (Build: 20131018)

* Fri Oct 11 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20131011-alt1
- repocop cronbuild 20131011. At your service.
- 2.4.6+ (Build: 20131011)

* Fri Oct 04 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20131004-alt1
- repocop cronbuild 20131004. At your service.
- 2.4.6+ (Build: 20131004)

* Fri Sep 27 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20130927-alt1
- repocop cronbuild 20130927. At your service.
- 2.4.6+ (Build: 20130927)

* Fri Sep 20 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20130920-alt1
- repocop cronbuild 20130920. At your service.
- 2.4.6+ (Build: 20130920)

* Fri Sep 13 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20130913-alt1
- repocop cronbuild 20130913. At your service.
- 2.4.6+ (Build: 20130913)

* Sun Sep 08 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.6.20130909-alt1
- repocop cronbuild 20130908. At your service.
- 2.4.6 (Build: 20130909)

* Fri Sep 06 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130905-alt1
- repocop cronbuild 20130906. At your service.
- 2.4.5+ (Build: 20130905)

* Sat Aug 31 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130830-alt1
- repocop cronbuild 20130831. At your service.
- 2.4.5+ (Build: 20130830)

* Fri Aug 23 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130823-alt1
- repocop cronbuild 20130823. At your service.
- 2.4.5+ (Build: 20130823)

* Fri Aug 16 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130815-alt1
- repocop cronbuild 20130816. At your service.
- 2.4.5+ (Build: 20130815)

* Thu Aug 08 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130808-alt1
- repocop cronbuild 20130808. At your service.
- 2.4.5+ (Build: 20130808)

* Fri Aug 02 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130802-alt1
- repocop cronbuild 20130802. At your service.
- 2.4.5+ (Build: 20130802)

* Sat Jul 27 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130726-alt1
- repocop cronbuild 20130727. At your service.
- 2.4.5+ (Build: 20130726)

* Fri Jul 19 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130719-alt1
- repocop cronbuild 20130719. At your service.
- 2.4.5+ (Build: 20130719)

* Sat Jul 13 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130712-alt1
- repocop cronbuild 20130713. At your service.
- 2.4.5+ (Build: 20130712)

* Tue Jul 09 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.5.20130708-alt1
- repocop cronbuild 20130709. At your service.
- 2.4.5 (Build: 20130708)

* Fri Jul 05 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130704-alt1
- repocop cronbuild 20130705. At your service.
- 2.4.4+ (Build: 20130704)

* Sat Jun 29 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130627-alt1
- repocop cronbuild 20130629. At your service.
- 2.4.4+ (Build: 20130627)

* Sun Jun 23 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130621-alt1
- repocop cronbuild 20130623. At your service.
- 2.4.4+ (Build: 20130621)

* Sat Jun 15 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130614-alt1
- repocop cronbuild 20130615. At your service.
- 2.4.4+ (Build: 20130614)

* Fri Jun 07 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130606-alt1
- repocop cronbuild 20130607. At your service.
- 2.4.4+ (Build: 20130606)

* Fri May 31 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130530-alt1
- repocop cronbuild 20130531. At your service.
- 2.4.4+ (Build: 20130530)

* Sat May 25 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130524-alt1
- repocop cronbuild 20130525. At your service.
- 2.4.4+ (Build: 20130524)

* Wed May 15 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.4.20130513-alt1
- repocop cronbuild 20130515. At your service.
- 2.4.4 (Build: 20130513)

* Mon May 13 2013 Aleksey Avdeev <solo@altlinux.ru> 2.4.3.20130510-alt2
- Change requires: MySQL-server to /usr/sbin/mysqld for mariadb
  compatibility in moodle2.4-local-mysql

* Sat May 11 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.3.20130510-alt1
- repocop cronbuild 20130511. At your service.
- 2.4.3+ (Build: 20130510)

* Thu May 09 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.3.20130502-alt1
- repocop cronbuild 20130509. At your service.
- 2.4.3+ (Build: 20130502)

* Thu Apr 18 2013 Cronbuild Service <cronbuild@altlinux.org> 2.4.3.20130411-alt1
- repocop cronbuild 20130418. At your service.
- 2.4.3+ (Build: 20130411)

* Wed Apr 17 2013 Aleksey Avdeev <solo@altlinux.ru> 2.4.3.20130318-alt1
- Rename package to moodle2.4
- 2.4.3 (Build: 20130318)

* Wed Apr 17 2013 Aleksey Avdeev <solo@altlinux.ru> 2.2.9.20130411-alt2
- Fix requires

* Fri Apr 12 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.9.20130411-alt1
- repocop cronbuild 20130412. At your service.
- 2.2.9+ (Build: 20130411)

* Sat Apr 06 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.9.20130405-alt1
- repocop cronbuild 20130406. At your service.
- 2.2.9+ (Build: 20130405)

* Fri Mar 29 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.9.20130328-alt1
- repocop cronbuild 20130329. At your service.
- 2.2.9+ (Build: 20130328)

* Fri Mar 22 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.9.20130322-alt1
- repocop cronbuild 20130322. At your service.
- 2.2.9+ (Build: 20130322)

* Sat Mar 16 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.9.20130318-alt1
- repocop cronbuild 20130316. At your service.
- 2.2.9 (Build: 20130318)

* Sat Mar 09 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.8.20130311-alt1
- repocop cronbuild 20130309. At your service.
- 2.2.8 (Build: 20130311)

* Fri Mar 08 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130307-alt1
- repocop cronbuild 20130308. At your service.
- 2.2.7+ (Build: 20130307)

* Sat Mar 02 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130228-alt1
- repocop cronbuild 20130302. At your service.
- 2.2.7+ (Build: 20130228)

* Sun Feb 24 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130222-alt1
- repocop cronbuild 20130224. At your service.
- 2.2.7+ (Build: 20130222)

* Sat Feb 16 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130214-alt1
- repocop cronbuild 20130216. At your service.
- 2.2.7+ (Build: 20130214)

* Sun Feb 10 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130208-alt1
- repocop cronbuild 20130210. At your service.
- 2.2.7+ (Build: 20130208)

* Fri Feb 01 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130131-alt1
- repocop cronbuild 20130201. At your service.
- 2.2.7+ (Build: 20130131)

* Sat Jan 26 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130125-alt1
- repocop cronbuild 20130126. At your service.
- 2.2.7+ (Build: 20130125)

* Fri Jan 18 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130118-alt1
- repocop cronbuild 20130118. At your service.
- 2.2.7+ (Build: 20130118)

* Sat Jan 12 2013 Cronbuild Service <cronbuild@altlinux.org> 2.2.7.20130114-alt1
- repocop cronbuild 20130112. At your service.
- 2.2.7 (Build: 20130114)

* Sun Dec 30 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121230-alt1
- repocop cronbuild 20121230. At your service.
- 2.2.6+ (Build: 20121230)

* Fri Dec 21 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121220-alt1
- repocop cronbuild 20121221. At your service.
- 2.2.6+ (Build: 20121220)

* Sat Dec 15 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121214-alt1
- repocop cronbuild 20121215. At your service.
- 2.2.6+ (Build: 20121214)

* Mon Dec 10 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121208-alt1
- repocop cronbuild 20121210. At your service.
- 2.2.6+ (Build: 20121208)

* Sat Dec 01 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121130-alt1
- repocop cronbuild 20121201. At your service.
- 2.2.6+ (Build: 20121130)

* Fri Nov 23 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121123-alt1
- repocop cronbuild 20121123. At your service.
- 2.2.6+ (Build: 20121123)

* Sat Nov 17 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121116-alt1
- repocop cronbuild 20121117. At your service.
- 2.2.6+ (Build: 20121116)

* Fri Nov 09 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121112-alt1
- repocop cronbuild 20121109. At your service.
- 2.2.6 (Build: 20121112)

* Thu Oct 18 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.6.20121018-alt1
- repocop cronbuild 20121018. At your service.
- 2.2.6+ (Build: 20121018)

* Mon Oct 15 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.5.20121014-alt1
- repocop cronbuild 20121015. At your service.
- 2.2.5+ (Build: 20121014)

* Sat Oct 06 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.5.20121005-alt1
- repocop cronbuild 20121006. At your service.
- 2.2.5+ (Build: 20121005)

* Mon Oct 01 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.5.20120927-alt1
- repocop cronbuild 20121001. At your service.
- 2.2.5+ (Build: 20120927)

* Fri Sep 21 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.5.20120920-alt1
- repocop cronbuild 20120921. At your service.
- 2.2.5+ (Build: 20120920)

* Sat Sep 15 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.5.20120914-alt1
- repocop cronbuild 20120915. At your service.
- 2.2.5+ (Build: 20120914)

* Sun Sep 09 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.5.20120910-alt1
- repocop cronbuild 20120909. At your service.
- 2.2.5 (Build: 20120910)

* Fri Sep 07 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120907-alt1
- repocop cronbuild 20120907. At your service.
- 2.2.4+ (Build: 20120907)

* Sat Sep 01 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120831-alt1
- repocop cronbuild 20120901. At your service.
- 2.2.4+ (Build: 20120831)

* Thu Aug 23 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120823-alt1
- repocop cronbuild 20120823. At your service.
- 2.2.4+ (Build: 20120823)

* Fri Aug 17 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120816-alt1
- repocop cronbuild 20120817. At your service.
- 2.2.4+ (Build: 20120816)

* Thu Aug 09 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120809-alt1
- repocop cronbuild 20120809. At your service.
- 2.2.4+ (Build: 20120809)

* Fri Aug 03 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120802-alt1
- repocop cronbuild 20120803. At your service.
- 2.2.4+ (Build: 20120802)

* Thu Jul 26 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120726-alt1
- repocop cronbuild 20120726. At your service.
- 2.2.4+ (Build: 20120726)

* Fri Jul 20 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120719-alt1
- repocop cronbuild 20120720. At your service.
- 2.2.4+ (Build: 20120719)

* Thu Jul 12 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120712-alt1
- repocop cronbuild 20120712. At your service.
- 2.2.4+ (Build: 20120712)

* Fri Jul 06 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.4.20120706-alt1
- repocop cronbuild 20120706. At your service.
- 2.2.4 (Build: 20120706)

* Tue Jul 03 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120701-alt1
- repocop cronbuild 20120703. At your service.
- 2.2.3+ (Build: 20120701)

* Sun Jun 24 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120624-alt1
- repocop cronbuild 20120624. At your service.
- 2.2.3+ (Build: 20120624)

* Sat Jun 16 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120615-alt1
- repocop cronbuild 20120616. At your service.
- 2.2.3+ (Build: 20120615)

* Tue Jun 12 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120612-alt1
- repocop cronbuild 20120612. At your service.
- 2.2.3+ (Build: 20120612)

* Sat Jun 02 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120601-alt1
- repocop cronbuild 20120602. At your service.
- 2.2.3+ (Build: 20120601)

* Sat May 26 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120525-alt1
- repocop cronbuild 20120526. At your service.
- 2.2.3+ (Build: 20120525)

* Sun May 20 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120519-alt1
- repocop cronbuild 20120520. At your service.
- 2.2.3+ (Build: 20120519)

* Sat May 19 2012 Aleksey Avdeev <solo@altlinux.ru> 2.2.3.20120514-alt2
- Fix requires for %%name subpackage
- Fix use %%name-lang-* package (see MDL-33100)

* Sat May 12 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.3.20120514-alt1
- repocop cronbuild 20120512. At your service.
- 2.2.3 (Build: 20120514)

* Wed May 09 2012 Aleksey Avdeev <solo@altlinux.ru> 2.2.2.20120504-alt2
- Move plugins to subpackage:
  + %%name-auth-pam

* Fri May 04 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120504-alt1
- repocop cronbuild 20120504. At your service.
- 2.2.2+ (Build: 20120504)

* Sat Apr 28 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120427-alt1
- repocop cronbuild 20120428. At your service.
- 2.2.2+ (Build: 20120427)

* Fri Apr 20 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120419-alt1
- repocop cronbuild 20120420. At your service.
- 2.2.2+ (Build: 20120419)

* Thu Apr 12 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120412-alt1
- repocop cronbuild 20120412. At your service.
- 2.2.2+ (Build: 20120412)

* Fri Apr 06 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120405-alt1
- repocop cronbuild 20120406. At your service.
- 2.2.2+ (Build: 20120405)

* Thu Mar 29 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120329-alt1
- repocop cronbuild 20120329. At your service.
- 2.2.2+ (Build: 20120329)

* Fri Mar 23 2012 Cronbuild Service <cronbuild@altlinux.org> 2.2.2.20120323-alt1
- repocop cronbuild 20120323. At your service.
- 2.2.2+ (Build: 20120323)

* Sun Mar 18 2012 Aleksey Avdeev <solo@altlinux.ru> 2.2.2.20120315-alt1
- Rename package to moodle2.2
- 2.2.2+ (Build: 20120315)

* Fri Mar 16 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.5.20120315-alt1
- repocop cronbuild 20120316. At your service.
- 2.1.5+ (Build: 20120315)

* Tue Mar 13 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.5.20120312-alt1
- repocop cronbuild 20120313. At your service.
- 2.1.5 (Build: 20120312)

* Sat Mar 10 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120309-alt1
- repocop cronbuild 20120310. At your service.
- 2.1.4+ (Build: 20120309)

* Fri Mar 02 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120301-alt1
- repocop cronbuild 20120302. At your service.
- 2.1.4+ (Build: 20120301)

* Thu Feb 23 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120223-alt1
- repocop cronbuild 20120223. At your service.
- 2.1.4+ (Build: 20120223)

* Tue Feb 21 2012 Aleksey Avdeev <solo@altlinux.ru> 2.1.4.20120217-alt3
- Fix %%triggerun for %%name-base
- Set %%ghost %%config(noreplace) for %%moodle_dir/config.php
  and %%config(noreplace) for %%moodle_dir/install/distrolib.php
- Fix installers ($defoptions->dataroot in %%moodle_dir/install/distrolib.php)

* Sun Feb 19 2012 Aleksey Avdeev <solo@altlinux.ru> 2.1.4.20120217-alt2
- Moodle datadir is moved to
  %%_localstatedir/%%moodle_name/%%moodle_defaultdatadirname

* Fri Feb 17 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120217-alt1
- repocop cronbuild 20120217. At your service.
- 2.1.4+ (Build: 20120217)

* Mon Feb 13 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120213-alt1
- repocop cronbuild 20120213. At your service.
- 2.1.4+ (Build: 20120213)

* Fri Feb 03 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120202-alt1
- repocop cronbuild 20120203. At your service.
- 2.1.4+ (Build: 20120202)

* Sat Jan 28 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120127-alt1
- repocop cronbuild 20120128. At your service.
- 2.1.4+ (Build: 20120127)

* Tue Jan 24 2012 Aleksey Avdeev <solo@altlinux.ru> 2.1.4.20120119-alt2
- Fix distrolib.php

* Sun Jan 22 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120119-alt1
- repocop cronbuild 20120122. At your service.
- 2.1.4+ (Build: 20120119)

* Sun Jan 22 2012 Aleksey Avdeev <solo@altlinux.ru> 2.1.4.20120109-alt2
- Update cronbuild use

* Thu Jan 12 2012 Cronbuild Service <cronbuild@altlinux.org> 2.1.4.20120109-alt1
- repocop cronbuild 20120112. At your service.
- 2.1.4 (Build: 20120109)

* Sat Dec 24 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.3.20111223-alt1
- repocop cronbuild 20111224. At your service.
- 2.1.3+ (Build: 20111223)

* Sat Dec 10 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.3.20111209-alt1
- repocop cronbuild 20111210. At your service.
- 2.1.3+ (Build: 20111209)

* Sat Dec 03 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.3.20111201-alt1
- repocop cronbuild 20111203. At your service.
- 2.1.3+ (Build: 20111201)

* Sun Nov 27 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.3.20111128-alt1
- repocop cronbuild 20111127. At your service.
- 2.1.3 (Build: 20111128)

* Fri Nov 18 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111118-alt1
- repocop cronbuild 20111118. At your service.
- 2.1.2+ (Build: 20111118)

* Tue Nov 15 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111115-alt1
- repocop cronbuild 20111115. At your service.
- 2.1.2+ (Build: 20111115)

* Thu Nov 03 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111102-alt1
- repocop cronbuild 20111103. At your service.
- 2.1.2+ (Build: 20111102)

* Fri Oct 28 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.2.20111027-alt2
- Update for cronbuild use

* Thu Oct 27 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111027-alt1
- repocop cronbuild 20111027. At your service.
- 2.1.2+ (Build: 20111027)

* Mon Oct 24 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.2.20111019-alt2
- Fix for cronbuild use

* Wed Oct 19 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111019-alt1
- repocop cronbuild 20111019. At your service.
- 2.1.2+ (Build: 20111019)

* Sat Oct 15 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111012-alt1
- repocop cronbuild 20111015. At your service.
- 2.1.2+ (Build: 20111012)

* Wed Oct 12 2011 Cronbuild Service <cronbuild@altlinux.org> 2.1.2.20111010-alt1
- repocop cronbuild 20111012. At your service.
- 2.1.2 (Build: 20111010)

* Wed Oct 12 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110928-alt5
- Fix for cronbuild use

* Tue Oct 11 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110928-alt4
- Fix for cronbuild use

* Mon Oct 10 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110928-alt3
- Fix for cronbuild use

* Thu Oct 06 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110928-alt2
- Fix for cronbuild use

* Wed Oct 05 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110928-alt1
- 2.1.1+ (Build: 20110928)

* Fri Sep 23 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110921-alt1
- 2.1.1+ (Build: 20110921)

* Wed Sep 21 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110916-alt1
- 2.1.1+ (Build: 20110916)

* Tue Sep 13 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110907-alt1
- 2.1.1+ (Build: 20110907)

* Mon Sep 05 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110831-alt1
- 2.1.1+ (Build: 20110831)
- Fix Conflicts for %%name-base

* Wed Aug 31 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110826-alt1
- 2.1.1+ (Build: 20110826)

* Thu Aug 25 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110817-alt4
- Fix subpackage provides

* Thu Aug 25 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110817-alt3
- Base part of Moodle highlighted in the %%name-base subpackage

* Tue Aug 23 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110817-alt2
- Add trigger for set $CFG->directorypermissions to 02770
- Fix trigger for update apache2 config

* Fri Aug 19 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110817-alt1
- 2.1.1+ (Build: 20110817)
- Settings directory %%moodle_dir moved to the
  %%apache2_confdir_inc/Directory_%%{moodle_name}_default.conf

* Sat Aug 13 2011 Aleksey Avdeev <solo@altlinux.ru> 2.1.1.20110811-alt1
- Rename package to moodle2.1
- 2.1.1+ (Build: 20110811)

* Fri Aug 12 2011 Aleksey Avdeev <solo@altlinux.ru> 2.0.4.20110811-alt1
- Rename package to moodle2.0
- 2.0.4+ (Build: 20110811)

* Thu Aug 11 2011 Aleksey Avdeev <solo@altlinux.ru> 1.9.13.20110803-alt1
- 1.9.13+ (Build: 20110803)
- GUD directory %%moodle_dir/ changed to %%webserver_group
- Moodle datadir is moved to %%_localstatedir/%%moodle_name
- To configure apache2 using %%apache2_extra_available/%%name.conf,
  instead of %%apache2_addonconfdir/A.%%name.conf
- Return return lang/en_utf8 to package

* Tue Nov 23 2010 Alexandra Panyukova <mex3@altlinux.ru> 1.9.10-alt2.cvs20101110
- inheritance fixed

* Thu Nov 11 2010 Alexandra Panyukova <mex3@altlinux.ru> 1.9.10-alt1.cvs20101110
- new version

* Tue Oct 27 2009 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.6-alt1.cvs20091021
- new security and bugfix version

* Tue Jul 28 2009 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.5-alt4.cvs20090726
- fix spec in section post preun

* Tue Jul 28 2009 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.5-alt2.cvs20090726
- fix spec

* Sun Jul 26 2009 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.5-alt1.cvs20090726
- security fix cvs update

* Sat Apr 18 2009 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.4-alt1.cvs20090415
- security fix cvs update

* Sun Apr 12 2009 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.4-alt1.cvs20090408
- security fix version

* Mon Dec 15 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.3-alt2.cvs20081210
- set permissions on /var/webapps/moodlemata to root:_webmaster by WebPolicy

* Thu Dec 11 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.3-alt1.cvs20081210
- weekly bug fix build from cvs

* Thu Oct 16 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.3-alt1
- security fix version

* Mon Oct 13 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.2-alt1.cvs20081008
- weekly bug fix build from cvs

* Mon Sep 08 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.2-alt1.cvs20080903
- build from cvs
- remove lang/en_utf8 to package

* Wed Aug 27 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.2-alt1.cvs20080827
- build from cvs
- MDL-16061   Remove 'username' from the $moodleattributes array
- MDL-14453   Smilies from HTML editor seem to be relative URLs and thus break in email
- MDL-15304   Labels with nothing but tags in them don't work
- MDL-9983    trigger certain events out of the core to modules
- MDL-14565   Give modules the ability to add whole trees of settings pages to the admin menu of they want.
- MDL-8912    Review 17_STABLE and 18_STABLE 19_STABLE Unmerged Files before July 1.9.2 release
- MDL-14201   Summary graph
- MDL-13861   lib/statslib SQL errors under Oracle
- MDL-15203   Theme credits require updating
- MDL-12809   $CATEGORY label doesn't work in GIFT
- MDL-14697   Participants page OK button is redundant
- MDL-15473   Moodle Format image tags are ignored if there is no image (base_64) information
- MDL-12392   Manual grading report does not recognise global role assignments of students
- MDL-14200   Add group and course averages
- MDL-7772    Quiz results overview: not all combinations of Show attempts with ... & Groups settings work properly
- MDL-13678   Change default number of rows per page on quiz reports
- MDL-14764   Imported multichoice questions may have a blank answernumbering value, which results in an "ERR" prefix to all answers' text.
- MDL-13927   Indicate missing parent languages on lang pack import page

* Thu Jul 31 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.2-alt1.cvs20080730
- build from cvs
- MDL-15787   Using hidden feedbacks on front page
- MDL-8270    Full block backup/restore routine with code
- MDL-14261   User denied access to view site logs when moodle/site:viewreports allowed in the system context
- MDL-15544   Disable email signup in new installation - add danger warning
- MDL-14932   Improve  accessibility of 'assign role' button and the consistency of the UI in bulk user actions page
- MDL-15610   mtable entry for \mod\label\db\install.xml should be label not quiz
- MDL-15601   Check for things before trying to use them to avoid notices
- MDL-15198   non-standard sql in reportlib.php
- MDL-15034   course restore as admin overwrites front page
- MDL-15689   Backup/restore process does not keep the categories in the gradebook
- MDL-15080   char to int cast problem in get_recent_enrolments()
- MDL-13942   Cannot restore course that contains groups
- MDL-14453   Smilies from HTML editor seem to be relative URLs and thus break in email
- MDL-13261   get_context_users_by_cap has some problems
- MDL-13811   Add a confirmation step when a user changes their own email address in their profile.
- MDL-14233   Make bulk user picture upload handle subdirectories in zip files (with patch)
- MDL-14279   Use get_file_url instead of manual slasharguments check
- MDL-14035   Grader report doesn't respect the user->picture field...
- MDL-13343   When deleting a course category, it will also delete all courses in that category
- MDL-14999   Patch fixing various HTMLarea issues
- MDL-15389   add info concerning spam dangers of open profiles
- MDL-8912    Review 17_STABLE and 18_STABLE 19_STABLE Unmerged Files before July 1.9.2 release
- MDL-10586   $table->head of admin/user.php needs some fix.
- MDL-10633   Event names in Calendar are not properly escaped with recursive_stripslashes
- MDL-14838   Bad packaging of /mod/wiki/overridelock.php

* Fri Jul 11 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.2-alt1
- new security fix version
- MDL-15184: sql injection in HotPot module
- MDL-15413: Potential webroot disclosures warning
- MDL-15079: Potential non-persistent XSS when searching for group members (MSSQL and Oracle only)
- MDL-15552: potential sql injection in events handling code
- MDL-15516: profiles of deleted users were accessible
- MDL-13811: Email could be changed in profile without confirmation

* Fri Jul 11 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt6.cvs20080711.1
- build from last week cvs
- MDL-14820   Bad XHTML when deleting directory
- MDL-14173   Oracle NLS_NUMERIC_CHARACTERS break TESTs, config settings from Oct/07 help!
- MDL-11629   Oracle can't store multiple choice fractional value questions.
- MDL-10974   Infinite loop in enrol/database/enrol.php syncronization code
- MDL-13860   ADL Scorm 2004 LMS Conformance Test
- MDL-13343   When deleting a course category, it will also delete all courses in that category
- MDL-14378   When deleting course category deal with everything that depends on its context
- MDL-14439   Drop down menus not usable and not accessible in IE using keyboard only
- MDL-9655    database module preset importer eats html
- MDL-9684    sort field in database preset import/export
- MDL-13618   Restore: Gradebook - fix restore so that individual grade exclusions are restored to 1.9 gradebook as excluded
- MDL-12842   Gradebook fails to properly calculate score when using "drop X lowest" and "exclude assignment"
- MDL-13900   Course-access partially not working correctly
- MDL-14466   Preset importer throws error
- MDL-15524   Manual grade items with calculations not restoring properly.
- MDL-14841   Grade item calculation formula not restored properly

* Mon Jul 07 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt6.cvs20080702
- fix path to moodledata
- fix mimetex filter

* Fri Jul 04 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt5.cvs20080702
- fix httpd.conf

* Wed Jul 02 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt4.cvs20080702
- fix httpd(2).conf

* Wed Jul 02 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt3.cvs20080702
- remove .httaccess and add config php to http(2).conf
- last week cvs
- MDL-15029   Create an enrollment plug-in to create a group for each new user
- MDL-13321   Improve forum tracking related code in cron
- MDL-14525   bad result in the Excel after download
- MDL-14439   Drop down menus not usable and not accessible in IE using keyboard only
- MDL-12300   message window does not show date
- MDL-13796   Captcha element for registration form
- MDL-7407    Add turing number into email signup form

* Fri Jun 27 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt2.cvs20080625
- add .htaccess

* Fri Jun 27 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt1.1.cvs20080625
- rebuild with fix moodle.spec

* Thu Jun 26 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt1.cvs20080625
- new version from cvs
- change install path to /var/www/webapps
- MDL-14342   Quotes mismatch leads to print "$cid" instead of the value of  $cid
- MDL-14525   bad result in the Excel after download
- MDL-15029   Create an enrollment plug-in to create a group for each new user
- MDL-15331   Feedback fails to remove slashes when editing questions in 1.9.
- MDL-14336   mdl_data's defaultsort ID not set properly at importing preset.zip
- MDL-14378   When deleting course category deal with everything that depends on its context
- MDL-14525   bad result in the Excel after download
- MDL-10038   Forum Tracking - Logic and Links are wrong
- MDL-14328   Global Search : Initial settings when installing do not allow finding the converters, even if additional libs have been copied in.
- MDL-14804   question_list_instances is broken
- MDL-14223   Add a column for the user's idnumber, controllable by a site-wide setting
- MDL-15234   exported questions from moodle 1.8 will not be imported correctly on moodle 1.9
- MDL-14104   Make generate_password() respect password complexity policies (with patch)
- MDL-15029   Create an enrollment plug-in to create a group for each new user
- MDL-13900   Course-access partially not working correctly
- MDL-9907    Make it possible to have the ##user## (=author) a sortable and searchable field
- MDL-15202   The item textarea print out a notice while the excelexport if there are no values
- MDL-14235   On logging in an image appeary instead of the moodle page. always works correctly the second try.
- MDL-15186   when editing questions, fields appears blank on php4
- MDL-14557   PostgreSQL+empty integer problem: user/editadvanced_form.php
- MDL-12531   Add "institution" to lockable fields (admin/auth_config.php)

* Mon Jun 02 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt1.1.cvs20080528
- rebuild with spec correction

* Mon Jun 02 2008 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.9.1-alt1.cvs20080528
- new version from cvs

* Tue Jun 05 2007 Vladimir A. Svyatoshenko <svyt@altlinux.ru> 1.8.1-alt1
- built for ALT Linux