# HG changeset patch # User Michael Schloh von Bennewitz # Date 1350328736 -7200 # Node ID e7caf02f98eb38641c06bfae392aa3be6514ee80 # Parent 4b10bb3b97b3d4d60444c494a1cdf61129007f6b Import new package spec for introduction into repository. diff -r 4b10bb3b97b3 -r e7caf02f98eb ruby-rails/ruby-rails.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ruby-rails/ruby-rails.spec Mon Oct 15 21:18:56 2012 +0200 @@ -0,0 +1,315 @@ +## +## ruby-rails.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2012 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# MSvB: Supposedly only really runtime depend on: +# actionmailer +# actionpack +# activerecord +# activeresource +# activesupport +# bundler +# railties + +# package version +%define V_il8n 0.6.1 +%define V_multijson 1.3.6 +%define V_activesupport 3.2.8 +%define V_builder 3.0.3 +%define V_activemodel 3.2.8 +%define V_rack 1.4.1 +%define V_rackcache 1.2 +%define V_racktest 0.6.2 +%define V_journey 1.0.4 +%define V_hike 1.2.1 +%define V_tilt 1.3.3 +%define V_sprockets 2.1.3 +%define V_erubis 2.7.0 +%define V_actionpack 3.2.8 +%define V_arel 3.0.2 +%define V_tzinfo 0.3.33 +%define V_activerecord 3.2.8 +%define V_activeresource 3.2.8 +%define V_mimetypes 1.19 +%define V_polyglot 0.3.3 +%define V_treetop 1.4.11 +%define V_mail 2.4.4 +%define V_actionmailer 3.2.8 +%define V_rackssl 1.3.2 +%define V_thor 0.16.0 +%define V_railties 3.2.8 +%define V_bundler 1.2.1 +%define V_rails 3.2.8 + +# package information +Name: ruby-rails +Summary: Ruby Packages for Rails web framework +URL: http://www.rubyonrails.org/ +Vendor: David Heinemeier Hansson +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Networks Production +Class: EVAL +Group: Language +License: GPL +Version: 0 +Release: 20120800 + +# list of sources +Source0: http://rubygems.org/downloads/i18n-%{V_il8n}.gem +Source1: http://rubygems.org/downloads/multi_json-%{V_multijson}.gem +Source2: http://rubygems.org/downloads/activesupport-%{V_activesupport}.gem +Source3: http://rubygems.org/downloads/builder-%{V_builder}.gem +Source4: http://rubygems.org/downloads/activemodel-%{V_activemodel}.gem +Source5: http://rubygems.org/downloads/rack-%{V_rack}.gem +Source6: http://rubygems.org/downloads/rack-cache-%{V_rackcache}.gem +Source7: http://rubygems.org/downloads/rack-test-%{V_racktest}.gem +Source8: http://rubygems.org/downloads/journey-%{V_journey}.gem +Source9: http://rubygems.org/downloads/hike-%{V_hike}.gem +Source10: http://rubygems.org/downloads/tilt-%{V_tilt}.gem +Source11: http://rubygems.org/downloads/sprockets-%{V_sprockets}.gem +Source12: http://rubygems.org/downloads/erubis-%{V_erubis}.gem +Source13: http://rubygems.org/downloads/actionpack-%{V_actionpack}.gem +Source14: http://rubygems.org/downloads/arel-%{V_arel}.gem +Source15: http://rubygems.org/downloads/tzinfo-%{V_tzinfo}.gem +Source16: http://rubygems.org/downloads/activerecord-%{V_activerecord}.gem +Source17: http://rubygems.org/downloads/activeresource-%{V_activeresource}.gem +Source18: http://rubygems.org/downloads/mime-types-%{V_mimetypes}.gem +Source19: http://rubygems.org/downloads/polyglot-%{V_polyglot}.gem +Source20: http://rubygems.org/downloads/treetop-%{V_treetop}.gem +Source21: http://rubygems.org/downloads/mail-%{V_mail}.gem +Source22: http://rubygems.org/downloads/actionmailer-%{V_actionmailer}.gem +Source23: http://rubygems.org/downloads/rack-ssl-%{V_rackssl}.gem +Source24: http://rubygems.org/downloads/thor-%{V_thor}.gem +Source25: http://rubygems.org/downloads/railties-%{V_railties}.gem +Source26: http://rubygems.org/downloads/bundler-%{V_bundler}.gem +Source27: http://rubygems.org/downloads/rails-%{V_rails}.gem + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101, ruby +PreReq: OpenPKG, openpkg >= 20100101, ruby + +%description + These are Ruby extensions to support web application development. + +%track + prog ruby-rails:il8n = { + version = %{V_il8n} + url = http://rubygems.org/gems/il8n + regex = il8n-(__VER__)\.gem + } + prog ruby-rails:multijson = { + version = %{V_multijson} + url = http://rubygems.org/gems/multi_json + regex = multi_json-(__VER__)\.gem + } + prog ruby-rails:activesupport = { + version = %{V_activesupport} + url = http://rubygems.org/gems/activesupport + regex = activesupport-(__VER__)\.gem + } + prog ruby-rails:builder = { + version = %{V_builder} + url = http://rubygems.org/gems/builder + regex = builder-(__VER__)\.gem + } + prog ruby-rails:activemodel = { + version = %{V_activemodel} + url = http://rubygems.org/gems/activemodel + regex = activemodel-(__VER__)\.gem + } + prog ruby-rails:rack = { + version = %{V_rack} + url = http://rubygems.org/gems/rack + regex = rack-(__VER__)\.gem + } + prog ruby-rails:rackcache = { + version = %{V_rackcache} + url = http://rubygems.org/gems/rack-cache + regex = rack-cache-(__VER__)\.gem + } + prog ruby-rails:racktest = { + version = %{V_racktest} + url = http://rubygems.org/gems/rack-test + regex = rack-test-(__VER__)\.gem + } + prog ruby-rails:journey = { + version = %{V_journey} + url = http://rubygems.org/gems/journey + regex = journey-(__VER__)\.gem + } + prog ruby-rails:hike = { + version = %{V_hike} + url = http://rubygems.org/gems/hike + regex = hike-(__VER__)\.gem + } + prog ruby-rails:tilt = { + version = %{V_tilt} + url = http://rubygems.org/gems/tilt + regex = tilt-(__VER__)\.gem + } + prog ruby-rails:sprockets = { + version = %{V_sprockets} + url = http://rubygems.org/gems/sprockets + regex = sprockets-(__VER__)\.gem + } + prog ruby-rails:erubis = { + version = %{V_erubis} + url = http://rubygems.org/gems/erubis + regex = erubis-(__VER__)\.gem + } + prog ruby-rails:actionpack = { + version = %{V_actionpack} + url = http://rubygems.org/gems/actionpack + regex = actionpack-(__VER__)\.gem + } + prog ruby-rails:arel = { + version = %{V_arel} + url = http://rubygems.org/gems/arel + regex = arel-(__VER__)\.gem + } + prog ruby-rails:tzinfo = { + version = %{V_tzinfo} + url = http://rubygems.org/gems/tzinfo + regex = tzinfo-(__VER__)\.gem + } + prog ruby-rails:activerecord = { + version = %{V_activerecord} + url = http://rubygems.org/gems/activerecord + regex = activerecord-(__VER__)\.gem + } + prog ruby-rails:activeresource = { + version = %{V_activeresource} + url = http://rubygems.org/gems/activeresource + regex = activeresource-(__VER__)\.gem + } + prog ruby-rails:mimetypes = { + version = %{V_mimetypes} + url = http://rubygems.org/gems/mime-types + regex = mime-types-(__VER__)\.gem + } + prog ruby-rails:polyglot = { + version = %{V_polyglot} + url = http://rubygems.org/gems/polyglot + regex = polyglot-(__VER__)\.gem + } + prog ruby-rails:treetop = { + version = %{V_treetop} + url = http://rubygems.org/gems/treetop + regex = treetop-(__VER__)\.gem + } + prog ruby-rails:mail = { + version = %{V_mail} + url = http://rubygems.org/gems/mail + regex = mail-(__VER__)\.gem + } + prog ruby-rails:actionmailer = { + version = %{V_actionmailer} + url = http://rubygems.org/gems/actionmailer + regex = actionmailer-(__VER__)\.gem + } + prog ruby-rails:rackssl = { + version = %{V_rackssl} + url = http://rubygems.org/gems/rack-ssl + regex = rack-ssl-(__VER__)\.gem + } + prog ruby-rails:thor = { + version = %{V_thor} + url = http://rubygems.org/gems/thor + regex = thor-(__VER__)\.gem + } + prog ruby-rails:railties = { + version = %{V_railties} + url = http://rubygems.org/gems/railties + regex = railties-(__VER__)\.gem + } + prog ruby-rails:bundler = { + version = %{V_bundler} + url = http://rubygems.org/gems/bundler + regex = bundler-(__VER__)\.gem + } + prog ruby-rails:rails = { + version = %{V_rails} + url = http://rubygems.org/gems/rails + regex = rails-(__VER__)\.gem + } + +%prep + %setup -q -T -c + +%build + +%install + RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'` + export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION + %{l_shtool} mkdir -f -p -m 755 $GEM_HOME + %{l_prefix}/bin/gem install --local %{SOURCE0} + %{l_prefix}/bin/gem install --local %{SOURCE1} + %{l_prefix}/bin/gem install --local %{SOURCE2} + %{l_prefix}/bin/gem install --local %{SOURCE3} + %{l_prefix}/bin/gem install --local %{SOURCE4} + %{l_prefix}/bin/gem install --local %{SOURCE5} + %{l_prefix}/bin/gem install --local %{SOURCE6} + %{l_prefix}/bin/gem install --local %{SOURCE7} + %{l_prefix}/bin/gem install --local %{SOURCE8} + %{l_prefix}/bin/gem install --local %{SOURCE9} + %{l_prefix}/bin/gem install --local %{SOURCE10} + %{l_prefix}/bin/gem install --local %{SOURCE11} + %{l_prefix}/bin/gem install --local %{SOURCE12} + %{l_prefix}/bin/gem install --local %{SOURCE13} + %{l_prefix}/bin/gem install --local %{SOURCE14} + %{l_prefix}/bin/gem install --local %{SOURCE15} + %{l_prefix}/bin/gem install --local %{SOURCE16} + %{l_prefix}/bin/gem install --local %{SOURCE17} + %{l_prefix}/bin/gem install --local %{SOURCE18} + %{l_prefix}/bin/gem install --local %{SOURCE19} + %{l_prefix}/bin/gem install --local %{SOURCE20} + %{l_prefix}/bin/gem install --local %{SOURCE21} + %{l_prefix}/bin/gem install --local %{SOURCE22} + %{l_prefix}/bin/gem install --local %{SOURCE23} + %{l_prefix}/bin/gem install --local %{SOURCE24} + %{l_prefix}/bin/gem install --local %{SOURCE25} + %{l_prefix}/bin/gem install --local %{SOURCE26} + %{l_prefix}/bin/gem install --local %{SOURCE27} + ( cd $GEM_HOME/gems/thor-*/spec/fixtures + mv path\ with\ spaces pathwithoutspaces + ) || exit $? + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + ( cd $GEM_HOME/gems/thor-*/spec/fixtures + mv pathwithoutspaces path\ with\ spaces + ) || exit $? + %{l_shtool} subst \ + -e 's;\(.\)%;\1?;g' \ + -e 's;\(.*\)pathwithoutspaces\(.*\);"\1path with spaces\2";' \ + files + +%files -f files + +%clean + +%post + # Give notice of internally distributed V8 implementation + ( echo "Because most Rails web development uses JavaScript, this package" + echo " while not explicitly specifying dependence on a JavaScript" + echo " interpreter does likely require one. Install the package" + echo " \'node\' to fulfill this likely requirement." + ) | %{l_rpmtool} msg -b -t warning +