# HG changeset patch # User Michael Schloh von Bennewitz # Date 1350557490 -7200 # Node ID 55a8b8e82e569f9ee5fb1f85da91c882f7633277 # Parent 1a30ac06597d839a575bb69fde1be8e8f360c6ff Import new package spec for introduction into repository. diff -r 1a30ac06597d -r 55a8b8e82e56 ruby-thin/ruby-thin.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ruby-thin/ruby-thin.spec Thu Oct 18 12:51:30 2012 +0200 @@ -0,0 +1,88 @@ +## +## ruby-thin.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2012 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package version +%define V_eventmachine 1.0.0 +%define V_daemons 1.1.9 +%define V_thin 1.5.0 + +# package information +Name: ruby-thin +Summary: Ruby Packages for a thin and fast web server +URL: http://code.macournoyer.com/thin/ +Vendor: Marc-Andre Cournoyer +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Networks Production +Class: EVAL +Group: Language +License: GPL +Version: 0 +Release: 20120800 + +# list of sources +Source0: http://rubygems.org/downloads/eventmachine-%{V_eventmachine}.gem +Source1: http://rubygems.org/downloads/daemons-%{V_daemons}.gem +Source2: http://rubygems.org/downloads/thin-%{V_thin}.gem + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101, ruby +PreReq: OpenPKG, openpkg >= 20100101, ruby + +%description + These are Ruby extensions to support a thin and fast web server. + +%track + prog ruby-thin:eventmachine = { + version = %{V_eventmachine} + url = http://rubygems.org/gems/eventmachine + regex = eventmachine-(__VER__)\.gem + } + prog ruby-thin:daemons = { + version = %{V_daemons} + url = http://rubygems.org/gems/daemons + regex = daemons-(__VER__)\.gem + } + prog ruby-thin:thin = { + version = %{V_thin} + url = http://rubygems.org/gems/thin + regex = thin-(__VER__)\.gem + } + +%prep + %setup -q -T -c + +%build + +%install + RUBY_VERSION=`%{l_prefix}/bin/gem which rubygems | sed -e 's;.*/\([^/]*\)/rubygems\.rb$;\1;'` + export GEM_HOME=$RPM_BUILD_ROOT%{l_prefix}/lib/ruby/gems/$RUBY_VERSION + %{l_shtool} mkdir -f -p -m 755 $GEM_HOME + %{l_prefix}/bin/gem install --local %{SOURCE0} + %{l_prefix}/bin/gem install --local %{SOURCE1} + %{l_prefix}/bin/gem install --local %{SOURCE2} + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean +