rubygem-eventmachine/rubygem-eventmachine.spec

66 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# 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
%define mod_name eventmachine
#
Version: 0.12.0
Release: 0
#
Group: Development/Languages/Ruby
License: GPL
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: rubygems_with_buildroot_patch
BuildRequires: gcc-c++ openssl-devel
Requires: rubygems >= 0.9
#
Url: http://rubyeventmachine.com/
# http://rubyforge.org/projects/eventmachine
Source: http://rubyforge.org/frs/download.php/37853/eventmachine-0.12.0.gem
Source1: rubygem-eventmachine.rpmlintrc
# we use a modified gem to fix a few issues in the build:
# svn export http://rubyeventmachine.com/svn/tags/v0_12_0/ eventmachine-0.12.0
# 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
#
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