diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..074b785 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/activemodel-5.0.1-tests.tgz +SOURCES/activemodel-5.0.1.gem diff --git a/.rh-ror50-rubygem-activemodel.metadata b/.rh-ror50-rubygem-activemodel.metadata new file mode 100644 index 0000000..d994ac1 --- /dev/null +++ b/.rh-ror50-rubygem-activemodel.metadata @@ -0,0 +1,2 @@ +2da9ef6c2f18dd06afbd29e8a976321978da6452 SOURCES/activemodel-5.0.1-tests.tgz +9aeabd9d02f982c010bd59c3db9774d95494177b SOURCES/activemodel-5.0.1.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-activemodel.spec b/SPECS/rubygem-activemodel.spec new file mode 100644 index 0000000..3299f9a --- /dev/null +++ b/SPECS/rubygem-activemodel.spec @@ -0,0 +1,184 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name activemodel + +Summary: A toolkit for building modeling frameworks (part of Rails) +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 5.0.1 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://rubyonrails.org +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/rails/rails.git && cd rails/activemodel +# git checkout v5.0.1 && tar czvf activemodel-5.0.1-tests.tgz test/ +Source1: %{gem_name}-%{version}-tests.tgz + +# Let's keep Requires and BuildRequires sorted alphabeticaly +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix}rubygem(activesupport) = %{version} +Requires: %{?scl_prefix}rubygem(builder) +BuildRequires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix}rubygem(activesupport) = %{version} +BuildRequires: %{?scl_prefix}rubygem(bcrypt) => 3.1.2 +BuildRequires: %{?scl_prefix}rubygem(builder) +BuildRequires: %{?scl_prefix}rubygem(mocha) +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 +A toolkit for building modeling frameworks like Active Record. Rich support +for attributes, callbacks, validations, serialization, internationalization, +and testing. + +%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} +tar xzvf %{SOURCE1} + +# This depends on Rails, remove for now +rm ./test/cases/railtie_test.rb + +# TODO: Run test in order! Otherwise we get a lot of errors. +%{?scl:scl enable %{scl} - << \EOF} +ruby -Ilib:test -e "Dir.glob('./test/**/*_test.rb').sort.each {|t| require t}" +%{?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} +%license %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/README.rdoc + +%changelog +* Thu Jan 12 2017 Jun Aruga - 5.0.1-1 +- Update to Active Model 5.0.1. + +* Mon Apr 04 2016 Pavel Valena - 4.2.6-1 +- Update to 4.2.6 + +* Wed Feb 17 2016 Pavel Valena - 4.2.5.1-3 +- Update to 4.2.5.1 + +* Wed Feb 10 2016 Pavel Valena - 4.1.5-2 +- Fix possible input validation circumvention - rhbz#1301973 + - Resolves: CVE-2016-0753 + +* Tue Jan 20 2015 Josef Stribny - 4.1.5-1 +- Update to 4.1.5 + +* Thu Jan 23 2014 Josef Stribny - 4.0.2-2 +- Rebuild with the right Ruby + +* Wed Dec 04 2013 Josef Stribny - 4.0.2-1 +- Update to ActiveModel 4.0.2 + - Resolves: rhbz#1037985 + +* Thu Nov 21 2013 Josef Stribny - 4.0.1-1 +- Update to ActiveModel 4.0.1 + +* Fri Oct 04 2013 Josef Stribny - 4.0.0-2 +- Disable xml_serialization_test.rb which fails in brew for now + +* Thu Oct 03 2013 Josef Stribny - 4.0.0-1 +- Update to ActiveSupport 4.0.0. + +* Wed Jun 12 2013 Josef Stribny - 3.2.13-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Update to ActiveModel 3.2.13 + +* Tue Feb 12 2013 Vít Ondruch - 3.2.8-2 +- Fix for CVE-2013-0276. + +* Tue Sep 18 2012 Bohuslav Kabrda - 3.2.8-1 +- Update to ActiveModel 3.2.8. + +* Tue Jul 31 2012 Bohuslav Kabrda - 3.2.6-3 +- Exclude the cached gem. + +* Wed Jul 25 2012 Bohuslav Kabrda - 3.2.6-2 +- Took from Fedora and rebuilt for SCL again. + +* Wed Jul 18 2012 Bohuslav Kabrda - 3.2.6-1 +- Update to ActiveModel 3.2.6. +- Remove no longer needed I18n dependency. + +* Fri Jun 15 2012 Vít Ondruch - 3.0.15-1 +- Update to ActiveModel 3.0.15. + +* Fri Jun 01 2012 Vít Ondruch - 3.0.13-1 +- Update to ActiveModel 3.0.13. + +* Tue Jan 24 2012 Bohuslav Kabrda - 3.0.11-1 +- Rebuilt for Ruby 1.9.3. +- Update to ActiveModel 3.0.11. + +* Sat Jan 14 2012 Fedora Release Engineering - 3.0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Aug 22 2011 Vít Ondruch - 3.0.10-1 +- Update to ActiveModel 3.0.10 + +* Mon Jul 04 2011 Vít Ondruch - 3.0.9-1 +- Update to ActiveModel 3.0.9 + +* Fri Mar 25 2011 Vít Ondruch - 3.0.5-1 +- Update to ActiveModel 3.0.5 + +* Wed Feb 09 2011 Fedora Release Engineering - 3.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Feb 03 2011 Vít Ondruch - 3.0.3-3 +- Removed unnecessary clean section. + +* Mon Jan 31 2011 Vít Ondruch - 3.0.3-2 +- Added build dependencies. + +* Tue Jan 25 2011 Vít Ondruch - 3.0.3-1 +- Upgraded to activemodel 3.0.3 +- Added documentation subpackage +- Added test execution during build +- Removed unnecessary cleanup from install section + +* Tue Oct 26 2010 Jozef Zigmund - 3.0.1-1 +- Initial package