ruby-rails/ruby-rails.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
child 762
b63e85afed35
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

     1 ##
     2 ##  ruby-rails.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     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 # MSvB: Supposedly only really runtime depend on:
    25 #         actionmailer
    26 #         actionpack
    27 #         activerecord
    28 #         activeresource
    29 #         activesupport
    30 #         bundler
    31 #         railties
    33 #   package version
    34 %define       V_il8n            0.6.1
    35 %define       V_multijson       1.3.6
    36 %define       V_activesupport   3.2.8
    37 %define       V_builder         3.0.3
    38 %define       V_activemodel     3.2.8
    39 %define       V_rack            1.4.1
    40 %define       V_rackcache       1.2
    41 %define       V_racktest        0.6.2
    42 %define       V_journey         1.0.4
    43 %define       V_hike            1.2.1
    44 %define       V_tilt            1.3.3
    45 %define       V_sprockets       2.1.3
    46 %define       V_erubis          2.7.0
    47 %define       V_actionpack      3.2.8
    48 %define       V_arel            3.0.2
    49 %define       V_tzinfo          0.3.33
    50 %define       V_activerecord    3.2.8
    51 %define       V_activeresource  3.2.8
    52 %define       V_mimetypes       1.19
    53 %define       V_polyglot        0.3.3
    54 %define       V_treetop         1.4.11
    55 %define       V_mail            2.4.4
    56 %define       V_actionmailer    3.2.8
    57 %define       V_rackssl         1.3.2
    58 %define       V_thor            0.16.0
    59 %define       V_railties        3.2.8
    60 %define       V_bundler         1.2.1
    61 %define       V_rails           3.2.8
    63 #   package information
    64 Name:         ruby-rails
    65 Summary:      Ruby Packages for Rails web framework
    66 URL:          http://www.rubyonrails.org/
    67 Vendor:       David Heinemeier Hansson
    68 Packager:     Michael Schloh von Bennewitz
    69 Distribution: Europalab Networks Production
    70 Class:        EVAL
    71 Group:        Language
    72 License:      GPL
    73 Version:      0
    74 Release:      20120800
    76 #   list of sources
    77 Source0:      http://rubygems.org/downloads/i18n-%{V_il8n}.gem
    78 Source1:      http://rubygems.org/downloads/multi_json-%{V_multijson}.gem
    79 Source2:      http://rubygems.org/downloads/activesupport-%{V_activesupport}.gem
    80 Source3:      http://rubygems.org/downloads/builder-%{V_builder}.gem
    81 Source4:      http://rubygems.org/downloads/activemodel-%{V_activemodel}.gem
    82 Source5:      http://rubygems.org/downloads/rack-%{V_rack}.gem
    83 Source6:      http://rubygems.org/downloads/rack-cache-%{V_rackcache}.gem
    84 Source7:      http://rubygems.org/downloads/rack-test-%{V_racktest}.gem
    85 Source8:      http://rubygems.org/downloads/journey-%{V_journey}.gem
    86 Source9:      http://rubygems.org/downloads/hike-%{V_hike}.gem
    87 Source10:     http://rubygems.org/downloads/tilt-%{V_tilt}.gem
    88 Source11:     http://rubygems.org/downloads/sprockets-%{V_sprockets}.gem
    89 Source12:     http://rubygems.org/downloads/erubis-%{V_erubis}.gem
    90 Source13:     http://rubygems.org/downloads/actionpack-%{V_actionpack}.gem
    91 Source14:     http://rubygems.org/downloads/arel-%{V_arel}.gem
    92 Source15:     http://rubygems.org/downloads/tzinfo-%{V_tzinfo}.gem
    93 Source16:     http://rubygems.org/downloads/activerecord-%{V_activerecord}.gem
    94 Source17:     http://rubygems.org/downloads/activeresource-%{V_activeresource}.gem
    95 Source18:     http://rubygems.org/downloads/mime-types-%{V_mimetypes}.gem
    96 Source19:     http://rubygems.org/downloads/polyglot-%{V_polyglot}.gem
    97 Source20:     http://rubygems.org/downloads/treetop-%{V_treetop}.gem
    98 Source21:     http://rubygems.org/downloads/mail-%{V_mail}.gem
    99 Source22:     http://rubygems.org/downloads/actionmailer-%{V_actionmailer}.gem
   100 Source23:     http://rubygems.org/downloads/rack-ssl-%{V_rackssl}.gem
   101 Source24:     http://rubygems.org/downloads/thor-%{V_thor}.gem
   102 Source25:     http://rubygems.org/downloads/railties-%{V_railties}.gem
   103 Source26:     http://rubygems.org/downloads/bundler-%{V_bundler}.gem
   104 Source27:     http://rubygems.org/downloads/rails-%{V_rails}.gem
   106 #   build information
   107 BuildPreReq:  OpenPKG, openpkg >= 20100101, ruby
   108 PreReq:       OpenPKG, openpkg >= 20100101, ruby
   110 %description
   111     These are Ruby extensions to support web application development.
   113 %track
   114     prog ruby-rails:il8n = {
   115         version   = %{V_il8n}
   116         url       = http://rubygems.org/gems/il8n
   117         regex     = il8n-(__VER__)\.gem
   118     }
   119     prog ruby-rails:multijson = {
   120         version   = %{V_multijson}
   121         url       = http://rubygems.org/gems/multi_json
   122         regex     = multi_json-(__VER__)\.gem
   123     }
   124     prog ruby-rails:activesupport = {
   125         version   = %{V_activesupport}
   126         url       = http://rubygems.org/gems/activesupport
   127         regex     = activesupport-(__VER__)\.gem
   128     }
   129     prog ruby-rails:builder = {
   130         version   = %{V_builder}
   131         url       = http://rubygems.org/gems/builder
   132         regex     = builder-(__VER__)\.gem
   133     }
   134     prog ruby-rails:activemodel = {
   135         version   = %{V_activemodel}
   136         url       = http://rubygems.org/gems/activemodel
   137         regex     = activemodel-(__VER__)\.gem
   138     }
   139     prog ruby-rails:rack = {
   140         version   = %{V_rack}
   141         url       = http://rubygems.org/gems/rack
   142         regex     = rack-(__VER__)\.gem
   143     }
   144     prog ruby-rails:rackcache = {
   145         version   = %{V_rackcache}
   146         url       = http://rubygems.org/gems/rack-cache
   147         regex     = rack-cache-(__VER__)\.gem
   148     }
   149     prog ruby-rails:racktest = {
   150         version   = %{V_racktest}
   151         url       = http://rubygems.org/gems/rack-test
   152         regex     = rack-test-(__VER__)\.gem
   153     }
   154     prog ruby-rails:journey = {
   155         version   = %{V_journey}
   156         url       = http://rubygems.org/gems/journey
   157         regex     = journey-(__VER__)\.gem
   158     }
   159     prog ruby-rails:hike = {
   160         version   = %{V_hike}
   161         url       = http://rubygems.org/gems/hike
   162         regex     = hike-(__VER__)\.gem
   163     }
   164     prog ruby-rails:tilt = {
   165         version   = %{V_tilt}
   166         url       = http://rubygems.org/gems/tilt
   167         regex     = tilt-(__VER__)\.gem
   168     }
   169     prog ruby-rails:sprockets = {
   170         version   = %{V_sprockets}
   171         url       = http://rubygems.org/gems/sprockets
   172         regex     = sprockets-(__VER__)\.gem
   173     }
   174     prog ruby-rails:erubis = {
   175         version   = %{V_erubis}
   176         url       = http://rubygems.org/gems/erubis
   177         regex     = erubis-(__VER__)\.gem
   178     }
   179     prog ruby-rails:actionpack = {
   180         version   = %{V_actionpack}
   181         url       = http://rubygems.org/gems/actionpack
   182         regex     = actionpack-(__VER__)\.gem
   183     }
   184     prog ruby-rails:arel = {
   185         version   = %{V_arel}
   186         url       = http://rubygems.org/gems/arel
   187         regex     = arel-(__VER__)\.gem
   188     }
   189     prog ruby-rails:tzinfo = {
   190         version   = %{V_tzinfo}
   191         url       = http://rubygems.org/gems/tzinfo
   192         regex     = tzinfo-(__VER__)\.gem
   193     }
   194     prog ruby-rails:activerecord = {
   195         version   = %{V_activerecord}
   196         url       = http://rubygems.org/gems/activerecord
   197         regex     = activerecord-(__VER__)\.gem
   198     }
   199     prog ruby-rails:activeresource = {
   200         version   = %{V_activeresource}
   201         url       = http://rubygems.org/gems/activeresource
   202         regex     = activeresource-(__VER__)\.gem
   203     }
   204     prog ruby-rails:mimetypes = {
   205         version   = %{V_mimetypes}
   206         url       = http://rubygems.org/gems/mime-types
   207         regex     = mime-types-(__VER__)\.gem
   208     }
   209     prog ruby-rails:polyglot = {
   210         version   = %{V_polyglot}
   211         url       = http://rubygems.org/gems/polyglot
   212         regex     = polyglot-(__VER__)\.gem
   213     }
   214     prog ruby-rails:treetop = {
   215         version   = %{V_treetop}
   216         url       = http://rubygems.org/gems/treetop
   217         regex     = treetop-(__VER__)\.gem
   218     }
   219     prog ruby-rails:mail = {
   220         version   = %{V_mail}
   221         url       = http://rubygems.org/gems/mail
   222         regex     = mail-(__VER__)\.gem
   223     }
   224     prog ruby-rails:actionmailer = {
   225         version   = %{V_actionmailer}
   226         url       = http://rubygems.org/gems/actionmailer
   227         regex     = actionmailer-(__VER__)\.gem
   228     }
   229     prog ruby-rails:rackssl = {
   230         version   = %{V_rackssl}
   231         url       = http://rubygems.org/gems/rack-ssl
   232         regex     = rack-ssl-(__VER__)\.gem
   233     }
   234     prog ruby-rails:thor = {
   235         version   = %{V_thor}
   236         url       = http://rubygems.org/gems/thor
   237         regex     = thor-(__VER__)\.gem
   238     }
   239     prog ruby-rails:railties = {
   240         version   = %{V_railties}
   241         url       = http://rubygems.org/gems/railties
   242         regex     = railties-(__VER__)\.gem
   243     }
   244     prog ruby-rails:bundler = {
   245         version   = %{V_bundler}
   246         url       = http://rubygems.org/gems/bundler
   247         regex     = bundler-(__VER__)\.gem
   248     }
   249     prog ruby-rails:rails = {
   250         version   = %{V_rails}
   251         url       = http://rubygems.org/gems/rails
   252         regex     = rails-(__VER__)\.gem
   253     }
   255 %prep
   256     %setup -q -T -c
   258 %build
   260 %install
   261     RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'`
   262     export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION
   263     %{l_shtool} mkdir -f -p -m 755 $GEM_HOME
   264     %{l_prefix}/bin/gem install --local %{SOURCE0}
   265     %{l_prefix}/bin/gem install --local %{SOURCE1}
   266     %{l_prefix}/bin/gem install --local %{SOURCE2}
   267     %{l_prefix}/bin/gem install --local %{SOURCE3}
   268     %{l_prefix}/bin/gem install --local %{SOURCE4}
   269     %{l_prefix}/bin/gem install --local %{SOURCE5}
   270     %{l_prefix}/bin/gem install --local %{SOURCE6}
   271     %{l_prefix}/bin/gem install --local %{SOURCE7}
   272     %{l_prefix}/bin/gem install --local %{SOURCE8}
   273     %{l_prefix}/bin/gem install --local %{SOURCE9}
   274     %{l_prefix}/bin/gem install --local %{SOURCE10}
   275     %{l_prefix}/bin/gem install --local %{SOURCE11}
   276     %{l_prefix}/bin/gem install --local %{SOURCE12}
   277     %{l_prefix}/bin/gem install --local %{SOURCE13}
   278     %{l_prefix}/bin/gem install --local %{SOURCE14}
   279     %{l_prefix}/bin/gem install --local %{SOURCE15}
   280     %{l_prefix}/bin/gem install --local %{SOURCE16}
   281     %{l_prefix}/bin/gem install --local %{SOURCE17}
   282     %{l_prefix}/bin/gem install --local %{SOURCE18}
   283     %{l_prefix}/bin/gem install --local %{SOURCE19}
   284     %{l_prefix}/bin/gem install --local %{SOURCE20}
   285     %{l_prefix}/bin/gem install --local %{SOURCE21}
   286     %{l_prefix}/bin/gem install --local %{SOURCE22}
   287     %{l_prefix}/bin/gem install --local %{SOURCE23}
   288     %{l_prefix}/bin/gem install --local %{SOURCE24}
   289     %{l_prefix}/bin/gem install --local %{SOURCE25}
   290     %{l_prefix}/bin/gem install --local %{SOURCE26}
   291     %{l_prefix}/bin/gem install --local %{SOURCE27}
   292     ( cd $GEM_HOME/gems/thor-*/spec/fixtures
   293       mv path\ with\ spaces pathwithoutspaces
   294     ) || exit $?
   295     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   296     ( cd $GEM_HOME/gems/thor-*/spec/fixtures
   297       mv pathwithoutspaces path\ with\ spaces
   298     ) || exit $?
   299     %{l_shtool} subst \
   300         -e 's;\(.\)%;\1?;g' \
   301         -e 's;\(.*\)pathwithoutspaces\(.*\);"\1path with spaces\2";' \
   302         files
   304 %files -f files
   306 %clean
   308 %post
   309     #   Give notice of internally distributed V8 implementation
   310     ( echo "Because most Rails web development uses JavaScript, this package"
   311       echo "    while not explicitly specifying dependence on a JavaScript"
   312       echo "    interpreter does likely require one. Install the package"
   313       echo "    \'node\' to fulfill this likely requirement."
   314     ) | %{l_rpmtool} msg -b -t warning

mercurial