Simplify RHEL conditionals
This commit is contained in:
parent
8280e909de
commit
3442759132
@ -7,7 +7,7 @@
|
|||||||
Summary: A fast, open source AsciiDoc implementation in Ruby
|
Summary: A fast, open source AsciiDoc implementation in Ruby
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 2.0.15
|
Version: 2.0.15
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://asciidoctor.org
|
URL: https://asciidoctor.org
|
||||||
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
|
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
|
||||||
@ -17,9 +17,8 @@ BuildRequires: ruby(release)
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
BuildRequires: ruby(rubygems)
|
BuildRequires: ruby(rubygems)
|
||||||
%if 0%{?rhel}
|
%if ! 0%{?rhel}
|
||||||
# Dependencies aren't available on EPEL
|
# Dependencies aren't available on EPEL
|
||||||
%else
|
|
||||||
BuildRequires: rubygem(coderay)
|
BuildRequires: rubygem(coderay)
|
||||||
BuildRequires: rubygem(concurrent-ruby)
|
BuildRequires: rubygem(concurrent-ruby)
|
||||||
BuildRequires: rubygem(erubi)
|
BuildRequires: rubygem(erubi)
|
||||||
@ -74,9 +73,8 @@ gem build %{gem_name}.gemspec
|
|||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if ! 0%{?rhel}
|
||||||
# Asciidoctor tests require Minitest 5, so we can't run them on EPEL
|
# Asciidoctor tests require Minitest 5, so we can't run them on EPEL
|
||||||
%else
|
|
||||||
LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
%endif
|
%endif
|
||||||
popd
|
popd
|
||||||
@ -95,7 +93,6 @@ cp -a .%{gem_instdir}/man/*.1 \
|
|||||||
%{buildroot}%{mandir}/
|
%{buildroot}%{mandir}/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%exclude %{gem_instdir}/asciidoctor.gemspec
|
%exclude %{gem_instdir}/asciidoctor.gemspec
|
||||||
@ -120,6 +117,9 @@ cp -a .%{gem_instdir}/man/*.1 \
|
|||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 21 2022 Neal Gompa <ngompa@fedoraproject.org> - 2.0.15-3
|
||||||
|
- Simplify RHEL conditionals
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.15-2
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.15-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user