2012-02-06 12:51:01 +00:00
|
|
|
%global gem_name coderay
|
2009-07-16 12:54:11 +00:00
|
|
|
|
2023-03-03 18:58:27 +00:00
|
|
|
%if %{undefined rhel}
|
|
|
|
%bcond_without shoulda
|
|
|
|
%endif
|
|
|
|
|
2012-02-06 12:51:01 +00:00
|
|
|
Name: rubygem-%{gem_name}
|
2021-03-01 09:56:34 +00:00
|
|
|
Version: 1.1.3
|
2024-06-24 16:22:48 +00:00
|
|
|
Release: 9%{?dist}
|
2018-07-26 09:36:26 +00:00
|
|
|
Summary: Fast syntax highlighting for selected languages
|
|
|
|
License: MIT
|
2009-07-16 12:54:11 +00:00
|
|
|
URL: http://coderay.rubychan.de
|
2018-07-25 16:23:57 +00:00
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2021-03-01 09:56:34 +00:00
|
|
|
# git clone https://github.com/rubychan/coderay --no-checkout
|
|
|
|
# cd coderay && git archive -v -o coderay-1.1.3-tests.txz v1.1.3 test spec
|
|
|
|
Source1: %{gem_name}-%{version}-tests.txz
|
|
|
|
# Fix test suite for ruby 3.0 change for methods on subclass of Array
|
|
|
|
# https://github.com/rubychan/coderay/pull/255
|
|
|
|
Patch0: rubygem-coderay-1.1.3-fix-tests-Array-on-ruby-3.0.patch
|
2018-07-25 16:23:57 +00:00
|
|
|
BuildRequires: ruby(release)
|
2012-02-06 12:51:01 +00:00
|
|
|
BuildRequires: rubygems-devel
|
2018-07-26 09:36:26 +00:00
|
|
|
BuildRequires: ruby >= 1.8.6
|
2018-07-25 16:23:57 +00:00
|
|
|
BuildRequires: rubygem(test-unit)
|
2021-03-01 09:56:34 +00:00
|
|
|
BuildRequires: rubygem(rspec)
|
2023-03-03 18:58:27 +00:00
|
|
|
%if %{with shoulda}
|
2021-03-01 09:56:34 +00:00
|
|
|
BuildRequires: rubygem(shoulda-context)
|
2023-03-03 18:58:27 +00:00
|
|
|
%endif
|
2009-07-16 12:54:11 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2018-07-26 09:36:26 +00:00
|
|
|
Fast and easy syntax highlighting for selected languages, written in Ruby.
|
|
|
|
Comes with RedCloth integration and LOC counter.
|
2009-07-16 12:54:11 +00:00
|
|
|
|
|
|
|
|
2018-07-25 16:23:57 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
2009-07-16 12:54:11 +00:00
|
|
|
%prep
|
2021-03-01 09:56:34 +00:00
|
|
|
%setup -q -n %{gem_name}-%{version} -b 1
|
2009-07-16 12:54:11 +00:00
|
|
|
|
2021-03-01 09:56:34 +00:00
|
|
|
pushd ..
|
2019-02-14 16:56:01 +00:00
|
|
|
%patch0 -p1
|
2021-03-01 09:56:34 +00:00
|
|
|
popd
|
2019-02-14 16:56:01 +00:00
|
|
|
|
2009-07-16 12:54:11 +00:00
|
|
|
%build
|
2018-07-25 16:23:57 +00:00
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
|
|
|
%gem_install
|
2009-07-16 12:54:11 +00:00
|
|
|
|
|
|
|
%install
|
2012-02-06 12:51:01 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
2018-07-25 16:23:57 +00:00
|
|
|
cp -a .%{gem_dir}/* \
|
2013-03-05 12:13:50 +00:00
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2018-07-25 16:23:57 +00:00
|
|
|
cp -a .%{_bindir}/* \
|
2013-03-05 12:13:50 +00:00
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
2012-02-06 12:51:01 +00:00
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
2009-07-16 12:54:11 +00:00
|
|
|
|
2018-07-25 16:23:57 +00:00
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
2021-03-01 09:56:34 +00:00
|
|
|
cp -r %{_builddir}/spec .
|
|
|
|
cp -r %{_builddir}/test .
|
|
|
|
|
|
|
|
# Comment out simplecov.
|
|
|
|
for file in \
|
|
|
|
spec/spec_helper.rb \
|
|
|
|
test/executable/suite.rb \
|
|
|
|
test/functional/for_redcloth.rb \
|
|
|
|
test/functional/suite.rb \
|
|
|
|
test/unit/suite.rb; do
|
|
|
|
sed -i "/^require 'simplecov'/ s/^/#/" "${file}"
|
|
|
|
done
|
|
|
|
|
2018-07-26 09:36:26 +00:00
|
|
|
# See https://github.com/rubychan/coderay/blob/master/rake_tasks/test.rake
|
2018-11-18 21:32:20 +00:00
|
|
|
LANG=C.UTF-8
|
2018-07-25 16:23:57 +00:00
|
|
|
ruby ./test/functional/suite.rb
|
|
|
|
ruby ./test/functional/for_redcloth.rb
|
2018-07-26 09:36:26 +00:00
|
|
|
ruby ./test/unit/suite.rb
|
2021-03-01 09:56:34 +00:00
|
|
|
# This test depends on rubygem-shoulda-context.
|
2023-03-03 18:58:27 +00:00
|
|
|
%if %{with shoulda}
|
2021-03-01 09:56:34 +00:00
|
|
|
ruby ./test/executable/suite.rb
|
2023-03-03 18:58:27 +00:00
|
|
|
%endif
|
2021-03-01 09:56:34 +00:00
|
|
|
rspec spec
|
2018-07-25 16:23:57 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
2009-07-16 12:54:11 +00:00
|
|
|
%{_bindir}/coderay
|
2018-07-25 16:23:57 +00:00
|
|
|
%license %{gem_instdir}/MIT-LICENSE
|
2012-02-06 12:51:01 +00:00
|
|
|
%{gem_instdir}/bin
|
2018-07-25 16:23:57 +00:00
|
|
|
%{gem_libdir}
|
2013-03-05 12:13:50 +00:00
|
|
|
%exclude %{gem_cache}
|
2012-02-06 12:51:01 +00:00
|
|
|
%{gem_spec}
|
2009-07-16 12:54:11 +00:00
|
|
|
|
2018-07-25 16:23:57 +00:00
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/README_INDEX.rdoc
|
2009-07-16 12:54:11 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-06-24 16:22:48 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.1.3-9
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-26 16:40:12 +00:00
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-22 12:40:53 +00:00
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-21 17:26:43 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-01-20 20:16:59 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-23 01:23:08 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-21 18:22:29 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 11:55:07 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-03-01 09:56:34 +00:00
|
|
|
* Mon Mar 01 2021 Jun Aruga <jaruga@redhat.com> - 1.1.3-1
|
|
|
|
- update to new version
|
|
|
|
Resolves: rhbz#1842013
|
|
|
|
Resolves: rhbz#1923366
|
|
|
|
|
2021-01-27 15:43:58 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 06:13:19 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-30 18:15:25 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-26 19:08:03 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-14 16:56:01 +00:00
|
|
|
* Thu Feb 14 2019 Jun Aruga <jaruga@redhat.com> - 1.1.2-5
|
|
|
|
- Remove extended Tokens#filter for Ruby 2.6 compatibility.
|
|
|
|
|
2019-02-02 11:56:19 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-18 21:32:20 +00:00
|
|
|
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.2-3
|
|
|
|
- Use C.UTF-8 locale
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
|
|
2018-07-26 09:36:26 +00:00
|
|
|
* Thu Jul 26 2018 Jun Aruga <jaruga@redhat.com> - 1.1.2-2
|
|
|
|
- Change license and text, aligning with the output of gem2rpm.
|
|
|
|
|
2018-07-25 16:23:57 +00:00
|
|
|
* Wed Jul 25 2018 Jun Aruga <jaruga@redhat.com> - 1.1.2-1
|
|
|
|
- update to new version
|
|
|
|
|
2018-07-14 03:59:55 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-09 13:42:11 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 13:31:58 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 12:05:25 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-04 22:33:48 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 22:53:14 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-06-08 03:40:00 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-15 12:09:41 +00:00
|
|
|
* Sat Mar 15 2014 Jan Klepek <jan.klepek at, gmail.com> -1.1.0-3
|
|
|
|
- dropped dependency on term-ansicolor completely
|
|
|
|
|
2014-03-03 17:09:24 +00:00
|
|
|
* Mon Mar 3 2014 Jan Klepek <jan.klepek at, gmail.com> - 1.1.0-2
|
|
|
|
- term-ansicolor no longer run-time dependency, only build dependency
|
|
|
|
|
2014-02-27 18:51:16 +00:00
|
|
|
* Thu Feb 27 2014 Jan Klepek <jan.klepek at, gmail.com> - 1.1.0-1
|
|
|
|
- update to new version
|
|
|
|
|
2014-02-27 19:16:40 +00:00
|
|
|
* Mon Aug 19 2013 Jan Klepek <jan.klepek at, gmail.com> - 1.0.7-1
|
2014-02-27 18:51:16 +00:00
|
|
|
- update to new version
|
2014-02-27 18:59:47 +00:00
|
|
|
|
2013-08-04 13:36:57 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-05 11:47:39 +00:00
|
|
|
* Tue Mar 05 2013 Vít Ondruch <vondruch@redhat.com> - 1.0.6-4
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
2013-02-14 22:19:58 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
2014-02-27 18:51:16 +00:00
|
|
|
|
2012-07-21 17:42:53 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-08 20:55:20 +00:00
|
|
|
* Sun Apr 08 2012 Jan Klepek <jan.klepek at, gmail.com> - 1.0.6-1
|
|
|
|
- Update to new version
|
|
|
|
|
2012-02-06 12:51:01 +00:00
|
|
|
* Mon Feb 06 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.4-3
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
2012-01-14 03:06:15 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-17 15:42:17 +00:00
|
|
|
* Thu Nov 17 2011 Jan Klepek <jan.klepek at, gmail.com> - 1.0.4-1
|
|
|
|
- new version
|
|
|
|
|
2011-10-15 10:27:18 +00:00
|
|
|
* Sat Oct 15 2011 Jan Klepek <jan.klepek at, gmail.com> - 1.0.0-1
|
|
|
|
- new version
|
|
|
|
|
2011-07-23 09:03:17 +00:00
|
|
|
* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 0.9.8-1
|
|
|
|
- new version
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Thu Mar 10 2011 Jan Klepek <jan.klepek at, gmail.com> - 0.9.7-1
|
|
|
|
- updated to 0.9.7
|
|
|
|
|
2011-02-09 09:36:01 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.312-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-07-27 03:27:23 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.312-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Fri Jul 03 2009 Jan Klepek <jan.klepekat, gmail.com> - 0.8.312-3
|
2009-07-16 12:54:11 +00:00
|
|
|
- correct directory ownership, fixed license
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Wed Jun 24 2009 Jan Klepek <jan.klepekat, gmail.com> - 0.8.312-2
|
2009-07-16 12:54:11 +00:00
|
|
|
- consistent macro usage, rewritten description, removed term-ansicolor during install
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Sun Jun 14 2009 Jan Klepek <jan.klepekat, gmail.com> - 0.8.312-1
|
2009-07-16 12:54:11 +00:00
|
|
|
- Initial package
|