2016-08-23 19:44:14 +00:00
|
|
|
%global gem_name rouge
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
Name: rubygem-%{gem_name}
|
2023-02-17 02:41:57 +00:00
|
|
|
Version: 4.1.0
|
2023-07-21 18:19:22 +00:00
|
|
|
Release: 2%{?dist}
|
2018-06-04 14:13:17 +00:00
|
|
|
Summary: Pure-ruby colorizer based on pygments
|
2023-03-18 08:11:50 +00:00
|
|
|
# From LICENSE file
|
|
|
|
# SPDX confirmed
|
|
|
|
License: MIT AND BSD-2-Clause
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
URL: http://rouge.jneen.net/
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2023-02-12 07:42:17 +00:00
|
|
|
Source1: %{gem_name}-%{version}-test-missing-files.tar.gz
|
|
|
|
# SOURCE1 is created by $ bash %%SOURCE2 %%version
|
|
|
|
Source2: rouge-create-missing-test-files.sh
|
|
|
|
Source10: spec_helper_assert.rb
|
|
|
|
Source11: bundler.rb
|
2018-06-04 14:13:17 +00:00
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: help2man
|
2023-02-12 07:42:17 +00:00
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(rake)
|
2018-06-04 14:13:17 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
%description
|
2018-06-04 14:13:17 +00:00
|
|
|
Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments.
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-02-12 07:42:17 +00:00
|
|
|
%setup -q -n %{gem_name}-%{version} -a 1
|
2021-09-19 04:03:15 +00:00
|
|
|
mv ../%{gem_name}-%{version}.gemspec .
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2023-02-12 07:42:17 +00:00
|
|
|
cp -a %{gem_name}-%{version}/spec .
|
|
|
|
mkdir FAKE
|
|
|
|
cp -a %{SOURCE11} FAKE/
|
|
|
|
cp -pa %{SOURCE10} spec/
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%build
|
2021-09-19 04:03:15 +00:00
|
|
|
gem build %{gem_name}-%{version}.gemspec
|
2016-08-23 19:44:14 +00:00
|
|
|
%gem_install
|
|
|
|
|
|
|
|
%install
|
2018-06-04 14:13:17 +00:00
|
|
|
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
|
2016-08-23 19:44:14 +00:00
|
|
|
export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}"
|
2018-06-04 14:13:17 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
|
|
|
|
%{buildroot}%{_bindir}/rougify
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2021-09-19 04:03:15 +00:00
|
|
|
rm -f %{buildroot}%{gem_cache}
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
rm -rf \
|
|
|
|
Gemfile \
|
|
|
|
%{gem_name}.gemspec \
|
|
|
|
%{nil}
|
|
|
|
popd
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2023-02-12 07:42:17 +00:00
|
|
|
%check
|
|
|
|
find spec -name \*_spec.rb -print0 | \
|
|
|
|
sort --zero-terminated | \
|
|
|
|
xargs --null ruby -Ilib:FAKE \
|
|
|
|
-r./spec/spec_helper \
|
|
|
|
-r./spec/spec_helper_assert \
|
|
|
|
-r rake/rake_test_loader \
|
|
|
|
%{nil}
|
|
|
|
|
2021-09-19 04:03:15 +00:00
|
|
|
%files
|
2018-06-04 14:13:17 +00:00
|
|
|
%dir %{gem_instdir}
|
2021-09-19 04:03:15 +00:00
|
|
|
|
|
|
|
%license %{gem_instdir}/LICENSE
|
2018-06-04 14:13:17 +00:00
|
|
|
|
|
|
|
%{gem_libdir}
|
2021-09-19 04:03:15 +00:00
|
|
|
%exclude %{gem_libdir}/%{gem_name}/demos
|
2018-06-04 14:13:17 +00:00
|
|
|
|
2021-09-19 04:03:15 +00:00
|
|
|
%{_bindir}/rougify
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%{_mandir}/man1/rougify.1*
|
2018-06-04 14:13:17 +00:00
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
2021-09-19 04:03:15 +00:00
|
|
|
%{gem_libdir}/%{gem_name}/demos
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-07-21 18:19:22 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-02-17 02:41:57 +00:00
|
|
|
* Fri Feb 17 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.1.0-1
|
|
|
|
- 4.1.0
|
|
|
|
|
2023-02-12 07:42:17 +00:00
|
|
|
* Sun Feb 12 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0.1-3
|
|
|
|
- Execute spec test provided by the upstream
|
|
|
|
- Backport upstream patch for ruby32 regex issue with hash character
|
|
|
|
|
2023-01-20 21:03:52 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-21 07:33:12 +00:00
|
|
|
* Wed Dec 21 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0.1-1
|
|
|
|
- 4.0.1
|
|
|
|
|
2022-10-09 05:27:32 +00:00
|
|
|
* Sun Oct 9 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0.0-2
|
2022-10-09 04:53:45 +00:00
|
|
|
- 4.0.0
|
|
|
|
|
2022-07-23 02:12:21 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-21 19:10:10 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-09-19 04:23:49 +00:00
|
|
|
* Sun Sep 19 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.26.1-1
|
|
|
|
- 3.26.1
|
|
|
|
|
2021-07-23 12:36:42 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-27 16:25:24 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-11 18:41:57 +00:00
|
|
|
* Fri Dec 11 2020 Fabio Valentini <decathorpe@gmail.com> - 3.26.0-1
|
|
|
|
- Update to version 3.26.0.
|
|
|
|
|
2020-11-18 21:34:24 +00:00
|
|
|
* Wed Nov 18 2020 Fabio Valentini <decathorpe@gmail.com> - 3.25.0-1
|
|
|
|
- Update to version 3.25.0.
|
|
|
|
|
2020-10-16 17:58:44 +00:00
|
|
|
* Fri Oct 16 2020 Fabio Valentini <decathorpe@gmail.com> - 3.24.0-1
|
|
|
|
- Update to version 3.24.0.
|
|
|
|
|
2020-09-09 10:48:16 +00:00
|
|
|
* Wed Sep 09 2020 Fabio Valentini <decathorpe@gmail.com> - 3.23.0-1
|
|
|
|
- Update to version 3.23.0.
|
|
|
|
|
2020-08-12 15:54:10 +00:00
|
|
|
* Wed Aug 12 2020 Fabio Valentini <decathorpe@gmail.com> - 3.22.0-1
|
|
|
|
- Update to version 3.22.0.
|
|
|
|
|
2020-07-29 06:59:27 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.21.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-15 14:32:27 +00:00
|
|
|
* Wed Jul 15 2020 Fabio Valentini <decathorpe@gmail.com> - 3.21.0-1
|
|
|
|
- Update to version 3.21.0.
|
|
|
|
|
2020-06-12 11:04:48 +00:00
|
|
|
* Fri Jun 12 2020 Fabio Valentini <decathorpe@gmail.com> - 3.20.0-1
|
|
|
|
- Update to version 3.20.0.
|
|
|
|
|
2020-05-15 20:55:51 +00:00
|
|
|
* Fri May 15 2020 Fabio Valentini <decathorpe@gmail.com> - 3.19.0-1
|
|
|
|
- Update to version 3.19.0.
|
|
|
|
|
2020-04-18 09:51:03 +00:00
|
|
|
* Sat Apr 18 2020 Fabio Valentini <decathorpe@gmail.com> - 3.18.0-1
|
|
|
|
- Update to version 3.18.0.
|
|
|
|
|
2020-03-11 22:16:05 +00:00
|
|
|
* Wed Mar 11 2020 Fabio Valentini <decathorpe@gmail.com> - 3.17.0-1
|
|
|
|
- Update to version 3.17.0.
|
|
|
|
|
2020-02-15 16:43:11 +00:00
|
|
|
* Sat Feb 15 2020 Fabio Valentini <decathorpe@gmail.com> - 3.16.0-1
|
|
|
|
- Update to version 3.16.0.
|
|
|
|
|
2020-01-30 19:16:47 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.15.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-17 09:46:46 +00:00
|
|
|
* Fri Jan 17 2020 Fabio Valentini <decathorpe@gmail.com> - 3.15.0-1
|
|
|
|
- Update to version 3.15.0.
|
|
|
|
|
2019-12-19 22:24:20 +00:00
|
|
|
* Thu Dec 19 2019 Fabio Valentini <decathorpe@gmail.com> - 3.14.0-1
|
|
|
|
- Update to version 3.14.0.
|
|
|
|
|
2019-11-16 14:11:12 +00:00
|
|
|
* Sat Nov 16 2019 Fabio Valentini <decathorpe@gmail.com> - 3.13.0-1
|
|
|
|
- Update to version 3.13.0.
|
|
|
|
|
2019-10-30 16:12:01 +00:00
|
|
|
* Wed Oct 30 2019 Fabio Valentini <decathorpe@gmail.com> - 3.12.0-1
|
|
|
|
- Update to version 3.12.0.
|
|
|
|
|
2019-10-07 18:25:48 +00:00
|
|
|
* Mon Oct 07 2019 Fabio Valentini <decathorpe@gmail.com> - 3.11.1-1
|
|
|
|
- Update to version 3.11.1.
|
|
|
|
|
2019-09-28 13:59:39 +00:00
|
|
|
* Sat Sep 28 2019 Fabio Valentini <decathorpe@gmail.com> - 3.11.0-1
|
|
|
|
- Update to version 3.11.0.
|
|
|
|
|
2019-09-05 20:44:03 +00:00
|
|
|
* Wed Sep 04 2019 Fabio Valentini <decathorpe@gmail.com> - 3.10.0-1
|
|
|
|
- Update to version 3.10.0.
|
|
|
|
|
2019-08-15 21:03:56 +00:00
|
|
|
* Thu Aug 15 2019 Fabio Valentini <decathorpe@gmail.com> - 3.8.0-1
|
|
|
|
- Update to version 3.8.0.
|
|
|
|
|
2019-07-30 08:01:40 +00:00
|
|
|
* Tue Jul 30 2019 Fabio Valentini <decathorpe@gmail.com> - 3.7.0-1
|
|
|
|
- Update to version 3.7.0.
|
|
|
|
|
2019-07-26 20:02:02 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-10 14:17:00 +00:00
|
|
|
* Wed Jul 10 2019 Fabio Valentini <decathorpe@gmail.com> - 3.6.0-1
|
|
|
|
- Update to version 3.6.0.
|
|
|
|
|
2019-07-02 11:20:21 +00:00
|
|
|
* Tue Jul 02 2019 Fabio Valentini <decathorpe@gmail.com> - 3.5.1-1
|
|
|
|
- Update to version 3.5.1.
|
|
|
|
|
2019-02-02 12:55:59 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-02 09:35:04 +00:00
|
|
|
* Tue Oct 02 2018 Fabio Valentini <decathorpe@gmail.com> - 3.3.0-1
|
|
|
|
- Update to version 3.3.0.
|
|
|
|
|
2018-08-17 11:30:53 +00:00
|
|
|
* Fri Aug 17 2018 Fabio Valentini <decathorpe@gmail.com> - 3.2.1-1
|
|
|
|
- Update to version 3.2.1.
|
|
|
|
|
2018-08-02 21:23:36 +00:00
|
|
|
* Thu Aug 02 2018 Fabio Valentini <decathorpe@gmail.com> - 3.2.0-1
|
|
|
|
- Update to version 3.2.0.
|
|
|
|
|
2018-07-14 04:42:48 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
* Mon Jun 04 2018 Fabio Valentini <decathorpe@gmail.com> - 3.1.1-1
|
|
|
|
- Update to version 3.1.1.
|
|
|
|
|
2018-02-09 14:46:47 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 17:43:52 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 12:44:04 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
* Tue Aug 23 2016 Björn Esser <fedora@besser82.io> - 1.11.1-1
|
|
|
|
- initial import (#1368850)
|
|
|
|
|
|
|
|
* Sun Aug 21 2016 Björn Esser <fedora@besser82.io> - 1.11.1-0.1
|
|
|
|
- initial rpm-release (#1368850)
|
2018-06-04 14:13:17 +00:00
|
|
|
|