ruby-rails/ruby-rails.spec

Sun, 27 Jan 2013 20:22:45 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 27 Jan 2013 20:22:45 +0100
changeset 757
bb40ee892364
child 762
b63e85afed35
permissions
-rw-r--r--

Update to new version, improve socket error reporting, and correct SCTP bug.

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

mercurial