代码拉取完成,页面将自动刷新
%global gem_name http-cookie
%global rubyabi 1.9.1
Name: rubygem-%{gem_name}
Version: 1.1.0
Release: 1
Summary: Ruby library to handle HTTP Cookies based on RFC 6265
License: MIT
URL: https://github.com/sparklemotion/http-cookie
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/sparklemotion/http-cookie.git && cd http-cookie
# git archive -v -o http-cookie-1.1.0-tests.tar.gz v1.1.0 test/
Source1: %{gem_name}-%{version}-tests.tar.gz
Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel rubygem(test-unit) rubygem(domain_name) rubygem(sqlite3)
Requires: ruby(rubygems) rubygem(domain_name)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}-%{release}
%description
HTTP::Cookie is a Ruby library to handle HTTP Cookies based on RFC 6265. It
has with security, standards compliance and compatibility in mind, to behave
just the same as today's major web browsers. It has builtin support for the
legacy cookies.txt and the latest cookies.sqlite formats of Mozilla Firefox,
and its modular API makes it easy to add support for a new backend store.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
%setup -q -n %{gem_name}-%{version} -b1
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
cp -a %{_builddir}/test .
ruby -Ilib:test:. -e 'Dir.glob("test/test_*.rb").each {|f| require f}'
popd
%files
%dir %{gem_instdir}
%doc %{gem_instdir}/[A-Z]*
%{gem_libdir}/
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}/
%changelog
* Fri Nov 14 2025 yaoxin <1024769339@qq.com> - 1.1.0-1
- Update to 1.0.0:
* Implement Cookie#to_h.
* Reduce gem size by excluding test files
* Thu Mar 27 2025 openeuler_bot <infra@openeuler.sh> - 1.0.8-1
- Fix error formatting bug in HTTP::CookieJar::AbstractStore (version: 1.0.6).
- Allow non-RFC 3986-compliant URLs (version: 1.0.6).
- Explicitly require "cgi" to avoid NameError in some applications (version: 1.0.7).
- Cookie#expires= accepts DateTime objects (version: 1.0.8).
* Wed Jan 4 2023 liyanan <liyanan32@h-partners.com> - 1.0.5-1
- Update to 1.0.5
* Wed Aug 26 2020 tushenmei <tushenmei@huawei.com> - 1.0.3-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。