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