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
# vim: set ft=spec: -*- rpm-spec -*- # %%branch_switch set %%branch_release use #%%define branch_switch Mxx %define moodlebranch 2.0 #Name: moodle%moodlebranch-lang-cronbuild Name: moodle2.0-lang-cronbuild Version: 0.1.0 Release: %branch_release alt1 Summary: Shell functions for moodle-lang cronbuild scripts License: %gpl2plus Group: Development/Other Packager: Aleksey Avdeev <solo@altlinux.ru> BuildArch: noarch Source: sh-functions Source1: moodle%moodlebranch.lang.xslt Requires: %_bindir/moodle-lang-cronbuild-common-sh-functions Requires: %moodle_lang_cronbuildcommondir Requires: cronbuild-sh-functions >= 0.1.0 Requires: perl-Gear-Rules >= 0.08-alt4 Requires: xsltproc BuildRequires(pre): rpm-macros-branch BuildRequires(pre): rpm-macros-moodle-lang-cronbuild-common BuildPreReq: rpm-build-licenses %description %summary %install install -pD -m644 %SOURCE0 %buildroot%_bindir/%name-sh-functions install -pD -m644 %SOURCE1 %buildroot%moodle_lang_cronbuildcommondir/moodle%moodlebranch.lang.xslt find %buildroot%_bindir -type f -print0 \ | xargs -0 sed -i -r '/^.*%%/{ s@(^|[^%%])%%moodle_lang_cronbuildcommondir([^a-zA-Z0-9_]|$)@\1%moodle_lang_cronbuildcommondir\2@ s@(^|[^%%])%%moodlebranch([^a-zA-Z0-9_]|$)@\1%moodlebranch\2@ }' %files %_bindir/* %moodle_lang_cronbuildcommondir/* %changelog * Tue Nov 29 2011 Aleksey Avdeev <solo@altlinux.ru> 0.1.0-alt1 - Pulling maintainer srpms branch * Sun Nov 13 2011 Aleksey Avdeev <solo@altlinux.ru> 0.0.1-alt1 - Initial build for ALT Linux Sisyphus