drupal-theme-misc/drupal-theme-misc.spec

changeset 533
6dd4e923a3c9
child 534
d2d0020cfafa
equal deleted inserted replaced
-1:000000000000 0:1b43f2da9c2b
1 ##
2 ## drupal-theme-misc.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
23
24 # package versions (core)
25 %define V_drupal 6.x
26
27 # package versions (themes)
28 %define V_theme_alek_2_0 6.x-1.x-dev
29 %define V_theme_amadou 6.x-1.4
30 %define V_theme_barlow 6.x-1.4
31 %define V_theme_barron 6.x-2.3
32 %define V_theme_bluebreeze 6.x-1.x-dev
33 %define V_theme_deco 6.x-1.1
34 %define V_theme_framework 6.x-3.3
35 %define V_theme_fourseasons 6.x-2.0
36 %define V_theme_nista 6.x-4.8
37 %define V_theme_sky 6.x-3.11
38 %define V_theme_zen 6.x-2.1
39
40 # package information
41 Name: drupal-theme-misc
42 Summary: Drupal CMS: Theme Collection
43 URL: http://www.drupal.org/
44 Vendor: Drupal Community et al.
45 Packager: OpenPKG Foundation e.V.
46 Distribution: OpenPKG Community
47 Class: PLUS
48 Group: CMS
49 License: GPL
50 Version: %{V_drupal}
51 Release: 20120809
52
53 # list of sources
54 Source0: http://ftp.drupal.org/files/projects/alek_2_0-%{V_theme_alek_2_0}.tar.gz
55 Source1: http://ftp.drupal.org/files/projects/amadou-%{V_theme_amadou}.tar.gz
56 Source2: http://ftp.drupal.org/files/projects/barlow-%{V_theme_barlow}.tar.gz
57 Source3: http://ftp.drupal.org/files/projects/barron-%{V_theme_barron}.tar.gz
58 Source4: http://ftp.drupal.org/files/projects/bluebreeze-%{V_theme_bluebreeze}.tar.gz
59 Source5: http://ftp.drupal.org/files/projects/deco-%{V_theme_deco}.tar.gz
60 Source6: http://ftp.drupal.org/files/projects/framework-%{V_theme_framework}.tar.gz
61 Source7: http://ftp.drupal.org/files/projects/fourseasons-%{V_theme_fourseasons}.tar.gz
62 Source8: http://ftp.drupal.org/files/projects/nista-%{V_theme_nista}.tar.gz
63 Source9: http://ftp.drupal.org/files/projects/sky-%{V_theme_sky}.tar.gz
64 Source10: http://ftp.drupal.org/files/projects/zen-%{V_theme_zen}.tar.gz
65
66 # build information
67 BuildPreReq: OpenPKG, openpkg >= 20100101
68 PreReq: OpenPKG, openpkg >= 20100101, drupal
69
70 %description
71 This is a collection of reusable "themes" for the Drupal CMS.
72
73 %track
74 prog drupal-theme-misc:theme_alek_2_0 = {
75 version = %{V_theme_alek_2_0}
76 url = http://ftp.drupal.org/files/projects/
77 regex = alek_2_0-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
78 }
79 prog drupal-theme-misc:theme_amadou = {
80 version = %{V_theme_amadou}
81 url = http://ftp.drupal.org/files/projects/
82 regex = amadou-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
83 }
84 prog drupal-theme-misc:theme_barlow = {
85 version = %{V_theme_barlow}
86 url = http://ftp.drupal.org/files/projects/
87 regex = barlow-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
88 }
89 prog drupal-theme-misc:theme_barron = {
90 version = %{V_theme_barron}
91 url = http://ftp.drupal.org/files/projects/
92 regex = barron-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
93 }
94 prog drupal-theme-misc:theme_bluebreeze = {
95 version = %{V_theme_bluebreeze}
96 url = http://ftp.drupal.org/files/projects/
97 regex = bluebreeze-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
98 }
99 prog drupal-theme-misc:theme_deco = {
100 version = %{V_theme_deco}
101 url = http://ftp.drupal.org/files/projects/
102 regex = deco-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
103 }
104 prog drupal-theme-misc:theme_framework = {
105 version = %{V_theme_framework}
106 url = http://ftp.drupal.org/files/projects/
107 regex = framework-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
108 }
109 prog drupal-theme-misc:theme_fourseasons = {
110 version = %{V_theme_fourseasons}
111 url = http://ftp.drupal.org/files/projects/
112 regex = fourseasons-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
113 }
114 prog drupal-theme-misc:theme_nista = {
115 version = %{V_theme_nista}
116 url = http://ftp.drupal.org/files/projects/
117 regex = nista-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
118 }
119 prog drupal-theme-misc:theme_sky = {
120 version = %{V_theme_sky}
121 url = http://ftp.drupal.org/files/projects/
122 regex = sky-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
123 }
124 prog drupal-theme-misc:theme_zen = {
125 version = %{V_theme_zen}
126 url = http://ftp.drupal.org/files/projects/
127 regex = zen-(6\.x-\d+(?:\.\d+)+)\.tar\.gz
128 }
129
130 %prep
131 %setup -q -c -T
132 %{l_tar} xfz %{SOURCE0}
133 %{l_tar} xfz %{SOURCE1}
134 %{l_tar} xfz %{SOURCE2}
135 %{l_tar} xfz %{SOURCE3}
136 %{l_tar} xfz %{SOURCE4}
137 %{l_tar} xfz %{SOURCE5}
138 %{l_tar} xfz %{SOURCE6}
139 %{l_tar} xfz %{SOURCE7}
140 %{l_tar} xfz %{SOURCE8}
141 %{l_tar} xfz %{SOURCE9}
142 %{l_tar} xfz %{SOURCE10}
143
144 %build
145
146 %install
147 # create installation hierarchy
148 %{l_shtool} mkdir -f -p -m 755 \
149 $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/all/themes
150
151 # avoid copying unnecessary text files
152 find . -name "*.orig" -print | xargs rm -f
153 rm -f CHANGELOG.txt COPYRIGHT.txt INSTALL.*.txt INSTALL.txt
154 rm -f LICENSE.txt MAINTAINERS.txt UPGRADE.txt
155
156 # install all files (and strip down installation afterwards)
157 cp -rp * \
158 $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/all/themes/
159
160 # determine installation files
161 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
162 %{l_files_std} \
163 '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/share/drupal'
164
165 %files -f files
166
167 %clean
168

mercurial