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