Import new package spec for introduction into repository.

Mon, 15 Oct 2012 21:18:56 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 15 Oct 2012 21:18:56 +0200
changeset 740
e7caf02f98eb
parent 739
4b10bb3b97b3
child 741
c6ce86a2b636

Import new package spec for introduction into repository.

ruby-rails/ruby-rails.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ruby-rails/ruby-rails.spec	Mon Oct 15 21:18:56 2012 +0200
     1.3 @@ -0,0 +1,315 @@
     1.4 +##
     1.5 +##  ruby-rails.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     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 +# MSvB: Supposedly only really runtime depend on:
    1.28 +#         actionmailer
    1.29 +#         actionpack
    1.30 +#         activerecord
    1.31 +#         activeresource
    1.32 +#         activesupport
    1.33 +#         bundler
    1.34 +#         railties
    1.35 +
    1.36 +#   package version
    1.37 +%define       V_il8n            0.6.1
    1.38 +%define       V_multijson       1.3.6
    1.39 +%define       V_activesupport   3.2.8
    1.40 +%define       V_builder         3.0.3
    1.41 +%define       V_activemodel     3.2.8
    1.42 +%define       V_rack            1.4.1
    1.43 +%define       V_rackcache       1.2
    1.44 +%define       V_racktest        0.6.2
    1.45 +%define       V_journey         1.0.4
    1.46 +%define       V_hike            1.2.1
    1.47 +%define       V_tilt            1.3.3
    1.48 +%define       V_sprockets       2.1.3
    1.49 +%define       V_erubis          2.7.0
    1.50 +%define       V_actionpack      3.2.8
    1.51 +%define       V_arel            3.0.2
    1.52 +%define       V_tzinfo          0.3.33
    1.53 +%define       V_activerecord    3.2.8
    1.54 +%define       V_activeresource  3.2.8
    1.55 +%define       V_mimetypes       1.19
    1.56 +%define       V_polyglot        0.3.3
    1.57 +%define       V_treetop         1.4.11
    1.58 +%define       V_mail            2.4.4
    1.59 +%define       V_actionmailer    3.2.8
    1.60 +%define       V_rackssl         1.3.2
    1.61 +%define       V_thor            0.16.0
    1.62 +%define       V_railties        3.2.8
    1.63 +%define       V_bundler         1.2.1
    1.64 +%define       V_rails           3.2.8
    1.65 +
    1.66 +#   package information
    1.67 +Name:         ruby-rails
    1.68 +Summary:      Ruby Packages for Rails web framework
    1.69 +URL:          http://www.rubyonrails.org/
    1.70 +Vendor:       David Heinemeier Hansson
    1.71 +Packager:     Michael Schloh von Bennewitz
    1.72 +Distribution: Europalab Networks Production
    1.73 +Class:        EVAL
    1.74 +Group:        Language
    1.75 +License:      GPL
    1.76 +Version:      0
    1.77 +Release:      20120800
    1.78 +
    1.79 +#   list of sources
    1.80 +Source0:      http://rubygems.org/downloads/i18n-%{V_il8n}.gem
    1.81 +Source1:      http://rubygems.org/downloads/multi_json-%{V_multijson}.gem
    1.82 +Source2:      http://rubygems.org/downloads/activesupport-%{V_activesupport}.gem
    1.83 +Source3:      http://rubygems.org/downloads/builder-%{V_builder}.gem
    1.84 +Source4:      http://rubygems.org/downloads/activemodel-%{V_activemodel}.gem
    1.85 +Source5:      http://rubygems.org/downloads/rack-%{V_rack}.gem
    1.86 +Source6:      http://rubygems.org/downloads/rack-cache-%{V_rackcache}.gem
    1.87 +Source7:      http://rubygems.org/downloads/rack-test-%{V_racktest}.gem
    1.88 +Source8:      http://rubygems.org/downloads/journey-%{V_journey}.gem
    1.89 +Source9:      http://rubygems.org/downloads/hike-%{V_hike}.gem
    1.90 +Source10:     http://rubygems.org/downloads/tilt-%{V_tilt}.gem
    1.91 +Source11:     http://rubygems.org/downloads/sprockets-%{V_sprockets}.gem
    1.92 +Source12:     http://rubygems.org/downloads/erubis-%{V_erubis}.gem
    1.93 +Source13:     http://rubygems.org/downloads/actionpack-%{V_actionpack}.gem
    1.94 +Source14:     http://rubygems.org/downloads/arel-%{V_arel}.gem
    1.95 +Source15:     http://rubygems.org/downloads/tzinfo-%{V_tzinfo}.gem
    1.96 +Source16:     http://rubygems.org/downloads/activerecord-%{V_activerecord}.gem
    1.97 +Source17:     http://rubygems.org/downloads/activeresource-%{V_activeresource}.gem
    1.98 +Source18:     http://rubygems.org/downloads/mime-types-%{V_mimetypes}.gem
    1.99 +Source19:     http://rubygems.org/downloads/polyglot-%{V_polyglot}.gem
   1.100 +Source20:     http://rubygems.org/downloads/treetop-%{V_treetop}.gem
   1.101 +Source21:     http://rubygems.org/downloads/mail-%{V_mail}.gem
   1.102 +Source22:     http://rubygems.org/downloads/actionmailer-%{V_actionmailer}.gem
   1.103 +Source23:     http://rubygems.org/downloads/rack-ssl-%{V_rackssl}.gem
   1.104 +Source24:     http://rubygems.org/downloads/thor-%{V_thor}.gem
   1.105 +Source25:     http://rubygems.org/downloads/railties-%{V_railties}.gem
   1.106 +Source26:     http://rubygems.org/downloads/bundler-%{V_bundler}.gem
   1.107 +Source27:     http://rubygems.org/downloads/rails-%{V_rails}.gem
   1.108 +
   1.109 +#   build information
   1.110 +BuildPreReq:  OpenPKG, openpkg >= 20100101, ruby
   1.111 +PreReq:       OpenPKG, openpkg >= 20100101, ruby
   1.112 +
   1.113 +%description
   1.114 +    These are Ruby extensions to support web application development.
   1.115 +
   1.116 +%track
   1.117 +    prog ruby-rails:il8n = {
   1.118 +        version   = %{V_il8n}
   1.119 +        url       = http://rubygems.org/gems/il8n
   1.120 +        regex     = il8n-(__VER__)\.gem
   1.121 +    }
   1.122 +    prog ruby-rails:multijson = {
   1.123 +        version   = %{V_multijson}
   1.124 +        url       = http://rubygems.org/gems/multi_json
   1.125 +        regex     = multi_json-(__VER__)\.gem
   1.126 +    }
   1.127 +    prog ruby-rails:activesupport = {
   1.128 +        version   = %{V_activesupport}
   1.129 +        url       = http://rubygems.org/gems/activesupport
   1.130 +        regex     = activesupport-(__VER__)\.gem
   1.131 +    }
   1.132 +    prog ruby-rails:builder = {
   1.133 +        version   = %{V_builder}
   1.134 +        url       = http://rubygems.org/gems/builder
   1.135 +        regex     = builder-(__VER__)\.gem
   1.136 +    }
   1.137 +    prog ruby-rails:activemodel = {
   1.138 +        version   = %{V_activemodel}
   1.139 +        url       = http://rubygems.org/gems/activemodel
   1.140 +        regex     = activemodel-(__VER__)\.gem
   1.141 +    }
   1.142 +    prog ruby-rails:rack = {
   1.143 +        version   = %{V_rack}
   1.144 +        url       = http://rubygems.org/gems/rack
   1.145 +        regex     = rack-(__VER__)\.gem
   1.146 +    }
   1.147 +    prog ruby-rails:rackcache = {
   1.148 +        version   = %{V_rackcache}
   1.149 +        url       = http://rubygems.org/gems/rack-cache
   1.150 +        regex     = rack-cache-(__VER__)\.gem
   1.151 +    }
   1.152 +    prog ruby-rails:racktest = {
   1.153 +        version   = %{V_racktest}
   1.154 +        url       = http://rubygems.org/gems/rack-test
   1.155 +        regex     = rack-test-(__VER__)\.gem
   1.156 +    }
   1.157 +    prog ruby-rails:journey = {
   1.158 +        version   = %{V_journey}
   1.159 +        url       = http://rubygems.org/gems/journey
   1.160 +        regex     = journey-(__VER__)\.gem
   1.161 +    }
   1.162 +    prog ruby-rails:hike = {
   1.163 +        version   = %{V_hike}
   1.164 +        url       = http://rubygems.org/gems/hike
   1.165 +        regex     = hike-(__VER__)\.gem
   1.166 +    }
   1.167 +    prog ruby-rails:tilt = {
   1.168 +        version   = %{V_tilt}
   1.169 +        url       = http://rubygems.org/gems/tilt
   1.170 +        regex     = tilt-(__VER__)\.gem
   1.171 +    }
   1.172 +    prog ruby-rails:sprockets = {
   1.173 +        version   = %{V_sprockets}
   1.174 +        url       = http://rubygems.org/gems/sprockets
   1.175 +        regex     = sprockets-(__VER__)\.gem
   1.176 +    }
   1.177 +    prog ruby-rails:erubis = {
   1.178 +        version   = %{V_erubis}
   1.179 +        url       = http://rubygems.org/gems/erubis
   1.180 +        regex     = erubis-(__VER__)\.gem
   1.181 +    }
   1.182 +    prog ruby-rails:actionpack = {
   1.183 +        version   = %{V_actionpack}
   1.184 +        url       = http://rubygems.org/gems/actionpack
   1.185 +        regex     = actionpack-(__VER__)\.gem
   1.186 +    }
   1.187 +    prog ruby-rails:arel = {
   1.188 +        version   = %{V_arel}
   1.189 +        url       = http://rubygems.org/gems/arel
   1.190 +        regex     = arel-(__VER__)\.gem
   1.191 +    }
   1.192 +    prog ruby-rails:tzinfo = {
   1.193 +        version   = %{V_tzinfo}
   1.194 +        url       = http://rubygems.org/gems/tzinfo
   1.195 +        regex     = tzinfo-(__VER__)\.gem
   1.196 +    }
   1.197 +    prog ruby-rails:activerecord = {
   1.198 +        version   = %{V_activerecord}
   1.199 +        url       = http://rubygems.org/gems/activerecord
   1.200 +        regex     = activerecord-(__VER__)\.gem
   1.201 +    }
   1.202 +    prog ruby-rails:activeresource = {
   1.203 +        version   = %{V_activeresource}
   1.204 +        url       = http://rubygems.org/gems/activeresource
   1.205 +        regex     = activeresource-(__VER__)\.gem
   1.206 +    }
   1.207 +    prog ruby-rails:mimetypes = {
   1.208 +        version   = %{V_mimetypes}
   1.209 +        url       = http://rubygems.org/gems/mime-types
   1.210 +        regex     = mime-types-(__VER__)\.gem
   1.211 +    }
   1.212 +    prog ruby-rails:polyglot = {
   1.213 +        version   = %{V_polyglot}
   1.214 +        url       = http://rubygems.org/gems/polyglot
   1.215 +        regex     = polyglot-(__VER__)\.gem
   1.216 +    }
   1.217 +    prog ruby-rails:treetop = {
   1.218 +        version   = %{V_treetop}
   1.219 +        url       = http://rubygems.org/gems/treetop
   1.220 +        regex     = treetop-(__VER__)\.gem
   1.221 +    }
   1.222 +    prog ruby-rails:mail = {
   1.223 +        version   = %{V_mail}
   1.224 +        url       = http://rubygems.org/gems/mail
   1.225 +        regex     = mail-(__VER__)\.gem
   1.226 +    }
   1.227 +    prog ruby-rails:actionmailer = {
   1.228 +        version   = %{V_actionmailer}
   1.229 +        url       = http://rubygems.org/gems/actionmailer
   1.230 +        regex     = actionmailer-(__VER__)\.gem
   1.231 +    }
   1.232 +    prog ruby-rails:rackssl = {
   1.233 +        version   = %{V_rackssl}
   1.234 +        url       = http://rubygems.org/gems/rack-ssl
   1.235 +        regex     = rack-ssl-(__VER__)\.gem
   1.236 +    }
   1.237 +    prog ruby-rails:thor = {
   1.238 +        version   = %{V_thor}
   1.239 +        url       = http://rubygems.org/gems/thor
   1.240 +        regex     = thor-(__VER__)\.gem
   1.241 +    }
   1.242 +    prog ruby-rails:railties = {
   1.243 +        version   = %{V_railties}
   1.244 +        url       = http://rubygems.org/gems/railties
   1.245 +        regex     = railties-(__VER__)\.gem
   1.246 +    }
   1.247 +    prog ruby-rails:bundler = {
   1.248 +        version   = %{V_bundler}
   1.249 +        url       = http://rubygems.org/gems/bundler
   1.250 +        regex     = bundler-(__VER__)\.gem
   1.251 +    }
   1.252 +    prog ruby-rails:rails = {
   1.253 +        version   = %{V_rails}
   1.254 +        url       = http://rubygems.org/gems/rails
   1.255 +        regex     = rails-(__VER__)\.gem
   1.256 +    }
   1.257 +
   1.258 +%prep
   1.259 +    %setup -q -T -c
   1.260 +
   1.261 +%build
   1.262 +
   1.263 +%install
   1.264 +    RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'`
   1.265 +    export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION
   1.266 +    %{l_shtool} mkdir -f -p -m 755 $GEM_HOME
   1.267 +    %{l_prefix}/bin/gem install --local %{SOURCE0}
   1.268 +    %{l_prefix}/bin/gem install --local %{SOURCE1}
   1.269 +    %{l_prefix}/bin/gem install --local %{SOURCE2}
   1.270 +    %{l_prefix}/bin/gem install --local %{SOURCE3}
   1.271 +    %{l_prefix}/bin/gem install --local %{SOURCE4}
   1.272 +    %{l_prefix}/bin/gem install --local %{SOURCE5}
   1.273 +    %{l_prefix}/bin/gem install --local %{SOURCE6}
   1.274 +    %{l_prefix}/bin/gem install --local %{SOURCE7}
   1.275 +    %{l_prefix}/bin/gem install --local %{SOURCE8}
   1.276 +    %{l_prefix}/bin/gem install --local %{SOURCE9}
   1.277 +    %{l_prefix}/bin/gem install --local %{SOURCE10}
   1.278 +    %{l_prefix}/bin/gem install --local %{SOURCE11}
   1.279 +    %{l_prefix}/bin/gem install --local %{SOURCE12}
   1.280 +    %{l_prefix}/bin/gem install --local %{SOURCE13}
   1.281 +    %{l_prefix}/bin/gem install --local %{SOURCE14}
   1.282 +    %{l_prefix}/bin/gem install --local %{SOURCE15}
   1.283 +    %{l_prefix}/bin/gem install --local %{SOURCE16}
   1.284 +    %{l_prefix}/bin/gem install --local %{SOURCE17}
   1.285 +    %{l_prefix}/bin/gem install --local %{SOURCE18}
   1.286 +    %{l_prefix}/bin/gem install --local %{SOURCE19}
   1.287 +    %{l_prefix}/bin/gem install --local %{SOURCE20}
   1.288 +    %{l_prefix}/bin/gem install --local %{SOURCE21}
   1.289 +    %{l_prefix}/bin/gem install --local %{SOURCE22}
   1.290 +    %{l_prefix}/bin/gem install --local %{SOURCE23}
   1.291 +    %{l_prefix}/bin/gem install --local %{SOURCE24}
   1.292 +    %{l_prefix}/bin/gem install --local %{SOURCE25}
   1.293 +    %{l_prefix}/bin/gem install --local %{SOURCE26}
   1.294 +    %{l_prefix}/bin/gem install --local %{SOURCE27}
   1.295 +    ( cd $GEM_HOME/gems/thor-*/spec/fixtures
   1.296 +      mv path\ with\ spaces pathwithoutspaces
   1.297 +    ) || exit $?
   1.298 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   1.299 +    ( cd $GEM_HOME/gems/thor-*/spec/fixtures
   1.300 +      mv pathwithoutspaces path\ with\ spaces
   1.301 +    ) || exit $?
   1.302 +    %{l_shtool} subst \
   1.303 +        -e 's;\(.\)%;\1?;g' \
   1.304 +        -e 's;\(.*\)pathwithoutspaces\(.*\);"\1path with spaces\2";' \
   1.305 +        files
   1.306 +
   1.307 +%files -f files
   1.308 +
   1.309 +%clean
   1.310 +
   1.311 +%post
   1.312 +    #   Give notice of internally distributed V8 implementation
   1.313 +    ( echo "Because most Rails web development uses JavaScript, this package"
   1.314 +      echo "    while not explicitly specifying dependence on a JavaScript"
   1.315 +      echo "    interpreter does likely require one. Install the package"
   1.316 +      echo "    \'node\' to fulfill this likely requirement."
   1.317 +    ) | %{l_rpmtool} msg -b -t warning
   1.318 +

mercurial