2008-08-25 17:44:03 +02:00
|
|
|
#
|
|
|
|
# spec file for package rubygem-eventmachine (Version 0.10.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-eventmachine
|
2008-11-03 15:24:24 +01:00
|
|
|
Version: 0.12.2
|
2008-08-25 17:44:03 +02:00
|
|
|
Release: 0
|
2008-11-03 15:24:24 +01:00
|
|
|
%define mod_name eventmachine
|
2008-08-25 17:44:03 +02:00
|
|
|
#
|
|
|
|
Group: Development/Languages/Ruby
|
|
|
|
License: GPL
|
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: rubygems_with_buildroot_patch
|
2008-11-03 15:24:24 +01:00
|
|
|
BuildRequires: gcc-c++ openssl-devel pkg-config
|
2008-08-25 17:44:03 +02:00
|
|
|
Requires: rubygems >= 0.9
|
|
|
|
#
|
|
|
|
Url: http://rubyeventmachine.com/
|
|
|
|
# http://rubyforge.org/projects/eventmachine
|
2008-11-03 15:24:24 +01:00
|
|
|
Source: http://rubyforge.org/frs/download.php/43993/eventmachine-0.12.2.gem
|
2008-08-26 17:48:44 +02:00
|
|
|
Source1: rubygem-eventmachine.rpmlintrc
|
2008-08-27 16:58:00 +02:00
|
|
|
# we use a modified gem to fix a few issues in the build:
|
2008-11-03 15:24:24 +01:00
|
|
|
# svn export http://rubyeventmachine.com/svn/tags/v0.12.2/ eventmachine-0.12.2
|
2008-08-27 16:58:00 +02:00
|
|
|
# cd eventmachine-0.12.0 ; patch -p0 < ../rubygem-eventmachine-0.12.0_fix_build.patch ; rake gem ; cp pkg/eventmachine-0.12.0.gem ..
|
|
|
|
Source2: rubygem-eventmachine-0.12.0_fix_build.patch
|
2008-08-25 17:44:03 +02:00
|
|
|
#
|
|
|
|
Summary: Ruby/EventMachine socket engine library
|
|
|
|
%description
|
|
|
|
Ruby/EventMachine is a fast, simple event-processing library for Ruby programs.
|
|
|
|
It lets you write network clients and servers without handling sockets- all you
|
|
|
|
do is send and receive data. Single-threaded socket engine- scalable and FAST!
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Francis Cianfrocca <garbagecat10@gmail.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
gem install --build-root=%{buildroot} %{S:0}
|
|
|
|
gem_build_cleanup %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_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
|