%global gem_name rouge Name: rubygem-%{gem_name} Version: 3.8.0 Release: 1%{?dist} Summary: Pure-ruby colorizer based on pygments License: MIT and BSD URL: http://rouge.jneen.net/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0 BuildRequires: help2man BuildArch: noarch %description Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} cd %{gem_name}-%{version} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x # Generate man page from "rougify --help" output export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}" mkdir -p %{buildroot}%{_mandir}/man1 help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \ %{buildroot}%{_bindir}/rougify %files %license %{gem_instdir}/LICENSE %{_bindir}/rougify %{_mandir}/man1/rougify.1* %dir %{gem_instdir} %{gem_instdir}/bin %exclude %{gem_instdir}/rouge.gemspec %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %changelog * Thu Aug 15 2019 Fabio Valentini - 3.8.0-1 - Update to version 3.8.0. * Tue Jul 30 2019 Fabio Valentini - 3.7.0-1 - Update to version 3.7.0. * Wed Jul 10 2019 Fabio Valentini - 3.6.0-1 - Update to version 3.6.0. * Tue Jul 02 2019 Fabio Valentini - 3.5.1-1 - Update to version 3.5.1. * Sat Feb 02 2019 Fedora Release Engineering - 3.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 02 2018 Fabio Valentini - 3.3.0-1 - Update to version 3.3.0. * Fri Aug 17 2018 Fabio Valentini - 3.2.1-1 - Update to version 3.2.1. * Thu Aug 02 2018 Fabio Valentini - 3.2.0-1 - Update to version 3.2.0. * Sat Jul 14 2018 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 04 2018 Fabio Valentini - 3.1.1-1 - Update to version 3.1.1. * Fri Feb 09 2018 Fedora Release Engineering - 1.11.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.11.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Aug 23 2016 Björn Esser - 1.11.1-1 - initial import (#1368850) * Sun Aug 21 2016 Björn Esser - 1.11.1-0.1 - initial rpm-release (#1368850)