diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9430604 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tzinfo-1.2.2.gem diff --git a/.rh-ror50-rubygem-tzinfo.metadata b/.rh-ror50-rubygem-tzinfo.metadata new file mode 100644 index 0000000..6dd7a28 --- /dev/null +++ b/.rh-ror50-rubygem-tzinfo.metadata @@ -0,0 +1 @@ +140005ab4ca0a87020b50c54c7cde74de1154340 SOURCES/tzinfo-1.2.2.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-tzinfo.spec b/SPECS/rubygem-tzinfo.spec new file mode 100644 index 0000000..9d0fa33 --- /dev/null +++ b/SPECS/rubygem-tzinfo.spec @@ -0,0 +1,149 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +# Generated from tzinfo-0.3.26.gem by gem2rpm -*- rpm-spec -*- +%global gem_name tzinfo + +%global download_path http://rubygems.org/downloads/ + +Summary: Daylight-savings aware timezone library +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 1.2.2 +Release: 6%{?dist} +Group: Development/Languages +License: MIT +URL: http://tzinfo.github.io/ +Source0: %{download_path}%{gem_name}-%{version}.gem + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix_ruby}ruby +Requires: %{?scl_prefix}rubygem(thread_safe) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix}rubygem(thread_safe) +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}rubygem(minitest) +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 +TZInfo is a Ruby library that uses the standard tz (Olson) database to provide +daylight savings aware transformations between times in different time zones. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +This package contains documentation for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl} - << \EOF} +set -e +gem unpack %{SOURCE0} + +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%{?scl:EOF} + + +%build +%{?scl:scl enable %{scl} - << \EOF} +set -e +gem build %{gem_name}.gemspec +%gem_install +%{?scl:EOF} + + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +%{?scl:scl enable %{scl} - << \EOF} +set -e +ruby -Ilib -e "require './test/ts_all'" +ruby -Ilib -e "require './test/ts_all_zoneinfo.rb'" +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%exclude %{gem_instdir}/.yardopts +%{gem_spec} + +%files doc +%doc %{gem_instdir}/CHANGES.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/test +%{gem_instdir}/%{gem_name}.gemspec +%{gem_docdir} + +%changelog +* Wed Feb 15 2017 Jun Aruga - 1.2.2-6 +- Add "set -e". + +* Wed Apr 06 2016 Pavel Valena - 1.2.2-5 +- Fix: build should fail on test failure + +* Mon Feb 22 2016 Pavel Valena - 1.2.2-4 +- Add scl macros + +* Fri Jan 16 2015 Josef Stribny - 1.2.2-1 +- Update to 1.2.2 + +* Fri Mar 21 2014 Vít Ondruch - 0.3.37-2 +- Rebuid against new scl-utils to depend on -runtime package. + Resolves: rhbz#1069109 + +* Wed Jun 12 2013 Josef Stribny - 0.3.37-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Update to 0.3.37 + +* Tue Jul 31 2012 Bohuslav Kabrda - 0.3.33-2 +- Exclude the cached gem. + +* Wed Jul 25 2012 Bohuslav Kabrda - 0.3.33-1 +- Update to Tzinfo 0.3.33. +- Specfile cleanup + +* Mon Apr 02 2012 Bohuslav Kabrda - 0.3.32-1 +- Rebuilt for scl. +- Updated to 0.3.32 + +* Thu Jan 19 2012 Vít Ondruch - 0.3.30-3 +- Rebuilt for Ruby 1.9.3. + +* Sat Jan 14 2012 Fedora Release Engineering - 0.3.30-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Oct 06 2011 Vít Ondruch - 0.3.30-1 +- Update to tzinfo 0.3.30. + +* Sun Apr 10 2011 - 0.3.26-1 +- Updated mail to latest upstream release (v.0.3.26 2011-04-01) + +* Wed Feb 09 2011 Fedora Release Engineering - 0.3.24-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jan 25 2011 - 0.3.24-2 +- Fix Comment 3 #668098. https://bugzilla.redhat.com/show_bug.cgi?id=668098#c3 + +* Tue Jan 18 2011 - 0.3.24-1 +- Updated mail to latest upstream release + +* Sat Jan 08 2011 - 0.3.23-1 +- Initial package