rubygem-addressable/rubygem-addressable.spec

82 lines
2.2 KiB
RPMSpec
Raw Normal View History

2020-08-25 11:04:06 +08:00
%global gem_name addressable
Name: rubygem-%{gem_name}
2024-02-21 14:18:53 +08:00
Version: 2.8.6
2022-07-01 14:52:59 +08:00
Release: 1
2020-08-25 11:04:06 +08:00
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)
BuildRequires: rubygem(rspec-its) rubygem(idn)
BuildArch: noarch
2022-07-01 14:52:59 +08:00
2020-08-25 11:04:06 +08:00
%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
2022-07-01 14:52:59 +08:00
%setup -q -n %{gem_name}-%{version}
2020-08-25 11:04:06 +08:00
%build
2022-07-01 14:52:59 +08:00
gem build ../%{gem_name}-%{version}.gemspec
2020-08-25 11:04:06 +08:00
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
sed -i "/require 'bundler\/setup'/ s/^/#/" spec/spec_helper.rb
sed -i '/^begin$/,/^end$/ s/^/#/' spec/spec_helper.rb
2022-07-01 14:52:59 +08:00
mv spec/addressable/net_http_compat_spec.rb{,.disabled}
LC_ALL=C.UTF-8 rspec spec/
2020-08-25 11:04:06 +08:00
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
2022-07-01 14:52:59 +08:00
%{gem_instdir}/%{gem_name}.gemspec
2020-08-25 11:04:06 +08:00
%changelog
2024-02-21 14:18:53 +08:00
* Wed Feb 21 2024 liyanan <liyanan61@h-partners.com> - 2.8.6-1
- Upgrade to 2.8.6
- Memoize regexps for common character classes
2023-11-13 10:12:28 +08:00
* Mon Nov 13 2023 Ge Wang <wang__Ge@126.com> - 2.8.5-1
- Upgrade to 2.8.5
2022-07-01 14:52:59 +08:00
* 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
2021-07-14 17:17:15 +08:00
* Wed Jul 14 2021 liwu <liwu13@huawei.com> - 2.5.2-2
- fix CVE-2021-32740
2020-08-25 11:04:06 +08:00
* Tue Aug 18 2020 shenleizhao <shenleizhao@huawei.com> - 2.5.2-1
- package init