Compare commits

..

No commits in common. "c10s" and "c9s" have entirely different histories.
c10s ... c9s

6 changed files with 60 additions and 153 deletions

31
.gitignore vendored
View File

@ -1,2 +1,29 @@
/rouge-*gem
/rouge-*-test-missing-files.tar.gz
/results*
/*.src.rpm
rouge-1.11.1.gem
rouge-3.1.1.gem
/rouge-3.2.0.gem
/rouge-3.2.1.gem
/rouge-3.3.0.gem
/rouge-3.5.1.gem
/rouge-3.6.0.gem
/rouge-3.7.0.gem
/rouge-3.8.0.gem
/rouge-3.10.0.gem
/rouge-3.11.0.gem
/rouge-3.11.1.gem
/rouge-3.12.0.gem
/rouge-3.13.0.gem
/rouge-3.14.0.gem
/rouge-3.15.0.gem
/rouge-3.16.0.gem
/rouge-3.17.0.gem
/rouge-3.18.0.gem
/rouge-3.19.0.gem
/rouge-3.20.0.gem
/rouge-3.21.0.gem
/rouge-3.22.0.gem
/rouge-3.23.0.gem
/rouge-3.24.0.gem
/rouge-3.25.0.gem
/rouge-3.26.0.gem

View File

@ -1,6 +0,0 @@
module Bundler
class << self
def require
end
end
end

View File

@ -1,33 +0,0 @@
#!/bin/bash
usage() {
echo "$0 <VERSION>"
}
set -e
set -x
if [ $# -lt 1 ] ; then
usage
exit 1
fi
VERSION=$1
REPONAME=rouge
TMPDIR=$(mktemp -d /tmp/rouge-XXXXXX)
CURDIR=$(pwd)
pushd $TMPDIR
git clone https://github.com/rouge-ruby/${REPONAME}.git
cd rouge/
git reset --hard v$VERSION
cd ..
ln -sf ${REPONAME} ${REPONAME}-${VERSION}
tar czf $CURDIR/rouge-${VERSION}-test-missing-files.tar.gz ${REPONAME}-${VERSION}/spec/
popd
rm -rf $TMPDIR

View File

@ -1,25 +1,19 @@
%global gem_name rouge
Name: rubygem-%{gem_name}
Version: 4.2.0
Version: 3.26.0
Release: 4%{?dist}
Summary: Pure-ruby colorizer based on pygments
# From LICENSE file
# SPDX confirmed
License: MIT AND BSD-2-Clause
License: MIT and BSD
URL: http://rouge.jneen.net/
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
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
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.0
BuildRequires: help2man
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(rake)
BuildArch: noarch
@ -37,116 +31,66 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -a 1
mv ../%{gem_name}-%{version}.gemspec .
%setup -q -n %{gem_name}-%{version}
cp -a %{gem_name}-%{version}/spec .
mkdir FAKE
cp -a %{SOURCE11} FAKE/
cp -pa %{SOURCE10} spec/
%build
gem build %{gem_name}-%{version}.gemspec
gem build ../%{gem_name}-%{version}.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
rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir}
rm -rf \
Gemfile \
%{gem_name}.gemspec \
%{nil}
popd
%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}
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_libdir}/%{gem_name}/demos
%{_bindir}/rougify
%{gem_instdir}/bin
%{_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_libdir}/%{gem_name}/demos
%{gem_instdir}/Gemfile
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.2.0-4
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.26.0-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.2.0-3
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Oct 25 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.2.0-1
- 4.2.0
* Fri Aug 18 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.1.3-1
- 4.1.3
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Feb 17 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.1.0-1
- 4.1.0
* 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
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Dec 21 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0.1-1
- 4.0.1
* Sun Oct 9 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0.0-2
- 4.0.0
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sun Sep 19 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.26.1-1
- 3.26.1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.26.0-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View File

@ -1,2 +1 @@
SHA512 (rouge-4.2.0.gem) = 9a1a77c448a211ebb071112a36e53d95a777dad697dcdd911b89452d6292a4f1470c2683aed7427970c5d92c0080f3e773021153e0f48865d66405a61ca78db7
SHA512 (rouge-4.2.0-test-missing-files.tar.gz) = 0e1ca6347027fff26460de612bd4d1493f202fe0a895c1705dad36100cbe4a9e7e9c943838dc192664e225d65aa41b82903ed9987fea82352b7a04a427ae7f89
SHA512 (rouge-3.26.0.gem) = e589d158f518d7e39dcba5c021b26626f67fce762f77c2ed8236a85110927e904d6596e933e7ea84547abe5ca1456d38d245d007bd81e052bf26aeae1387a3f7

View File

@ -1,24 +0,0 @@
module Minitest
module Assertions
alias_method :assert_orig, :assert
alias_method :refute_orig, :refute
def assert(test = nil, msg = nil, &block)
if block_given?
assert_orig yield
else
assert_orig test, msg
end
end
def refute(test = nil, msg = nil, &block)
if block_given?
refute_orig yield
else
refute_orig test, msg
end
end
end
end