Blame SPECS/rubygem-ref.spec

cfa3fd
%{?scl:%scl_package rubygem-%{gem_name}}
cfa3fd
%{!?scl:%global pkg_name %{name}}
cfa3fd
cfa3fd
# Generated from ref-1.0.0.gem by gem2rpm -*- rpm-spec -*-
cfa3fd
%global gem_name ref
cfa3fd
cfa3fd
Summary: Library that implements weak, soft, and strong references in Ruby
cfa3fd
Name: %{?scl_prefix}rubygem-%{gem_name}
cfa3fd
Version: 1.0.5
cfa3fd
Release: 1%{?dist}
cfa3fd
Group: Development/Languages
cfa3fd
License: MIT
cfa3fd
URL: http://github.com/bdurand/ref
cfa3fd
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
cfa3fd
Requires: %{?scl_prefix_ruby}ruby(release)
cfa3fd
Requires: %{?scl_prefix_ruby}ruby(rubygems)
cfa3fd
BuildRequires: %{?scl_prefix_ruby}ruby(release)
cfa3fd
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
cfa3fd
BuildRequires: %{?scl_prefix_ruby}ruby
cfa3fd
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
cfa3fd
BuildArch: noarch
cfa3fd
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
cfa3fd
cfa3fd
%description
cfa3fd
Library that implements weak, soft, and strong references in Ruby that work
cfa3fd
across multiple runtimes (MRI, REE, YARV, Jruby, Rubinius, and IronRuby). Also
cfa3fd
includes implementation of maps/hashes that use references and a reference
cfa3fd
queue.
cfa3fd
cfa3fd
cfa3fd
%package doc
cfa3fd
Summary: Documentation for %{pkg_name}
cfa3fd
Group: Documentation
cfa3fd
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
cfa3fd
BuildArch: noarch
cfa3fd
cfa3fd
%description doc
cfa3fd
Documentation for %{pkg_name}
cfa3fd
cfa3fd
%prep
cfa3fd
%setup -n %{pkg_name}-%{version} -q -c -T
cfa3fd
%{?scl:scl enable %{scl} - << \EOF}
cfa3fd
%gem_install -n %{SOURCE0}
cfa3fd
%{?scl:EOF}
cfa3fd
cfa3fd
%build
cfa3fd
cfa3fd
%install
cfa3fd
mkdir -p %{buildroot}%{gem_dir}
cfa3fd
cp -a .%{gem_dir}/* \
cfa3fd
        %{buildroot}%{gem_dir}/
cfa3fd
cfa3fd
%check
cfa3fd
pushd .%{gem_instdir}
cfa3fd
%{?scl:scl enable %{scl} - << \EOF}
cfa3fd
# To run the tests using minitest 5
cfa3fd
ruby -rminitest/autorun - << \RUBY
cfa3fd
 module Kernel
cfa3fd
   alias orig_require require
cfa3fd
   remove_method :require
cfa3fd
cfa3fd
   def require path
cfa3fd
     orig_require path unless path == 'test/unit'
cfa3fd
   end
cfa3fd
 end
cfa3fd
cfa3fd
 Test = Minitest
cfa3fd
cfa3fd
 Dir.glob "./test/**/*_test.rb", &method(:require)
cfa3fd
RUBY
cfa3fd
%{?scl:EOF}
cfa3fd
popd
cfa3fd
cfa3fd
cfa3fd
%files
cfa3fd
%dir %{gem_instdir}
cfa3fd
%exclude %{gem_instdir}/ext
cfa3fd
%doc %{gem_instdir}/MIT_LICENSE
cfa3fd
%{gem_libdir}
cfa3fd
%exclude %{gem_libdir}/org
cfa3fd
%exclude %{gem_cache}
cfa3fd
%{gem_spec}
cfa3fd
cfa3fd
%files doc
cfa3fd
%doc %{gem_docdir}
cfa3fd
%doc %{gem_instdir}/README.rdoc
cfa3fd
%{gem_instdir}/VERSION
cfa3fd
%{gem_instdir}/test
cfa3fd
%exclude %{gem_instdir}/test/*.rbc
cfa3fd
cfa3fd
%changelog
cfa3fd
* Mon Jan 26 2015 Josef Stribny <jstribny@redhat.com> - 1.0.5-1
cfa3fd
- Update to 1.0.5
cfa3fd
cfa3fd
* Fri Mar 21 2014 Vít Ondruch <vondruch@redhat.com> - 1.0.0-5
cfa3fd
- Rebuid against new scl-utils to depend on -runtime package.
cfa3fd
  Resolves: rhbz#1069109
cfa3fd
cfa3fd
* Mon May 25 2013 Josef Stribny <jstribny@redhat.com> - 1.0.0-4
cfa3fd
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
cfa3fd
cfa3fd
* Wed Jul 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.0-3
cfa3fd
- Rebuilt for SCL.
cfa3fd
cfa3fd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
cfa3fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cfa3fd
cfa3fd
* Tue Jul 10 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.0-1
cfa3fd
- Initial package