From 10a2fa2996940dbb029c0667e2af6aac8bcda0dc Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:16:08 +0000 Subject: import rh-ror42-rubygem-arel-6.0.3-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..055900c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/arel-6.0.3-tests.tgz +SOURCES/arel-6.0.3.gem diff --git a/.rh-ror42-rubygem-arel.metadata b/.rh-ror42-rubygem-arel.metadata new file mode 100644 index 0000000..f678955 --- /dev/null +++ b/.rh-ror42-rubygem-arel.metadata @@ -0,0 +1,2 @@ +84ffb4a4016efd92e8c009a962763053babf8ea0 SOURCES/arel-6.0.3-tests.tgz +ade532ea27f09748d7d6ac8778b15d4438860675 SOURCES/arel-6.0.3.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-arel.spec b/SPECS/rubygem-arel.spec new file mode 100644 index 0000000..2902c45 --- /dev/null +++ b/SPECS/rubygem-arel.spec @@ -0,0 +1,137 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name arel + +Summary: Arel is a Relational Algebra for Ruby +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 6.0.3 +Release: 3%{?dist} +Group: Development/Languages +License: MIT +URL: http://github.com/rails/%{gem_name} +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/rails/arel.git && cd arel +# git checkout v6.0.3 && tar czvf arel-6.0.3-tests.tgz ./test/ +Source1: arel-%{version}-tests.tgz + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?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) +BuildRequires: %{?scl_prefix_ruby}rubygem(bigdecimal) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +Arel is a Relational Algebra for Ruby. It 1) simplifies the generation complex +of SQL queries and it 2) adapts to various RDBMS systems. It is intended to be +a framework framework; that is, you can build your own ORM with it, focusing +on innovative object and collection modeling as opposed to database +compatibility and query generation. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires:%{?scl_prefix}%{pkg_name} = %{version}-%{release} + +%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} +tar xf %{SOURCE1} + +# Fix tests according to later upstream commit 0d7b888066b1f319e085c008aeb6c5f3ca05fd8a +sed -i '591s/manager = Arel::SelectManager.new/manager = Arel::SelectManager.new Table.engine/' test/test_select_manager.rb +sed -i '606s/manager = Arel::SelectManager.new/manager = Arel::SelectManager.new Table.engine/' test/test_select_manager.rb + +%{?scl:scl enable %{scl} - << \EOF} +ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)' +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.* +%{gem_libdir} +%doc %{gem_instdir}/MIT-LICENSE.txt +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_instdir}/History.txt +%doc %{gem_instdir}/README.markdown +%doc %{gem_docdir} + +%changelog +* Thu Feb 25 2016 Pavel Valena - 6.0.3-3 +- Update to 6.0.3 + +* Wed Jan 14 2015 Vít Ondruch - 5.0.0-2 +- Update to arel 5.0.0. + +* Thu Mar 20 2014 Vít Ondruch - 4.0.0-2 +- Rebuid against new scl-utils to depend on -runtime package. + Resolves: rhbz#1069109 + +* Mon Oct 14 2013 Josef Stribny - 4.0.0-1 +- Update to arel 4.0.0 + +* Tue Jun 18 2013 Josef Stribny - 3.0.2-4 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Tue Jul 31 2012 Bohuslav Kabrda - 3.0.2-3 +- Exclude the cached gem. + +* Wed Jul 25 2012 Bohuslav Kabrda - 3.0.2-2 +- Specfile cleanup + +* Mon Apr 02 2012 Bohuslav Kabrda - 3.0.2-1 +- Rebuilt for scl. +- Updated to 3.0.2. + +* Fri Mar 09 2012 Vít Ondruch - 2.0.9-4 +- Fix dependency on BigDecimal. + +* Thu Jan 19 2012 Vít Ondruch - 2.0.9-3 +- Rebuilt for Ruby 1.9.3. + +* Sat Jan 14 2012 Fedora Release Engineering - 2.0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Mar 24 2011 Vít Ondruch - 2.0.9-1 +- Update to Arel 2.0.9 +- Removed unnecessary cleanup + +* Wed Feb 09 2011 Fedora Release Engineering - 2.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 28 2011 Vít Ondruch - 2.0.7-1 +- Updated to Arel 2.0.7 +- Removed some build dependencies + +* Fri Jan 07 2011 Vít Ondruch - 2.0.6-3 +- Move all documentation into subpackage + +* Fri Jan 07 2011 Vít Ondruch - 2.0.6-2 +- Clean buildroot + +* Fri Jan 7 2011 Vít Ondruch - 2.0.6-1 +- Initial package