File rubygem-thin.spec of Package rubygem-thin
#
# spec file for package rubygem-thin (Version 1.0.0)
#
# Copyright (c) 2007-2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: rubygem-thin
Version: 1.0.0
Release: 0
%define mod_name thin
#
Group: Development/Languages/Ruby
License: MIT GPLv2
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: rubygems_with_buildroot_patch
BuildRequires: ruby-devel >= 1.8.5
Requires: rubygems >= 0.9
BuildRequires: rubygem-rack >= 0.3.0
Requires: rubygem-rack >= 0.3.0
BuildRequires: rubygem-eventmachine >= 0.12.0
Requires: rubygem-eventmachine >= 0.12.0
BuildRequires: rubygem-daemons >= 1.0.9
Requires: rubygem-daemons >= 1.0.9
#
URL: http://code.macournoyer.com/thin
# http://rubyforge.org/projects/thin
Source: http://rubyforge.org/frs/download.php/44201/thin-1.0.0.gem
#
Summary: A thin and fast web server
%description
Thin is a very simple web server written in Ruby. It's single-threaded, which
means it can only serve one request at a time. This simplicity affords
increased speed and decreased memory usage for singled-threaded framework like
Rails.
Thin is a Ruby web server that glues together 3 of the best Ruby libraries in
web history:
- the Mongrel parser, the root of Mongrel speed and security
- Event Machine, a network I/O library with extremely high scalability,
performance and stability
- Rack, a minimal interface between webservers and Ruby frameworks
Which makes it, with all humility, the most secure, stable, fast and extensible
Ruby web server.
Authors:
--------
Marc-Andre Cournoyer <macournoyer@gmail.com>
%prep
%build
%install
gem install --local --build-root=%{buildroot} %{S:0}
gem_build_cleanup %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
find %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/ -name dispatch.\* -print0 | \
xargs -r0 ruby -p -i -e 'gsub(%r{#!.*/bin/ruby}, "#!/usr/bin/ruby")'
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/thin
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/
%changelog