%global gem_name addressable
Name: rubygem-%{gem_name}
Version: 2.9.1
Release: 1
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) rubygems-devel rubygem(bigdecimal) rubygem(public_suffix)
BuildArch: noarch
%description
Addressable is a replacement for the URI implementation that is part of
Ruby's standard library. It more closely conforms to the relevant RFCs and
adds support for URI and URL templates.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%autosetup -n %{gem_name}-%{version} -p1
# 2.9.1 is a thin gem: data.tar.gz no longer bundles addressable.gemspec, so
# regenerate it from the gem metadata for `gem build %{gem_name}.gemspec` in %build
gem spec %{SOURCE0} --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%changelog
* Sat Nov 14 2026 infra_team <zhaiwenjie1@huawei.com> - 2.9.1-1
- Upgrade to 2.9.1 to fix CVE-2026-126353 (ReDoS in
Addressable::Template#match and #extract with several exploded variables,
GHSA-4w5q-wg7v-w6gp)
- Drop Allow-public_suffix-v7 and CVE-2026-35611 backport patches, all
included upstream in 2.9.1
- Drop %check and test-only BuildRequires: 2.9.1 gem no longer bundles the
test suite
* Mon Apr 13 2026 yaoxin <1024769339@qq.com> - 2.8.7-3
- Fix CVE-2026-35611
* Wed Nov 19 2025 yaoxin <1024769339@qq.com> - 2.8.7-2
- Allow public_suffix v7
* Wed Sep 18 2024 Ge Wang <wang__ge@126.com> - 2.8.7-1
- Upgrade to 2.8.7
* Wed Feb 21 2024 liyanan <liyanan61@h-partners.com> - 2.8.6-1
- Upgrade to 2.8.6
- Memoize regexps for common character classes
* Mon Nov 13 2023 Ge Wang <wang__Ge@126.com> - 2.8.5-1
- Upgrade to 2.8.5
* Thu Jun 30 2022 wulei <wulei80@h-partners.com> - 2.8.0-1
- Upgrade to 2.8.0
* Fri Jan 21 2022 chenchen <chen_aka_jan@163.com> - 2.5.2-3
- remove deprecated warning for fix build error
* Wed Jul 14 2021 liwu <liwu13@huawei.com> - 2.5.2-2
- fix CVE-2021-32740
* Tue Aug 18 2020 shenleizhao <shenleizhao@huawei.com> - 2.5.2-1
- package init