Sat, 27 Oct 2012 18:43:28 +0200
Introduce custom patch logic, starting with disabling front page avatars.
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 ##
24 # package versions (core)
25 %define V_drupal 7.x
27 # package versions (themes)
28 %define V_theme_acquiamarina 7.x-2.0-beta1
29 %define V_theme_andromeda 7.x-2.x-dev
30 %define V_theme_basic 7.x-2.1
31 %define V_theme_bluemasters 7.x-1.3
32 %define V_theme_business 7.x-1.8
33 %define V_theme_businessblog 7.x-1.0-alpha1
34 %define V_theme_corolla 7.x-3.0-rc1
35 %define V_theme_corporateclean 7.x-1.5
36 %define V_theme_danland 7.x-1.0
37 %define V_theme_deco 7.x-1.x-dev
38 %define V_theme_domicile 7.x-1.0
39 %define V_theme_doune 7.x-2.0-alpha3
40 %define V_theme_eco 7.x-2.18
41 %define V_theme_framework 7.x-3.6
42 %define V_theme_fourseasons 7.x-1.x-dev
43 %define V_theme_graze 7.x-1.0
44 %define V_theme_marinelli 7.x-3.0-beta11
45 %define V_theme_mayo 7.x-1.2
46 %define V_theme_mayumi 7.x-1.0
47 %define V_theme_omega 7.x-3.1
48 %define V_theme_plato 7.x-1.0
49 %define V_theme_premcorp 7.x-1.0
50 %define V_theme_rootcandy 7.x-1.0-alpha1
51 %define V_theme_sankofa 7.x-1.0
52 %define V_theme_sigmaone 7.x-1.0-alpha17
53 %define V_theme_sky 7.x-3.0-rc1
54 %define V_theme_touch 7.x-1.7
55 %define V_theme_tapestry 7.x-2.1
56 %define V_theme_velvetsky 7.x-0.x-dev
57 %define V_theme_zen 7.x-5.1
58 %define V_theme_adaptive 7.x-3.1
59 %define V_theme_groundwork 7.x-1.2
60 %define V_theme_fusion 7.x-2.0-beta2
61 %define V_theme_om 7.x-2.21
62 %define V_theme_sasson 7.x-2.6
63 %define V_theme_skeleton 7.x-1.1
64 %define V_theme_journalcrunch 7.x-1.1
65 %define V_theme_magazeenlite 7.x-1.1
67 # package information
68 Name: drupal-theme-misc
69 Summary: Drupal CMS: Theme Collection
70 URL: http://www.drupal.org/
71 Vendor: Drupal Community et al.
72 Packager: OpenPKG Foundation e.V.
73 Distribution: OpenPKG Community
74 Class: PLUS
75 Group: CMS
76 License: GPL
77 Version: %{V_drupal}
78 Release: 20120800
80 # package options
81 %option with_custom yes
83 # list of sources
84 Source0: ftp://ftp.drupal.org/pub/drupal/files/projects/andromeda-%{V_theme_andromeda}.tar.gz
85 Source1: ftp://ftp.drupal.org/pub/drupal/files/projects/acquia_marina-%{V_theme_acquiamarina}.tar.gz
86 Source2: ftp://ftp.drupal.org/pub/drupal/files/projects/basic-%{V_theme_basic}.tar.gz
87 Source3: ftp://ftp.drupal.org/pub/drupal/files/projects/bluemasters-%{V_theme_bluemasters}.tar.gz
88 Source4: ftp://ftp.drupal.org/pub/drupal/files/projects/business-%{V_theme_business}.tar.gz
89 Source5: ftp://ftp.drupal.org/pub/drupal/files/projects/business_blog-%{V_theme_businessblog}.tar.gz
90 Source6: ftp://ftp.drupal.org/pub/drupal/files/projects/corolla-%{V_theme_corolla}.tar.gz
91 Source7: ftp://ftp.drupal.org/pub/drupal/files/projects/corporateclean-%{V_theme_corporateclean}.tar.gz
92 Source8: ftp://ftp.drupal.org/pub/drupal/files/projects/danland-%{V_theme_danland}.tar.gz
93 Source9: ftp://ftp.drupal.org/pub/drupal/files/projects/deco-%{V_theme_deco}.tar.gz
94 Source10: ftp://ftp.drupal.org/pub/drupal/files/projects/domicile-%{V_theme_domicile}.tar.gz
95 Source11: ftp://ftp.drupal.org/pub/drupal/files/projects/doune-%{V_theme_doune}.tar.gz
96 Source12: ftp://ftp.drupal.org/pub/drupal/files/projects/eco-%{V_theme_eco}.tar.gz
97 Source13: ftp://ftp.drupal.org/pub/drupal/files/projects/framework-%{V_theme_framework}.tar.gz
98 Source14: ftp://ftp.drupal.org/pub/drupal/files/projects/fourseasons-%{V_theme_fourseasons}.tar.gz
99 Source15: ftp://ftp.drupal.org/pub/drupal/files/projects/graze-%{V_theme_graze}.tar.gz
100 Source16: ftp://ftp.drupal.org/pub/drupal/files/projects/marinelli-%{V_theme_marinelli}.tar.gz
101 Source17: ftp://ftp.drupal.org/pub/drupal/files/projects/mayo-%{V_theme_mayo}.tar.gz
102 Source18: ftp://ftp.drupal.org/pub/drupal/files/projects/mayumi-%{V_theme_mayumi}.tar.gz
103 Source19: ftp://ftp.drupal.org/pub/drupal/files/projects/omega-%{V_theme_omega}.tar.gz
104 Source20: ftp://ftp.drupal.org/pub/drupal/files/projects/plato-%{V_theme_plato}.tar.gz
105 Source21: ftp://ftp.drupal.org/pub/drupal/files/projects/premium_corporate-%{V_theme_premcorp}.tar.gz
106 Source22: ftp://ftp.drupal.org/pub/drupal/files/projects/rootcandy-%{V_theme_rootcandy}.tar.gz
107 Source23: ftp://ftp.drupal.org/pub/drupal/files/projects/sankofa-%{V_theme_sankofa}.tar.gz
108 Source24: ftp://ftp.drupal.org/pub/drupal/files/projects/sigmaone-%{V_theme_sigmaone}.tar.gz
109 Source25: ftp://ftp.drupal.org/pub/drupal/files/projects/sky-%{V_theme_sky}.tar.gz
110 Source26: ftp://ftp.drupal.org/pub/drupal/files/projects/touch-%{V_theme_touch}.tar.gz
111 Source27: ftp://ftp.drupal.org/pub/drupal/files/projects/tapestry-%{V_theme_tapestry}.tar.gz
112 Source28: ftp://ftp.drupal.org/pub/drupal/files/projects/velvetsky-%{V_theme_velvetsky}.tar.gz
113 Source29: ftp://ftp.drupal.org/pub/drupal/files/projects/zen-%{V_theme_zen}.tar.gz
114 Source30: ftp://ftp.drupal.org/pub/drupal/files/projects/adaptivetheme-%{V_theme_adaptive}.tar.gz
115 Source31: ftp://ftp.drupal.org/pub/drupal/files/projects/groundwork-%{V_theme_groundwork}.tar.gz
116 Source32: ftp://ftp.drupal.org/pub/drupal/files/projects/fusion-%{V_theme_fusion}.tar.gz
117 Source33: ftp://ftp.drupal.org/pub/drupal/files/projects/om-%{V_theme_om}.tar.gz
118 Source34: ftp://ftp.drupal.org/pub/drupal/files/projects/sasson-%{V_theme_sasson}.tar.gz
119 Source35: ftp://ftp.drupal.org/pub/drupal/files/projects/skeletontheme-%{V_theme_skeleton}.tar.gz
120 Source36: ftp://ftp.drupal.org/pub/drupal/files/projects/journalcrunch-%{V_theme_journalcrunch}.tar.gz
121 Source37: ftp://ftp.drupal.org/pub/drupal/files/projects/magazeen_lite-%{V_theme_magazeenlite}.tar.gz
122 Patch0: drupal-theme-misc.patch.cust
124 # build information
125 BuildPreReq: OpenPKG, openpkg >= 20100101
126 PreReq: OpenPKG, openpkg >= 20100101, drupal
128 %description
129 This is a collection of reusable themes for the Drupal CMS.
130 Additionally, customized logic is provided for various behaviour.
132 %track
133 prog drupal-theme-misc:theme_acquiamarina = {
134 version = %{V_theme_acquiamarina}
135 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
136 regex = acquia_marina-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
137 }
138 prog drupal-theme-misc:theme_andromeda = {
139 version = %{V_theme_andromeda}
140 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
141 regex = andromeda-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
142 }
143 prog drupal-theme-misc:theme_basic = {
144 version = %{V_theme_basic}
145 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
146 regex = basic-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
147 }
148 prog drupal-theme-misc:theme_bluemasters = {
149 version = %{V_theme_bluemasters}
150 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
151 regex = bluemasters-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
152 }
153 prog drupal-theme-misc:theme_business = {
154 version = %{V_theme_business}
155 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
156 regex = business-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
157 }
158 prog drupal-theme-misc:theme_businessblog = {
159 version = %{V_theme_businessblog}
160 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
161 regex = business_blog-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
162 }
163 prog drupal-theme-misc:theme_corolla = {
164 version = %{V_theme_corolla}
165 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
166 regex = corolla-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
167 }
168 prog drupal-theme-misc:theme_corporateclean = {
169 version = %{V_theme_corporateclean}
170 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
171 regex = corporateclean-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
172 }
173 prog drupal-theme-misc:theme_danland = {
174 version = %{V_theme_danland}
175 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
176 regex = danland-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
177 }
178 prog drupal-theme-misc:theme_deco = {
179 version = %{V_theme_deco}
180 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
181 regex = deco-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
182 }
183 prog drupal-theme-misc:theme_domicile = {
184 version = %{V_theme_domicile}
185 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
186 regex = domicile-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
187 }
188 prog drupal-theme-misc:theme_doune = {
189 version = %{V_theme_doune}
190 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
191 regex = doune-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
192 }
193 prog drupal-theme-misc:theme_eco = {
194 version = %{V_theme_eco}
195 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
196 regex = eco-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
197 }
198 prog drupal-theme-misc:theme_framework = {
199 version = %{V_theme_framework}
200 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
201 regex = framework-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
202 }
203 prog drupal-theme-misc:theme_fourseasons = {
204 version = %{V_theme_fourseasons}
205 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
206 regex = fourseasons-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
207 }
208 prog drupal-theme-misc:theme_graze = {
209 version = %{V_theme_graze}
210 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
211 regex = graze-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
212 }
213 prog drupal-theme-misc:theme_marinelli = {
214 version = %{V_theme_marinelli}
215 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
216 regex = marinelli-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
217 }
218 prog drupal-theme-misc:theme_mayo = {
219 version = %{V_theme_mayo}
220 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
221 regex = mayo-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
222 }
223 prog drupal-theme-misc:theme_mayumi = {
224 version = %{V_theme_mayumi}
225 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
226 regex = mayumi-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
227 }
228 prog drupal-theme-misc:theme_omega = {
229 version = %{V_theme_omega}
230 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
231 regex = omega-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
232 }
233 prog drupal-theme-misc:theme_plato = {
234 version = %{V_theme_plato}
235 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
236 regex = plato-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
237 }
238 prog drupal-theme-misc:theme_premcorp = {
239 version = %{V_theme_premcorp}
240 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
241 regex = premium_corporate-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
242 }
243 prog drupal-theme-misc:theme_rootcandy = {
244 version = %{V_theme_rootcandy}
245 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
246 regex = rootcandy-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
247 }
248 prog drupal-theme-misc:theme_sankofa = {
249 version = %{V_theme_sankofa}
250 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
251 regex = sankofa-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
252 }
253 prog drupal-theme-misc:theme_sigmaone = {
254 version = %{V_theme_sigmaone}
255 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
256 regex = sigmaone-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
257 }
258 prog drupal-theme-misc:theme_sky = {
259 version = %{V_theme_sky}
260 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
261 regex = sky-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
262 }
263 prog drupal-theme-misc:theme_touch = {
264 version = %{V_theme_touch}
265 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
266 regex = touch-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
267 }
268 prog drupal-theme-misc:theme_tapestry = {
269 version = %{V_theme_tapestry}
270 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
271 regex = tapestry-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
272 }
273 prog drupal-theme-misc:theme_velvetsky = {
274 version = %{V_theme_velvetsky}
275 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
276 regex = velvetsky-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
277 }
278 prog drupal-theme-misc:theme_zen = {
279 version = %{V_theme_zen}
280 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
281 regex = zen-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
282 }
283 prog drupal-theme-misc:theme_adaptive = {
284 version = %{V_theme_adaptive}
285 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
286 regex = adaptive-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
287 }
288 prog drupal-theme-misc:theme_groundwork = {
289 version = %{V_theme_groundwork}
290 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
291 regex = groundwork-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
292 }
293 prog drupal-theme-misc:theme_fusion = {
294 version = %{V_theme_fusion}
295 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
296 regex = fusion-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
297 }
298 prog drupal-theme-misc:theme_om = {
299 version = %{V_theme_om}
300 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
301 regex = om-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
302 }
303 prog drupal-theme-misc:theme_sasson = {
304 version = %{V_theme_sasson}
305 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
306 regex = sasson-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
307 }
308 prog drupal-theme-misc:theme_skeletontheme = {
309 version = %{V_theme_skeletontheme}
310 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
311 regex = skeletontheme-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
312 }
313 prog drupal-theme-misc:theme_journalcrunch = {
314 version = %{V_theme_journalcrunch}
315 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
316 regex = journalcrunch-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
317 }
318 prog drupal-theme-misc:theme_magazeen_lite = {
319 version = %{V_theme_magazeen_lite}
320 url = ftp://ftp.drupal.org/pub/drupal/files/projects/
321 regex = magazeen_lite-(7\.x-\d+(?:\.\d+)+)\.tar\.gz
322 }
324 %prep
325 %setup -q -c -T
326 %{l_tar} xfz %{SOURCE0}
327 %{l_tar} xfz %{SOURCE1}
328 %{l_tar} xfz %{SOURCE2}
329 %{l_tar} xfz %{SOURCE3}
330 %{l_tar} xfz %{SOURCE4}
331 %{l_tar} xfz %{SOURCE5}
332 %{l_tar} xfz %{SOURCE6}
333 %{l_tar} xfz %{SOURCE7}
334 %{l_tar} xfz %{SOURCE8}
335 %{l_tar} xfz %{SOURCE9}
336 %{l_tar} xfz %{SOURCE10}
337 %{l_tar} xfz %{SOURCE11}
338 %{l_tar} xfz %{SOURCE12}
339 %{l_tar} xfz %{SOURCE13}
340 %{l_tar} xfz %{SOURCE14}
341 %{l_tar} xfz %{SOURCE15}
342 %{l_tar} xfz %{SOURCE16}
343 %{l_tar} xfz %{SOURCE17}
344 %{l_tar} xfz %{SOURCE18}
345 %{l_tar} xfz %{SOURCE19}
346 %{l_tar} xfz %{SOURCE20}
347 %{l_tar} xfz %{SOURCE21}
348 %{l_tar} xfz %{SOURCE22}
349 %{l_tar} xfz %{SOURCE23}
350 %{l_tar} xfz %{SOURCE24}
351 %{l_tar} xfz %{SOURCE25}
352 %{l_tar} xfz %{SOURCE26}
353 %{l_tar} xfz %{SOURCE27}
354 %{l_tar} xfz %{SOURCE28}
355 %{l_tar} xfz %{SOURCE29}
356 %{l_tar} xfz %{SOURCE30}
357 %{l_tar} xfz %{SOURCE31}
358 %{l_tar} xfz %{SOURCE32}
359 %{l_tar} xfz %{SOURCE33}
360 %{l_tar} xfz %{SOURCE34}
361 %{l_tar} xfz %{SOURCE35}
362 %{l_tar} xfz %{SOURCE36}
363 %{l_tar} xfz %{SOURCE37}
365 # apply local patches
366 %if "%{with_cust}" == "yes"
367 %patch -p0
368 %endif
370 %build
372 %install
373 # create installation hierarchy
374 %{l_shtool} mkdir -f -p -m 755 \
375 $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/all/themes
377 # avoid copying unnecessary text files
378 find . -name "*.orig" -print | xargs rm -f
379 rm -f CHANGELOG.txt COPYRIGHT.txt INSTALL.*.txt INSTALL.txt
380 rm -f LICENSE.txt MAINTAINERS.txt UPGRADE.txt
381 rm -f marinelli/fonts/bergamo/*License.txt andromeda/fonts/*License.txt
383 # install all files (and strip down installation afterwards)
384 cp -rp * \
385 $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/all/themes/
387 # determine installation files
388 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
389 %{l_files_std} \
390 '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/share/drupal'
392 %files -f files
394 %clean