From cfa3fd61e9f2f0528935e20028594451bba74bec Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 04 2015 07:29:42 +0000 Subject: import rh-ror41-rubygem-ref-1.0.5-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75227d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ref-1.0.5.gem diff --git a/.rh-ror41-rubygem-ref.metadata b/.rh-ror41-rubygem-ref.metadata new file mode 100644 index 0000000..eb167e2 --- /dev/null +++ b/.rh-ror41-rubygem-ref.metadata @@ -0,0 +1 @@ +1fbc1c4552a04e5543dc65e41c94be0a7773fc40 SOURCES/ref-1.0.5.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-ref.spec b/SPECS/rubygem-ref.spec new file mode 100644 index 0000000..c5d092c --- /dev/null +++ b/SPECS/rubygem-ref.spec @@ -0,0 +1,109 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +# Generated from ref-1.0.0.gem by gem2rpm -*- rpm-spec -*- +%global gem_name ref + +Summary: Library that implements weak, soft, and strong references in Ruby +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 1.0.5 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://github.com/bdurand/ref +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +Library that implements weak, soft, and strong references in Ruby that work +across multiple runtimes (MRI, REE, YARV, Jruby, Rubinius, and IronRuby). Also +includes implementation of maps/hashes that use references and a reference +queue. + + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name} + +%prep +%setup -n %{pkg_name}-%{version} -q -c -T +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +%{?scl:scl enable %{scl} - << \EOF} +# To run the tests using minitest 5 +ruby -rminitest/autorun - << \RUBY + module Kernel + alias orig_require require + remove_method :require + + def require path + orig_require path unless path == 'test/unit' + end + end + + Test = Minitest + + Dir.glob "./test/**/*_test.rb", &method(:require) +RUBY +%{?scl:EOF} +popd + + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/ext +%doc %{gem_instdir}/MIT_LICENSE +%{gem_libdir} +%exclude %{gem_libdir}/org +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.rdoc +%{gem_instdir}/VERSION +%{gem_instdir}/test +%exclude %{gem_instdir}/test/*.rbc + +%changelog +* Mon Jan 26 2015 Josef Stribny - 1.0.5-1 +- Update to 1.0.5 + +* Fri Mar 21 2014 Vít Ondruch - 1.0.0-5 +- Rebuid against new scl-utils to depend on -runtime package. + Resolves: rhbz#1069109 + +* Mon May 25 2013 Josef Stribny - 1.0.0-4 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Wed Jul 25 2012 Bohuslav Kabrda - 1.0.0-3 +- Rebuilt for SCL. + +* Sat Jul 21 2012 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 10 2012 Vít Ondruch - 1.0.0-1 +- Initial package