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