%{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} # Generated from tzinfo-0.3.26.gem by gem2rpm -*- rpm-spec -*- %global gem_name tzinfo %global download_path http://rubygems.org/downloads/ %global rubyabi 1.9.1 Summary: Daylight-savings aware timezone library Name: %{?scl_prefix}rubygem-%{gem_name} Version: 0.3.33 Release: 2%{?dist} Group: Development/Languages License: MIT URL: http://tzinfo.rubyforge.org/ Source0: %{download_path}%{gem_name}-%{version}.gem Requires: %{?scl_prefix}ruby(abi) = %{rubyabi} Requires: %{?scl_prefix}ruby(rubygems) Requires: %{?scl_prefix}ruby BuildRequires: %{?scl_prefix}rubygems-devel BuildRequires: %{?scl_prefix}ruby(abi) = %{rubyabi} BuildRequires: %{?scl_prefix}ruby BuildRequires: %{?scl_prefix}rubygem(minitest) BuildArch: noarch Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} %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 %setup -q -c -T mkdir -p .%{gem_dir} %{?scl:scl enable %scl "} gem install --local --install-dir .%{gem_dir} \ --force %{SOURCE0} %{?scl:"} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} %{?scl:scl enable %scl "} testrb test/ts_all.rb %{?scl:"} popd %files %dir %{gem_instdir} %doc %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_instdir}/CHANGES %doc %{gem_instdir}/README %{gem_instdir}/Rakefile %{gem_instdir}/test %{gem_docdir} %changelog * 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