代码拉取完成,页面将自动刷新
%global gem_name unf
%undefine __brp_mangle_shebangs
Name: rubygem-%{gem_name}
Version: 0.2.0
Release: 1
License: BSD-2-Clause
Summary: Wrapper library to bring Unicode Normalization Form support to Ruby/JRuby
URL: https://github.com/knu/ruby-unf
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/knu/ruby-%{gem_name}/archive/refs/tags/v%{version}.tar.gz
Requires: ruby(release) ruby(rubygems) rubygem(unf_ext)
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) rubygem(shoulda) rubygem(unf_ext)
BuildRequires: rubygem(test-unit)
BuildRequires: rubygem(rake)
BuildRequires: rubygem(bundler)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}-%{release}
%description
This is a wrapper library to bring Unicode Normalization Form support
to Ruby/JRuby.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b 1
%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}
ln -s %{_builddir}/ruby-%{gem_name}-%{version}/test test
for f in test/test_*.rb
do
ruby -Ilib:test:. $f
done
popd
%files
%dir %{gem_instdir}
%doc %{gem_instdir}/[A-Z]*
%{gem_libdir}/
%exclude %{gem_cache}
%{gem_spec}
%exclude %{gem_instdir}/.github/
%exclude %{gem_instdir}/ext/
%exclude %{gem_instdir}/unf.gemspec
%files doc
%doc %{gem_docdir}
%changelog
* Fri Jun 13 2025 zhihang <zhihang161013@outlook.com> - 0.2.0-1
- Use String#unicode_normalize on Ruby >=2.2 unless unf_ext is already loaded. (version:0.2.0)
- Reduce the gem size by removing unnecessary files. (version:0.2.0)
* Tue May 10 2022 yaoxin <yaoxin30@h-partners.com> - 0.1.4-2
- License compliance rectification
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 0.1.4-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。