ruby-thin/ruby-thin.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 763
d07f45deec02
permissions
-rw-r--r--

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

michael@745 1 ##
michael@745 2 ## ruby-thin.spec -- OpenPKG RPM Package Specification
michael@745 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
michael@745 4 ##
michael@745 5 ## Permission to use, copy, modify, and distribute this software for
michael@745 6 ## any purpose with or without fee is hereby granted, provided that
michael@745 7 ## the above copyright notice and this permission notice appear in all
michael@745 8 ## copies.
michael@745 9 ##
michael@745 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@745 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@745 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@745 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@745 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@745 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@745 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@745 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@745 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@745 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@745 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@745 21 ## SUCH DAMAGE.
michael@745 22 ##
michael@745 23
michael@745 24 # package version
michael@745 25 %define V_eventmachine 1.0.0
michael@745 26 %define V_daemons 1.1.9
michael@745 27 %define V_thin 1.5.0
michael@745 28
michael@745 29 # package information
michael@745 30 Name: ruby-thin
michael@745 31 Summary: Ruby Packages for a thin and fast web server
michael@745 32 URL: http://code.macournoyer.com/thin/
michael@745 33 Vendor: Marc-Andre Cournoyer
michael@745 34 Packager: Michael Schloh von Bennewitz
michael@745 35 Distribution: Europalab Networks Production
michael@745 36 Class: EVAL
michael@745 37 Group: Language
michael@745 38 License: GPL
michael@745 39 Version: 0
michael@745 40 Release: 20120800
michael@745 41
michael@745 42 # list of sources
michael@745 43 Source0: http://rubygems.org/downloads/eventmachine-%{V_eventmachine}.gem
michael@745 44 Source1: http://rubygems.org/downloads/daemons-%{V_daemons}.gem
michael@745 45 Source2: http://rubygems.org/downloads/thin-%{V_thin}.gem
michael@745 46
michael@745 47 # build information
michael@745 48 BuildPreReq: OpenPKG, openpkg >= 20100101, ruby
michael@745 49 PreReq: OpenPKG, openpkg >= 20100101, ruby
michael@745 50
michael@745 51 %description
michael@745 52 These are Ruby extensions to support a thin and fast web server.
michael@745 53
michael@745 54 %track
michael@745 55 prog ruby-thin:eventmachine = {
michael@745 56 version = %{V_eventmachine}
michael@745 57 url = http://rubygems.org/gems/eventmachine
michael@745 58 regex = eventmachine-(__VER__)\.gem
michael@745 59 }
michael@745 60 prog ruby-thin:daemons = {
michael@745 61 version = %{V_daemons}
michael@745 62 url = http://rubygems.org/gems/daemons
michael@745 63 regex = daemons-(__VER__)\.gem
michael@745 64 }
michael@745 65 prog ruby-thin:thin = {
michael@745 66 version = %{V_thin}
michael@745 67 url = http://rubygems.org/gems/thin
michael@745 68 regex = thin-(__VER__)\.gem
michael@745 69 }
michael@745 70
michael@745 71 %prep
michael@745 72 %setup -q -T -c
michael@745 73
michael@745 74 %build
michael@745 75
michael@745 76 %install
michael@745 77 RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'`
michael@745 78 export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION
michael@745 79 %{l_shtool} mkdir -f -p -m 755 $GEM_HOME
michael@745 80 %{l_prefix}/bin/gem install --local %{SOURCE0}
michael@745 81 %{l_prefix}/bin/gem install --local %{SOURCE1}
michael@745 82 %{l_prefix}/bin/gem install --local %{SOURCE2}
michael@745 83 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@745 84
michael@745 85 %files -f files
michael@745 86
michael@745 87 %clean
michael@745 88

mercurial