Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
OpenNebula
>
rubygems
> rubygems.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rubygems.spec of Package rubygems
# # spec file for package rubygems # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: rubygems Version: 1.5.2 Release: 1 # License: Other uncritical OpenSource License Group: Development/Languages/Ruby # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-devel Requires: ruby-devel Provides: rubygems_with_buildroot_patch # Url: http://rubyforge.org/projects/rubygems/ # from http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz Source: rubygems-%{version}.tar.bz2 Source1: gem_build_cleanup Source2: rubygems-rpmlintrc Source3: rubygems.macros Patch: rubygems-1.5.0_buildroot.patch Patch1: https://github.com/rubygems/rubygems/commit/f379d5bace68b10622d01059a2d3b4caca4dd5a8.patch %if 0%{?sles_version} || 0%{?suse_version} < 1130 # SLES and openSUSE 11.2 have ruby 1.8.7p72 and some gems fail to build # see http://revision-zero.org/history-of-a-bug Patch2: hashvalue_too_big.patch %endif Summary: The Ruby standard for publishing and managing third party libraries %description RubyGems is the Ruby standard for publishing and managing third party libraries. %prep %setup -n %{name}-%{version} %patch %patch1 %if 0%{?sles_version} || 0%{?suse_version} < 1130 %patch2 %endif %build %install GEM_HOME=%{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/ \ ruby -rvendor-specific setup.rb --destdir=%{buildroot} %{__install} -D -m 0755 %{S:1} %{buildroot}%{_bindir}/gem_build_cleanup %{__install} -D -m 0644 %{S:3} %{buildroot}/etc/rpm/macros.rubygems %{__mkdir_p} %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/cache/ %{__mkdir_p} %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/doc/ %{__mkdir_p} %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/ %{__mkdir_p} %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/specifications/ %check rake test ||: %clean %{__rm} -rf %{buildroot}; %files %defattr(-,root,root) %config(noreplace) /etc/rpm/macros.rubygems %doc ChangeLog GPL.txt LICENSE.txt README.rdoc History.txt %doc test/ pkgs/ %{_bindir}/gem_build_cleanup %{_bindir}/gem %dir %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rbconfig/ %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rbconfig/datadir.rb %{_libdir}/ruby/vendor_ruby/%{rb_ver}/*ubygems.rb %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rubygems/ %dir %{_libdir}/ruby/gems/ %dir %{_libdir}/ruby/gems/%{rb_ver} %dir %{_libdir}/ruby/gems/%{rb_ver}/cache/ %dir %{_libdir}/ruby/gems/%{rb_ver}/doc/ %dir %{_libdir}/ruby/gems/%{rb_ver}/gems/ %dir %{_libdir}/ruby/gems/%{rb_ver}/specifications/ %changelog