%{?scl:%scl_package rubygem-%{gem_name}} %{!?scl:%global pkg_name %{name}} %global gem_name unicode-display_width Summary: Ruby library to determine the monospace display width of a string Name: %{?scl_prefix}rubygem-%{gem_name} Version: 2.2.0 Release: 3%{dist} License: MIT URL: https://github.com/janlelis/unicode-display_width Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: %{?scl_prefix}rubygems-devel BuildRequires: %{?scl_prefix}rubygems BuildArch: noarch %description This gem provides an API to get the monospace display width of a string, accounting for the rendered size of East Asian characters and other Unicode classes, (optionally) including emoji. %package doc BuildArch: noarch Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} Summary: Documentation for rubygem-%{gem_name} %description doc This package contains documentation for rubygem-%{gem_name}. %prep %{?scl:scl enable %{scl} "} gem unpack %{SOURCE0} %{?scl:"} %setup -n %{gem_name}-%{version} -T -D -q %{?scl:scl enable %{scl} "} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:"} %build # Create the gem as gem install only works on a gem file %{?scl:scl enable %{scl} "} gem build %{gem_name}.gemspec %{?scl:"} %{?scl:scl enable %{scl} "} %gem_install %{?scl:"} %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ if [ -e %{buildroot}%{gem_instdir}/.yardoc ]; then rm -f %{buildroot}%{gem_instdir}/.yardoc fi %files %dir %{gem_instdir} %{gem_libdir} %license %{gem_instdir}/MIT-LICENSE.txt %doc %{gem_instdir}/README.md %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/data %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Fri Jul 21 2023 Fedora Release Engineering - 2.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Aug 14 2022 Dan Callaghan - 2.2.0-1 - new upstream release 2.2.0: https://github.com/janlelis/unicode-display_width/blob/v2.2.0/CHANGELOG.md * Sat Jul 23 2022 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Aug 15 2021 Dan Callaghan - 2.0.0-1 - new upstream release 2.0.0: https://github.com/janlelis/unicode-display_width/blob/v2.0.0/CHANGELOG.md * Fri Jul 23 2021 Fedora Release Engineering - 1.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Oct 13 2020 Dan Callaghan - 1.7.0-1 - new upstream release 1.7.0 * Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Apr 12 2017 Dominic Cleal - 1.2.1-1 - rebase to 1.2.1 * Sat Feb 11 2017 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Mar 03 2016 Miroslav Suchý 1.0.0-1 - rebase to 1.0.0 * Wed Feb 10 2016 Miroslav Suchý 0.3.1-2 - rebase to 0.3.1 * Fri Feb 13 2015 Miroslav Suchý 0.2.0-1 - rebase to upstream 0.2.0 * Mon Nov 25 2013 Miroslav Suchý 0.1.1-9 - 998469 - replace rm with exclude - 998469 - require rubygems in main package - 998469 - use full URL in SOURCE0 - 998469 - use https for URL * Fri Sep 13 2013 Miroslav Suchý 0.1.1-8 - generate gem again during buildtime * Mon Aug 19 2013 Miroslav Suchý 0.1.1-7 - change group - summary should not end with dot * Thu Jul 04 2013 Dominic Cleal 0.1.1-6 - change ruby(abi) to ruby(release) for F19+ (dcleal@redhat.com) - delete all zero sized tito.props (msuchy@redhat.com) - with recent tito you do not need SCL meta package (msuchy@redhat.com) * Thu Mar 14 2013 Miroslav Suchý 0.1.1-4 - new package built with tito * Mon Sep 10 2012 Miroslav Suchý 0.1.1-3 - remove yardoc (msuchy@redhat.com) * Mon Sep 10 2012 Miroslav Suchý 0.1.1-2 - new package built with tito