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