Ai
5 Star 0 Fork 4

src-openEuler/rubygem-unf
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-unf.spec 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
zhihang 提交于 2025-06-13 11:50 +08:00 . update specfile
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-unf.git
git@gitee.com:src-openeuler/rubygem-unf.git
src-openeuler
rubygem-unf
rubygem-unf
master

搜索帮助