File ruby-fcgi-CentOS_5.spec of Package ruby-fcgi

#
# spec file for package ruby-mysql (Version 2.7.4)
#
# 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

%{!?ruby_sitearch: %define ruby_sitearch %(/usr/bin/ruby -rrbconfig -e "puts Config::CONFIG['sitearch']")}
%{!?ruby_sitearchdir: %define ruby_sitearchdir %(/usr/bin/ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}

%define rb_pkg ruby-fcgi

Name:           ruby-fcgi
Version:        0.8.7
Release:        1
#
License:        Other uncritical OpenSource License
Group:          Development/Languages/Ruby
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ruby-devel ruby FastCGI-devel
#
URL:            http://sugi.nemui.org/prod/ruby-fcgi/
Source:         http://rubyforge.org/frs/download.php/11368/ruby-fcgi-0.8.7.tar.gz
Summary:        FastCGI bindings for ruby

%description
FastCGI is a language independent, scalable, open extension to CGI that
provides high performance without the limitations of server specific
APIs.

This package provides bindings for the ruby language.


Authors:
--------
    Tatsuki Sugiura <sugi@nemui.org>

%prep
%setup -q -n %{rb_pkg}-%{version}

%build
ruby install.rb config
ruby install.rb setup

%install
echo %{ruby_sitelib} 
rm -rf $RPM_BUILD_ROOT
ruby install.rb install --prefix=$RPM_BUILD_ROOT

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

%files
%defattr(-,root,root)
%doc README* ChangeLog
%{ruby_sitelib}/fcgi.rb
%{ruby_sitearchdir}/fcgi.so

%changelog
* Tue Jul 4 2009 - Marko Jung <marko.jung@oucs.ox.ac.uk>
 - new RHEL/CentOS Spec
openSUSE Build Service is sponsored by