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
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.0.15
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: MIT
|
||||
URL: https://asciidoctor.org
|
||||
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
|
||||
@ -17,9 +17,8 @@ BuildRequires: ruby(release)
|
||||
%endif
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: ruby(rubygems)
|
||||
%if 0%{?rhel}
|
||||
%if ! 0%{?rhel}
|
||||
# Dependencies aren't available on EPEL
|
||||
%else
|
||||
BuildRequires: rubygem(coderay)
|
||||
BuildRequires: rubygem(concurrent-ruby)
|
||||
BuildRequires: rubygem(erubi)
|
||||
@ -74,9 +73,8 @@ gem build %{gem_name}.gemspec
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
|
||||
%if 0%{?rhel}
|
||||
%if ! 0%{?rhel}
|
||||
# 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)'
|
||||
%endif
|
||||
popd
|
||||
@ -95,7 +93,6 @@ cp -a .%{gem_instdir}/man/*.1 \
|
||||
%{buildroot}%{mandir}/
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%dir %{gem_instdir}
|
||||
%exclude %{gem_cache}
|
||||
%exclude %{gem_instdir}/asciidoctor.gemspec
|
||||
@ -120,6 +117,9 @@ cp -a .%{gem_instdir}/man/*.1 \
|
||||
%doc %{gem_docdir}
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user