Tue, 28 Aug 2012 18:29:25 +0200
Import package vendor original specs for necessary manipulations.
drupal-theme-misc/drupal-theme-misc.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/drupal-theme-misc/drupal-theme-misc.spec Tue Aug 28 18:29:25 2012 +0200 1.3 @@ -0,0 +1,168 @@ 1.4 +## 1.5 +## drupal-theme-misc.spec -- OpenPKG RPM Package Specification 1.6 +## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> 1.7 +## 1.8 +## Permission to use, copy, modify, and distribute this software for 1.9 +## any purpose with or without fee is hereby granted, provided that 1.10 +## the above copyright notice and this permission notice appear in all 1.11 +## copies. 1.12 +## 1.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 1.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 1.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 1.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 1.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 1.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1.24 +## SUCH DAMAGE. 1.25 +## 1.26 + 1.27 +# package versions (core) 1.28 +%define V_drupal 6.x 1.29 + 1.30 +# package versions (themes) 1.31 +%define V_theme_alek_2_0 6.x-1.x-dev 1.32 +%define V_theme_amadou 6.x-1.4 1.33 +%define V_theme_barlow 6.x-1.4 1.34 +%define V_theme_barron 6.x-2.3 1.35 +%define V_theme_bluebreeze 6.x-1.x-dev 1.36 +%define V_theme_deco 6.x-1.1 1.37 +%define V_theme_framework 6.x-3.3 1.38 +%define V_theme_fourseasons 6.x-2.0 1.39 +%define V_theme_nista 6.x-4.8 1.40 +%define V_theme_sky 6.x-3.11 1.41 +%define V_theme_zen 6.x-2.1 1.42 + 1.43 +# package information 1.44 +Name: drupal-theme-misc 1.45 +Summary: Drupal CMS: Theme Collection 1.46 +URL: http://www.drupal.org/ 1.47 +Vendor: Drupal Community et al. 1.48 +Packager: OpenPKG Foundation e.V. 1.49 +Distribution: OpenPKG Community 1.50 +Class: PLUS 1.51 +Group: CMS 1.52 +License: GPL 1.53 +Version: %{V_drupal} 1.54 +Release: 20120809 1.55 + 1.56 +# list of sources 1.57 +Source0: http://ftp.drupal.org/files/projects/alek_2_0-%{V_theme_alek_2_0}.tar.gz 1.58 +Source1: http://ftp.drupal.org/files/projects/amadou-%{V_theme_amadou}.tar.gz 1.59 +Source2: http://ftp.drupal.org/files/projects/barlow-%{V_theme_barlow}.tar.gz 1.60 +Source3: http://ftp.drupal.org/files/projects/barron-%{V_theme_barron}.tar.gz 1.61 +Source4: http://ftp.drupal.org/files/projects/bluebreeze-%{V_theme_bluebreeze}.tar.gz 1.62 +Source5: http://ftp.drupal.org/files/projects/deco-%{V_theme_deco}.tar.gz 1.63 +Source6: http://ftp.drupal.org/files/projects/framework-%{V_theme_framework}.tar.gz 1.64 +Source7: http://ftp.drupal.org/files/projects/fourseasons-%{V_theme_fourseasons}.tar.gz 1.65 +Source8: http://ftp.drupal.org/files/projects/nista-%{V_theme_nista}.tar.gz 1.66 +Source9: http://ftp.drupal.org/files/projects/sky-%{V_theme_sky}.tar.gz 1.67 +Source10: http://ftp.drupal.org/files/projects/zen-%{V_theme_zen}.tar.gz 1.68 + 1.69 +# build information 1.70 +BuildPreReq: OpenPKG, openpkg >= 20100101 1.71 +PreReq: OpenPKG, openpkg >= 20100101, drupal 1.72 + 1.73 +%description 1.74 + This is a collection of reusable "themes" for the Drupal CMS. 1.75 + 1.76 +%track 1.77 + prog drupal-theme-misc:theme_alek_2_0 = { 1.78 + version = %{V_theme_alek_2_0} 1.79 + url = http://ftp.drupal.org/files/projects/ 1.80 + regex = alek_2_0-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.81 + } 1.82 + prog drupal-theme-misc:theme_amadou = { 1.83 + version = %{V_theme_amadou} 1.84 + url = http://ftp.drupal.org/files/projects/ 1.85 + regex = amadou-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.86 + } 1.87 + prog drupal-theme-misc:theme_barlow = { 1.88 + version = %{V_theme_barlow} 1.89 + url = http://ftp.drupal.org/files/projects/ 1.90 + regex = barlow-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.91 + } 1.92 + prog drupal-theme-misc:theme_barron = { 1.93 + version = %{V_theme_barron} 1.94 + url = http://ftp.drupal.org/files/projects/ 1.95 + regex = barron-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.96 + } 1.97 + prog drupal-theme-misc:theme_bluebreeze = { 1.98 + version = %{V_theme_bluebreeze} 1.99 + url = http://ftp.drupal.org/files/projects/ 1.100 + regex = bluebreeze-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.101 + } 1.102 + prog drupal-theme-misc:theme_deco = { 1.103 + version = %{V_theme_deco} 1.104 + url = http://ftp.drupal.org/files/projects/ 1.105 + regex = deco-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.106 + } 1.107 + prog drupal-theme-misc:theme_framework = { 1.108 + version = %{V_theme_framework} 1.109 + url = http://ftp.drupal.org/files/projects/ 1.110 + regex = framework-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.111 + } 1.112 + prog drupal-theme-misc:theme_fourseasons = { 1.113 + version = %{V_theme_fourseasons} 1.114 + url = http://ftp.drupal.org/files/projects/ 1.115 + regex = fourseasons-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.116 + } 1.117 + prog drupal-theme-misc:theme_nista = { 1.118 + version = %{V_theme_nista} 1.119 + url = http://ftp.drupal.org/files/projects/ 1.120 + regex = nista-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.121 + } 1.122 + prog drupal-theme-misc:theme_sky = { 1.123 + version = %{V_theme_sky} 1.124 + url = http://ftp.drupal.org/files/projects/ 1.125 + regex = sky-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.126 + } 1.127 + prog drupal-theme-misc:theme_zen = { 1.128 + version = %{V_theme_zen} 1.129 + url = http://ftp.drupal.org/files/projects/ 1.130 + regex = zen-(6\.x-\d+(?:\.\d+)+)\.tar\.gz 1.131 + } 1.132 + 1.133 +%prep 1.134 + %setup -q -c -T 1.135 + %{l_tar} xfz %{SOURCE0} 1.136 + %{l_tar} xfz %{SOURCE1} 1.137 + %{l_tar} xfz %{SOURCE2} 1.138 + %{l_tar} xfz %{SOURCE3} 1.139 + %{l_tar} xfz %{SOURCE4} 1.140 + %{l_tar} xfz %{SOURCE5} 1.141 + %{l_tar} xfz %{SOURCE6} 1.142 + %{l_tar} xfz %{SOURCE7} 1.143 + %{l_tar} xfz %{SOURCE8} 1.144 + %{l_tar} xfz %{SOURCE9} 1.145 + %{l_tar} xfz %{SOURCE10} 1.146 + 1.147 +%build 1.148 + 1.149 +%install 1.150 + # create installation hierarchy 1.151 + %{l_shtool} mkdir -f -p -m 755 \ 1.152 + $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/all/themes 1.153 + 1.154 + # avoid copying unnecessary text files 1.155 + find . -name "*.orig" -print | xargs rm -f 1.156 + rm -f CHANGELOG.txt COPYRIGHT.txt INSTALL.*.txt INSTALL.txt 1.157 + rm -f LICENSE.txt MAINTAINERS.txt UPGRADE.txt 1.158 + 1.159 + # install all files (and strip down installation afterwards) 1.160 + cp -rp * \ 1.161 + $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/all/themes/ 1.162 + 1.163 + # determine installation files 1.164 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 1.165 + %{l_files_std} \ 1.166 + '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/share/drupal' 1.167 + 1.168 +%files -f files 1.169 + 1.170 +%clean 1.171 +