Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions SPECS-EXTENDED/rubygem-rouge/bundler.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Bundler
class << self
def require
end
end
end
6 changes: 4 additions & 2 deletions SPECS-EXTENDED/rubygem-rouge/rubygem-rouge.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Signatures": {
"rouge-3.26.0.tar.gz": "d856bf074925dff523f0e1232d5ff0be81cdf7428bf9b4425d0055bce61ad43d"
"bundler.rb": "5568b03c72652879f7d07b9bdd27a41fc8d3fc3e2f60ae8b40ff71a2b0f2023f",
"rubygem-rouge-4.4.0.tar.gz": "f4cb2b74fa0db748b1f31a51f1f77cb5e0c1aa5552f6d1632a08743e1eaa1aef",
"spec_helper_assert.rb": "4a510a7d0ba8cd0df97b19854a8fcba3659ea8b5f3de7c8abd5879b7e5bc137c"
}
}
}
122 changes: 102 additions & 20 deletions SPECS-EXTENDED/rubygem-rouge/rubygem-rouge.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
%global gem_name rouge

Name: rubygem-%{gem_name}
Version: 3.26.0
Release: 3%{?dist}
Version: 4.4.0
Release: 2%{?dist}
Summary: Pure-ruby colorizer based on pygments
License: MIT and BSD
# From LICENSE file
# SPDX confirmed
License: MIT AND BSD-2-Clause
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: http://rouge.jneen.net/
Source0: https://github.com/rouge-ruby/rouge/archive/refs/tags/v%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
Source0: https://github.com/rouge-ruby/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
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

%description
Expand All @@ -27,10 +33,15 @@ BuildArch: noarch
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}
%autosetup -n %{gem_name}-%{version}

cp -a spec ..
mkdir FAKE
cp -a %{SOURCE11} FAKE/
cp -pa %{SOURCE10} spec/

%build
gem build %{gem_name}
gem build %{gem_name}.gemspec
%gem_install

%install
Expand All @@ -46,32 +57,100 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
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
%{_mandir}/man1/rougify.1*
%dir %{gem_instdir}
%{gem_instdir}/bin
%exclude %{gem_instdir}/rouge.gemspec
%{gem_libdir}
%exclude %{gem_cache}
%{_mandir}/man1/rougify.1*
%{gem_spec}

%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%{gem_libdir}/%{gem_name}/demos

%changelog
* Tue Mar 22 2022 Neha Agarwal <nehaagarwal@microsoft.com> - 3.26.0-3
* Tue Dec 24 2024 Akhila Guruju <v-guakhila@microsoft.com> - 4.4.0-2
- Initial Azure Linux import from Fedora 41 (license: MIT).
- Build from .tar.gz source
- License verified.
- Build from .tar.gz source.

* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.26.0-2
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
* Fri Sep 20 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.4.0-1
- 4.4.0

* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Tue Jun 18 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.3.0-1
- 4.3.0

* Mon Mar 18 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.2.1-1
- 4.2.1

* 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

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.26.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Fri Dec 11 2020 Fabio Valentini <decathorpe@gmail.com> - 3.26.0-1
- Update to version 3.26.0.
Expand All @@ -88,6 +167,9 @@ help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
* Wed Aug 12 2020 Fabio Valentini <decathorpe@gmail.com> - 3.22.0-1
- Update to version 3.22.0.

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.21.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jul 15 2020 Fabio Valentini <decathorpe@gmail.com> - 3.21.0-1
- Update to version 3.21.0.

Expand Down
24 changes: 24 additions & 0 deletions SPECS-EXTENDED/rubygem-rouge/spec_helper_assert.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27184,8 +27184,8 @@
"type": "other",
"other": {
"name": "rubygem-rouge",
"version": "3.26.0",
"downloadUrl": "https://github.com/rouge-ruby/rouge/archive/refs/tags/v3.26.0.tar.gz"
"version": "4.4.0",
"downloadUrl": "https://github.com/rouge-ruby/rouge/archive/refs/tags/v4.4.0.tar.gz"
}
}
},
Expand Down
Loading