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