Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
rubygem-kgio
rubygem-kgio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-kgio.spec of Package rubygem-kgio
%global gem_name kgio %global rubyabi 2.0.0 Summary: Kinder, gentler I/O for Ruby Name: rubygem-%{gem_name} Version: 2.10.0 Release: 1%{?dist} Group: Development/Tools License: LGPLv2 or LGPLv3 # LICENSE file defines the licencing aspects of kgiox. # No license info in source files. URL: http://bogomips.org/kgio Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem Patch0: rubygem-kgio-test_tfo.patch BuildRequires: ruby-devel BuildRequires: ruby-irb BuildRequires: rubygems-devel BuildRequires: rubygem(test-unit) %description kgio provides non-blocking I/O methods for Ruby without raising exceptions on EAGAIN and EINPROGRESS. It is intended for use with the Unicorn and Rainbows! Rack servers, but may be used by other applications (that run on Unix-like platforms). %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} %patch0 -p1 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # Remove the binary extension sources and build leftovers. rm -f %{buildroot}%{gem_instdir}/.document rm -f %{buildroot}%{gem_instdir}/.gitignore rm -f %{buildroot}%{gem_instdir}/.manifest rm -f %{buildroot}%{gem_instdir}/.olddoc.yml rm -f %{buildroot}%{gem_instdir}/pkg.mk rm -f %{buildroot}%{gem_instdir}/setup.rb rm -f %{buildroot}/%{gem_instdir}/kgio.gemspec rm -f %{buildroot}/%{gem_instdir}/GNUmakefile rm -f %{buildroot}/%{gem_instdir}/GIT-VERSION-FILE rm -f %{buildroot}/%{gem_instdir}/GIT-VERSION-GEN rm -rf %{buildroot}%{gem_instdir}/archive rm -rf %{buildroot}%{gem_instdir}/ext # If there are C extensions, mv them to the extdir. # You must replace REQUIRE_PATHS according to your gem specifics. %if 0%{?fedora} >= 19 && 0%{?fedora} < 21 install -d m0755 %{buildroot}%{gem_extdir_mri}/lib mv %{buildroot}%{gem_instdir}/lib/kgio_ext.so %{buildroot}%{gem_extdir_mri}/lib/ %endif install -d m0755 %{buildroot}%{gem_extdir_mri} cp -a .%{gem_extdir_mri}/{gem.build_complete,kgio_ext.so} %{buildroot}%{gem_extdir_mri}/ %check pushd .%{gem_instdir} ruby -Ilib:$(dirs +1)%{gem_extdir_mri} -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd %files doc %doc %{gem_dir}/doc/%{gem_name}-%{version} %doc %{gem_instdir}/TODO %doc %{gem_instdir}/LATEST %doc %{gem_instdir}/ISSUES %doc %{gem_instdir}/HACKING %doc %{gem_instdir}/test %files %{gem_extdir_mri} %dir %{gem_instdir}/lib %doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/COPYING %doc %{gem_instdir}/README %doc %{gem_instdir}/NEWS %exclude %{gem_cache} %{gem_spec} %{gem_instdir}/lib/kgio.rb
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor