File rubygem-mongrel.spec of Package rubygem-mongrel

#
# spec file for package rubygem-mongrel (Version 1.0.1)
#
# Copyright (c) 2007 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-mongrel
%define mod_name mongrel
#
Version:        1.0.1
Release:        1
#
Group:          Development/Languages/Ruby
License:        GPL v2 or later
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1020
%define run_fdupes 1
%endif
BuildRequires:  rubygem-gem_plugin >= 0.2.2
BuildRequires:  rubygem-daemons >= 1.0.3
BuildRequires:  rubygems_with_buildroot_patch
%if 0%{?run_fdupes}
BuildRequires:  fdupes
%endif
Requires:       rubygem-gem_plugin >= 0.2.2
Requires:       rubygem-daemons >= 1.0.3
Requires:       rubygems >= 0.9
#
Url:            http://mongrel.rubyforge.org/
Source:         http://rubyforge.org/frs/download.php/16719/mongrel-1.0.1.gem
# just for documentation purpose
Source1:        mongrel-1.0.1_remove_unneeded_dependencies.patch
Source2:        ChangeLog.mongrel
#
Summary:        A small fast HTTP library and server that runs Rails, Camping, and Nitro apps

%description
Mongrel is a fast HTTP library and server for Ruby that is intended for
hosting Ruby web applications of any kind using plain HTTP rather than
FastCGI or SCGI. It is framework agnostic and already supports Ruby On
Rails, Og+Nitro, and Camping frameworks.



Authors:
--------
    Zed A. Shaw

%prep

%build

%install
gem install --build-root=%{buildroot} %{S:0}
gem_build_cleanup %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%{__install} -D -m 0644 %{S:2} %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/ChangeLog
%if 0%{?run_fdupes}
%fdupes %{buildroot}
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/mongrel_rails
%{_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
* Mon Sep 03 2007 - mrueckert@suse.de
- rebuild the gem file to avoid a 2 unneeded dependencies:
  - fastthread & cgi_multipart_eof_fix - included in 1.8.6
* Fri May 25 2007 - mrueckert@suse.de
- really depend on cgi_multipart_fix as mongrel has an hardcoded
  runtime dependency.
* Mon May 14 2007 - mrueckert@suse.de
- update to version 1.0.1:
  This is the follow up release to 0.3.13.4. This adds a lot of
  speed ups and bug fixes. Highlights:
  - bmh based search for mimetypes
  - improved CGI handling
  - improved threaded handlers (using fastthread)
  - correct parsing of requests behind a proxy
  - improved rails support
* Fri Sep 22 2006 - mrueckert@suse.de
- update to version 0.3.13.4:
  Changes. Coming soon… it’s lots of stuff.
* Sat Jul 01 2006 - mrueckert@suse.de
- update to version 0.3.13.3:
  * This release also fixes a problem with the -B option not
  actually logging object counts. The object count logging
  isn’t perfect, but some folks use it.
  * This release also will print the access log to the screen when
  you run it in your console.
  * changed license to the Ruby license
* Wed Jun 28 2006 - mrueckert@suse.de
- update to version 0.3.13.2:
  * Mongrel now defends against file starvation better by killing
  off any threads that take longer than 60 seconds, but *only*
  if it has run out of files.
  * Small parts have extra functionality to allow you to add a
  "notification filter".  This filter is a handler that will get
  notified about the entire HTTP process rather than just receive
  the final request.  Check out the mongrel_upload_progress gem
  to see how that works.
  * A few small fixes, mostly in the errors that are printed out.
  * The new mongrel_upload_progress plugin by Why and Rick that
  gives you the goodies.
* Wed Jun 21 2006 - mrueckert@suse.de
- update to version 0.3.13.1:
  * The -C configure file option was busted because of an errant
  line move.
  * Adds RedirectHandler thanks to Jonas Pfenniger and a new
  redirect call to Configurator.
  * Fixes mongrel_servic documentation which was referring to -r
  instead of -c and -C instead of -u.
* Wed Jun 21 2006 - mrueckert@suse.de
- use rubygems_with_buildroot_patch instead of the versioned
  buildrequires
* Tue Jun 20 2006 - mrueckert@suse.de
- remove build files
* Mon Jun 19 2006 - mrueckert@suse.de
- Initial package version 0.3.13
openSUSE Build Service is sponsored by