# Generated from addressable-2.5.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name addressable Name: rubygem-%{gem_name} Version: 2.7.0 Release: 1%{?dist} Summary: URI Implementation License: ASL 2.0 URL: https://github.com/sporkmonger/addressable Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: rubygem(bigdecimal) BuildRequires: rubygem(public_suffix) BuildRequires: rubygem(rspec-its) BuildArch: noarch %description Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. It is flexible, offers heuristic parsing, and additionally provides extensive support for IRIs and URI templates. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Drop Bundler dependency. sed -i "/require 'bundler\/setup'/ s/^/#/" spec/spec_helper.rb # We don't care about code coverage. sed -i '/^begin$/,/^end$/ s/^/#/' spec/spec_helper.rb # rack-mount was deprecated upstream and is not available in Fedora anymore. # https://github.com/sporkmonger/addressable/issues/382 mv spec/addressable/rack_mount_compat_spec.rb{,.disabled} # Remove tests failing because of missing internet connection. mv spec/addressable/net_http_compat_spec.rb{,.disabled} LC_ALL=C.UTF-8 rspec spec/ popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/data %{gem_libdir} %{gem_instdir}/tasks %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/spec %changelog * Tue Apr 07 2020 Vít Ondruch - 2.7.0-1 - Update to Addressable 2.7.0. * Thu Jan 30 2020 Fedora Release Engineering - 2.5.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 2.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Aug 29 2017 Shawn Starr - 2.5.2-1 - Spec changes from František Zatloukal - New upstream release - Add BuildRequires: rubygem(idn) - Drop a lot of Build dependencies, kudos to vondruch@redhat.com - Fix test fails in mock - Comment out failing tests - Add BuildRequires: rubygem(bundler) - Switched rspec-its to rspec-core - Re-Enable testing suite - add no-rack-mount.patch to fix tests - Regenerate spec with gem2rpm * Thu Feb 04 2016 Fedora Release Engineering - 2.3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Shawn Starr - 2.3.8-1 - New upstream release, fix some build changes * Sun Jun 08 2014 Fedora Release Engineering - 2.3.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Apr 23 2014 Shawn Starr - 2.3.6-5 - Fix it harder * Wed Apr 23 2014 Shawn Starr - 2.3.6-4 - Disable test 'Addressable::URI when parsed from 'http://example.com' should have a different hash from http://EXAMPLE.com' fails on koji but not in mock * Wed Apr 23 2014 Shawn Starr - 2.3.6-3 - Disable GNU idn ruby bindings fallback to pure, rubygem-idn is dead upstream * Wed Apr 23 2014 Shawn Starr - 2.3.6-2 - minor build issue.. * Wed Apr 23 2014 Shawn Starr - 2.3.6-1 - New upstream release * Fri Feb 07 2014 Shawn Starr - 2.3.5-1 - New upstream release * Sun Aug 04 2013 Fedora Release Engineering - 2.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Mar 07 2013 Josef Stribny - 2.3.2-5 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Tue Feb 19 2013 Shawn Starr - 2.3.2-4 - Changes in rubygem rspec packaging, adjust build dependencies accordingly * Thu Feb 14 2013 Fedora Release Engineering - 2.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 23 2012 Shawn Starr - 2.3.2-2 - Fix build issue disable one test due to DNS lookup not available on koji mock builders * Thu Aug 23 2012 Shawn Starr - 2.3.2-1 - Bump to latest upstream - Fix spec test due to namespace/classname conflict * Sat Jul 21 2012 Fedora Release Engineering - 2.2.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Feb 09 2012 Shawn Starr - 2.2.6-3 - Remove patch passes all tests now. * Sun Nov 06 2011 Shawn Starr - 2.2.6-2 - Fix up package from bugzilla reviews * Tue Jul 19 2011 Shawn Starr - 2.2.6-1 - Bump to latest upstream - Overhall spec, split -doc packaging - Fix loader path to idn.so extension * Thu Apr 01 2010 Adam Young - 2.1.1-1 - Initial package