SPEC.rubygem-simpleidn/rubygem-simpleidn.spec
2025-02-23 20:30:50 +08:00

41 lines
1008 B
RPMSpec

%global gem_name simpleidn
Name: rubygem-simpleidn
Version: 0.2.3
Release: 0
%define mod_name simpleidn
%define mod_full_name %{mod_name}-%{version}
BuildRequires: ruby >= 2.2
BuildRequires: rubygem-gem2rpm
BuildRequires: ruby-macros >= 5
URL: https://github.com/mmriis/simpleidn
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Punycode ACE to unicode UTF-8 (and vice-versa) string conversion
License: MIT
%description
This gem allows easy conversion from punycode ACE strings to unicode UTF-8
strings and vice-versa.
%prep
%autosetup -n %{mod_full_name} -p1
gem unpack %{SOURCE0}
%build
gem build ../%{mod_full_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%{gem_libdir}
%{_datadir}/gems/doc/%{mod_full_name}/
%{_datadir}/gems/gems/%{mod_full_name}/
%exclude %{gem_cache}
%{gem_spec}
%changelog