ruby-rails/ruby-rails.spec

Tue, 02 Jul 2013 18:21:58 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 02 Jul 2013 18:21:58 +0200
changeset 782
de3379343a7c
parent 740
e7caf02f98eb
permissions
-rw-r--r--

Remove superfluous init scripts and introduce SQL population logic.

michael@740 1 ##
michael@740 2 ## ruby-rails.spec -- OpenPKG RPM Package Specification
michael@740 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
michael@740 4 ##
michael@740 5 ## Permission to use, copy, modify, and distribute this software for
michael@740 6 ## any purpose with or without fee is hereby granted, provided that
michael@740 7 ## the above copyright notice and this permission notice appear in all
michael@740 8 ## copies.
michael@740 9 ##
michael@740 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@740 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@740 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@740 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@740 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@740 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@740 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@740 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@740 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@740 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@740 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@740 21 ## SUCH DAMAGE.
michael@740 22 ##
michael@740 23
michael@740 24 # MSvB: Supposedly only really runtime depend on:
michael@740 25 # actionmailer
michael@740 26 # actionpack
michael@740 27 # activerecord
michael@740 28 # activeresource
michael@740 29 # activesupport
michael@740 30 # bundler
michael@740 31 # railties
michael@740 32
michael@740 33 # package version
michael@762 34 %define V_il8n 0.6.1 # not 0.6.4
michael@762 35 %define V_multijson 1.7.2
michael@762 36 %define V_activesupport 3.2.13
michael@762 37 %define V_builder 3.0.0 # not 3.2.0
michael@762 38 %define V_activemodel 3.2.13
michael@762 39 %define V_rack 1.4.5 # not 1.5.2
michael@740 40 %define V_rackcache 1.2
michael@740 41 %define V_racktest 0.6.2
michael@740 42 %define V_journey 1.0.4
michael@740 43 %define V_hike 1.2.1
michael@762 44 %define V_tilt 1.3.6
michael@762 45 %define V_sprockets 2.2.1 # not 2.9.0
michael@740 46 %define V_erubis 2.7.0
michael@762 47 %define V_actionpack 3.2.13
michael@740 48 %define V_arel 3.0.2
michael@762 49 %define V_tzinfo 0.3.37
michael@762 50 %define V_activerecord 3.2.13
michael@762 51 %define V_activeresource 3.2.13
michael@762 52 %define V_mimetypes 1.21
michael@740 53 %define V_polyglot 0.3.3
michael@762 54 %define V_treetop 1.4.12
michael@762 55 %define V_mail 2.5.3
michael@762 56 %define V_actionmailer 3.2.13
michael@762 57 %define V_rackssl 1.3.3
michael@762 58 %define V_thor 0.18.0
michael@762 59 %define V_rdoc 3.4 # not 4.0.1
michael@762 60 %define V_railties 3.2.13
michael@762 61 %define V_bundler 1.3.4
michael@762 62 %define V_rails 3.2.13
michael@740 63
michael@740 64 # package information
michael@740 65 Name: ruby-rails
michael@740 66 Summary: Ruby Packages for Rails web framework
michael@740 67 URL: http://www.rubyonrails.org/
michael@740 68 Vendor: David Heinemeier Hansson
michael@740 69 Packager: Michael Schloh von Bennewitz
michael@740 70 Distribution: Europalab Networks Production
michael@740 71 Class: EVAL
michael@740 72 Group: Language
michael@740 73 License: GPL
michael@740 74 Version: 0
michael@740 75 Release: 20120800
michael@740 76
michael@740 77 # list of sources
michael@740 78 Source0: http://rubygems.org/downloads/i18n-%{V_il8n}.gem
michael@740 79 Source1: http://rubygems.org/downloads/multi_json-%{V_multijson}.gem
michael@740 80 Source2: http://rubygems.org/downloads/activesupport-%{V_activesupport}.gem
michael@740 81 Source3: http://rubygems.org/downloads/builder-%{V_builder}.gem
michael@740 82 Source4: http://rubygems.org/downloads/activemodel-%{V_activemodel}.gem
michael@740 83 Source5: http://rubygems.org/downloads/rack-%{V_rack}.gem
michael@740 84 Source6: http://rubygems.org/downloads/rack-cache-%{V_rackcache}.gem
michael@740 85 Source7: http://rubygems.org/downloads/rack-test-%{V_racktest}.gem
michael@740 86 Source8: http://rubygems.org/downloads/journey-%{V_journey}.gem
michael@740 87 Source9: http://rubygems.org/downloads/hike-%{V_hike}.gem
michael@740 88 Source10: http://rubygems.org/downloads/tilt-%{V_tilt}.gem
michael@740 89 Source11: http://rubygems.org/downloads/sprockets-%{V_sprockets}.gem
michael@740 90 Source12: http://rubygems.org/downloads/erubis-%{V_erubis}.gem
michael@740 91 Source13: http://rubygems.org/downloads/actionpack-%{V_actionpack}.gem
michael@740 92 Source14: http://rubygems.org/downloads/arel-%{V_arel}.gem
michael@740 93 Source15: http://rubygems.org/downloads/tzinfo-%{V_tzinfo}.gem
michael@740 94 Source16: http://rubygems.org/downloads/activerecord-%{V_activerecord}.gem
michael@740 95 Source17: http://rubygems.org/downloads/activeresource-%{V_activeresource}.gem
michael@740 96 Source18: http://rubygems.org/downloads/mime-types-%{V_mimetypes}.gem
michael@740 97 Source19: http://rubygems.org/downloads/polyglot-%{V_polyglot}.gem
michael@740 98 Source20: http://rubygems.org/downloads/treetop-%{V_treetop}.gem
michael@740 99 Source21: http://rubygems.org/downloads/mail-%{V_mail}.gem
michael@740 100 Source22: http://rubygems.org/downloads/actionmailer-%{V_actionmailer}.gem
michael@740 101 Source23: http://rubygems.org/downloads/rack-ssl-%{V_rackssl}.gem
michael@740 102 Source24: http://rubygems.org/downloads/thor-%{V_thor}.gem
michael@762 103 Source25: http://rubygems.org/downloads/rdoc-%{V_rdoc}.gem
michael@762 104 Source26: http://rubygems.org/downloads/railties-%{V_railties}.gem
michael@762 105 Source27: http://rubygems.org/downloads/bundler-%{V_bundler}.gem
michael@762 106 Source28: http://rubygems.org/downloads/rails-%{V_rails}.gem
michael@740 107
michael@740 108 # build information
michael@740 109 BuildPreReq: OpenPKG, openpkg >= 20100101, ruby
michael@740 110 PreReq: OpenPKG, openpkg >= 20100101, ruby
michael@740 111
michael@740 112 %description
michael@740 113 These are Ruby extensions to support web application development.
michael@740 114
michael@740 115 %track
michael@740 116 prog ruby-rails:il8n = {
michael@740 117 version = %{V_il8n}
michael@740 118 url = http://rubygems.org/gems/il8n
michael@740 119 regex = il8n-(__VER__)\.gem
michael@740 120 }
michael@740 121 prog ruby-rails:multijson = {
michael@740 122 version = %{V_multijson}
michael@740 123 url = http://rubygems.org/gems/multi_json
michael@740 124 regex = multi_json-(__VER__)\.gem
michael@740 125 }
michael@740 126 prog ruby-rails:activesupport = {
michael@740 127 version = %{V_activesupport}
michael@740 128 url = http://rubygems.org/gems/activesupport
michael@740 129 regex = activesupport-(__VER__)\.gem
michael@740 130 }
michael@740 131 prog ruby-rails:builder = {
michael@740 132 version = %{V_builder}
michael@740 133 url = http://rubygems.org/gems/builder
michael@740 134 regex = builder-(__VER__)\.gem
michael@740 135 }
michael@740 136 prog ruby-rails:activemodel = {
michael@740 137 version = %{V_activemodel}
michael@740 138 url = http://rubygems.org/gems/activemodel
michael@740 139 regex = activemodel-(__VER__)\.gem
michael@740 140 }
michael@740 141 prog ruby-rails:rack = {
michael@740 142 version = %{V_rack}
michael@740 143 url = http://rubygems.org/gems/rack
michael@740 144 regex = rack-(__VER__)\.gem
michael@740 145 }
michael@740 146 prog ruby-rails:rackcache = {
michael@740 147 version = %{V_rackcache}
michael@740 148 url = http://rubygems.org/gems/rack-cache
michael@740 149 regex = rack-cache-(__VER__)\.gem
michael@740 150 }
michael@740 151 prog ruby-rails:racktest = {
michael@740 152 version = %{V_racktest}
michael@740 153 url = http://rubygems.org/gems/rack-test
michael@740 154 regex = rack-test-(__VER__)\.gem
michael@740 155 }
michael@740 156 prog ruby-rails:journey = {
michael@740 157 version = %{V_journey}
michael@740 158 url = http://rubygems.org/gems/journey
michael@740 159 regex = journey-(__VER__)\.gem
michael@740 160 }
michael@740 161 prog ruby-rails:hike = {
michael@740 162 version = %{V_hike}
michael@740 163 url = http://rubygems.org/gems/hike
michael@740 164 regex = hike-(__VER__)\.gem
michael@740 165 }
michael@740 166 prog ruby-rails:tilt = {
michael@740 167 version = %{V_tilt}
michael@740 168 url = http://rubygems.org/gems/tilt
michael@740 169 regex = tilt-(__VER__)\.gem
michael@740 170 }
michael@740 171 prog ruby-rails:sprockets = {
michael@740 172 version = %{V_sprockets}
michael@740 173 url = http://rubygems.org/gems/sprockets
michael@740 174 regex = sprockets-(__VER__)\.gem
michael@740 175 }
michael@740 176 prog ruby-rails:erubis = {
michael@740 177 version = %{V_erubis}
michael@740 178 url = http://rubygems.org/gems/erubis
michael@740 179 regex = erubis-(__VER__)\.gem
michael@740 180 }
michael@740 181 prog ruby-rails:actionpack = {
michael@740 182 version = %{V_actionpack}
michael@740 183 url = http://rubygems.org/gems/actionpack
michael@740 184 regex = actionpack-(__VER__)\.gem
michael@740 185 }
michael@740 186 prog ruby-rails:arel = {
michael@740 187 version = %{V_arel}
michael@740 188 url = http://rubygems.org/gems/arel
michael@740 189 regex = arel-(__VER__)\.gem
michael@740 190 }
michael@740 191 prog ruby-rails:tzinfo = {
michael@740 192 version = %{V_tzinfo}
michael@740 193 url = http://rubygems.org/gems/tzinfo
michael@740 194 regex = tzinfo-(__VER__)\.gem
michael@740 195 }
michael@740 196 prog ruby-rails:activerecord = {
michael@740 197 version = %{V_activerecord}
michael@740 198 url = http://rubygems.org/gems/activerecord
michael@740 199 regex = activerecord-(__VER__)\.gem
michael@740 200 }
michael@740 201 prog ruby-rails:activeresource = {
michael@740 202 version = %{V_activeresource}
michael@740 203 url = http://rubygems.org/gems/activeresource
michael@740 204 regex = activeresource-(__VER__)\.gem
michael@740 205 }
michael@740 206 prog ruby-rails:mimetypes = {
michael@740 207 version = %{V_mimetypes}
michael@740 208 url = http://rubygems.org/gems/mime-types
michael@740 209 regex = mime-types-(__VER__)\.gem
michael@740 210 }
michael@740 211 prog ruby-rails:polyglot = {
michael@740 212 version = %{V_polyglot}
michael@740 213 url = http://rubygems.org/gems/polyglot
michael@740 214 regex = polyglot-(__VER__)\.gem
michael@740 215 }
michael@740 216 prog ruby-rails:treetop = {
michael@740 217 version = %{V_treetop}
michael@740 218 url = http://rubygems.org/gems/treetop
michael@740 219 regex = treetop-(__VER__)\.gem
michael@740 220 }
michael@740 221 prog ruby-rails:mail = {
michael@740 222 version = %{V_mail}
michael@740 223 url = http://rubygems.org/gems/mail
michael@740 224 regex = mail-(__VER__)\.gem
michael@740 225 }
michael@740 226 prog ruby-rails:actionmailer = {
michael@740 227 version = %{V_actionmailer}
michael@740 228 url = http://rubygems.org/gems/actionmailer
michael@740 229 regex = actionmailer-(__VER__)\.gem
michael@740 230 }
michael@740 231 prog ruby-rails:rackssl = {
michael@740 232 version = %{V_rackssl}
michael@740 233 url = http://rubygems.org/gems/rack-ssl
michael@740 234 regex = rack-ssl-(__VER__)\.gem
michael@740 235 }
michael@740 236 prog ruby-rails:thor = {
michael@740 237 version = %{V_thor}
michael@740 238 url = http://rubygems.org/gems/thor
michael@740 239 regex = thor-(__VER__)\.gem
michael@740 240 }
michael@762 241 prog ruby-rails:rdoc = {
michael@762 242 version = %{V_rdoc}
michael@762 243 url = http://rubygems.org/gems/rdoc
michael@762 244 regex = rdoc-(__VER__)\.gem
michael@762 245 }
michael@740 246 prog ruby-rails:railties = {
michael@740 247 version = %{V_railties}
michael@740 248 url = http://rubygems.org/gems/railties
michael@740 249 regex = railties-(__VER__)\.gem
michael@740 250 }
michael@740 251 prog ruby-rails:bundler = {
michael@740 252 version = %{V_bundler}
michael@740 253 url = http://rubygems.org/gems/bundler
michael@740 254 regex = bundler-(__VER__)\.gem
michael@740 255 }
michael@740 256 prog ruby-rails:rails = {
michael@740 257 version = %{V_rails}
michael@740 258 url = http://rubygems.org/gems/rails
michael@740 259 regex = rails-(__VER__)\.gem
michael@740 260 }
michael@740 261
michael@740 262 %prep
michael@740 263 %setup -q -T -c
michael@740 264
michael@740 265 %build
michael@740 266
michael@740 267 %install
michael@740 268 RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'`
michael@740 269 export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION
michael@740 270 %{l_shtool} mkdir -f -p -m 755 $GEM_HOME
michael@740 271 %{l_prefix}/bin/gem install --local %{SOURCE0}
michael@740 272 %{l_prefix}/bin/gem install --local %{SOURCE1}
michael@740 273 %{l_prefix}/bin/gem install --local %{SOURCE2}
michael@740 274 %{l_prefix}/bin/gem install --local %{SOURCE3}
michael@740 275 %{l_prefix}/bin/gem install --local %{SOURCE4}
michael@740 276 %{l_prefix}/bin/gem install --local %{SOURCE5}
michael@740 277 %{l_prefix}/bin/gem install --local %{SOURCE6}
michael@740 278 %{l_prefix}/bin/gem install --local %{SOURCE7}
michael@740 279 %{l_prefix}/bin/gem install --local %{SOURCE8}
michael@740 280 %{l_prefix}/bin/gem install --local %{SOURCE9}
michael@740 281 %{l_prefix}/bin/gem install --local %{SOURCE10}
michael@740 282 %{l_prefix}/bin/gem install --local %{SOURCE11}
michael@740 283 %{l_prefix}/bin/gem install --local %{SOURCE12}
michael@740 284 %{l_prefix}/bin/gem install --local %{SOURCE13}
michael@740 285 %{l_prefix}/bin/gem install --local %{SOURCE14}
michael@740 286 %{l_prefix}/bin/gem install --local %{SOURCE15}
michael@740 287 %{l_prefix}/bin/gem install --local %{SOURCE16}
michael@740 288 %{l_prefix}/bin/gem install --local %{SOURCE17}
michael@740 289 %{l_prefix}/bin/gem install --local %{SOURCE18}
michael@740 290 %{l_prefix}/bin/gem install --local %{SOURCE19}
michael@740 291 %{l_prefix}/bin/gem install --local %{SOURCE20}
michael@740 292 %{l_prefix}/bin/gem install --local %{SOURCE21}
michael@740 293 %{l_prefix}/bin/gem install --local %{SOURCE22}
michael@740 294 %{l_prefix}/bin/gem install --local %{SOURCE23}
michael@740 295 %{l_prefix}/bin/gem install --local %{SOURCE24}
michael@740 296 %{l_prefix}/bin/gem install --local %{SOURCE25}
michael@740 297 %{l_prefix}/bin/gem install --local %{SOURCE26}
michael@740 298 %{l_prefix}/bin/gem install --local %{SOURCE27}
michael@762 299 %{l_prefix}/bin/gem install --local %{SOURCE28}
michael@740 300 ( cd $GEM_HOME/gems/thor-*/spec/fixtures
michael@740 301 mv path\ with\ spaces pathwithoutspaces
michael@740 302 ) || exit $?
michael@740 303 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@740 304 ( cd $GEM_HOME/gems/thor-*/spec/fixtures
michael@740 305 mv pathwithoutspaces path\ with\ spaces
michael@740 306 ) || exit $?
michael@740 307 %{l_shtool} subst \
michael@740 308 -e 's;\(.\)%;\1?;g' \
michael@740 309 -e 's;\(.*\)pathwithoutspaces\(.*\);"\1path with spaces\2";' \
michael@740 310 files
michael@740 311
michael@740 312 %files -f files
michael@740 313
michael@740 314 %clean
michael@740 315
michael@740 316 %post
michael@740 317 # Give notice of internally distributed V8 implementation
michael@740 318 ( echo "Because most Rails web development uses JavaScript, this package"
michael@740 319 echo " while not explicitly specifying dependence on a JavaScript"
michael@740 320 echo " interpreter does likely require one. Install the package"
michael@740 321 echo " \'node\' to fulfill this likely requirement."
michael@740 322 ) | %{l_rpmtool} msg -b -t warning
michael@740 323

mercurial