diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ca1757 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/arel-7.1.4-tests.tgz +SOURCES/arel-7.1.4.gem diff --git a/.rh-ror50-rubygem-arel.metadata b/.rh-ror50-rubygem-arel.metadata new file mode 100644 index 0000000..4e9e26c --- /dev/null +++ b/.rh-ror50-rubygem-arel.metadata @@ -0,0 +1,2 @@ +9bbfefa9cfc5e9b14ac1b4597ead1e4c684b8e48 SOURCES/arel-7.1.4-tests.tgz +14d2c5204d1f61699391213d44181a8be4bf2e90 SOURCES/arel-7.1.4.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..8ccd8e9 --- /dev/null +++ b/SPECS/rubygem-arel.spec @@ -0,0 +1,149 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name arel + +Summary: Arel is a SQL AST manager for Ruby +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 7.1.4 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: https://github.com/rails/%{gem_name} +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/rails/arel.git && cd arel +# git checkout v7.1.4 && tar czvf arel-7.1.4-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) +# ruby package has just soft dependency on rubygem(bigdecimal), while +# Arel always requires it. +Requires: %{?scl_prefix_ruby}rubygem(bigdecimal) +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} + +# Explicitly require runtime subpackage, as long as older scl-utils do not generate it +%{?scl:Requires: %{?scl_prefix}runtime} + +%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} + +%{?scl:scl enable %{scl} - << \EOF} +ruby -Ilib:test -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' +%{?scl:EOF} +popd + +%files +# There is no %%license macro on RHEL6. +# https://bugzilla.redhat.com/show_bug.cgi?id=1386246 +%{!?_licensedir:%global license %%doc} + +%dir %{gem_instdir} +%exclude %{gem_instdir}/.* +%{gem_libdir} +%license %{gem_instdir}/MIT-LICENSE.txt +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_instdir}/History.txt +%doc %{gem_instdir}/README.md +%doc %{gem_docdir} + +%changelog +* Tue Sep 27 2016 Jun Aruga - 7.1.4-1 +- Update to Arel 7.1.4. + +* Wed Jul 27 2016 Pavel Valena - 6.0.3-4 +- Add %%{scl}-runtime to Requires + +* 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