40 lines
1023 B
RPMSpec
40 lines
1023 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(release) rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean)
|
|
URL: https://github.com/mmriis/simpleidn
|
|
Source0: https://rubygems.org/gems/%{mod_full_name}.gem
|
|
# did we need this?
|
|
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
|
|
|