# Generated from asciidoctor-2.0.7.gem by gem2rpm -*- rpm-spec -*- %global gem_name asciidoctor Name: rubygem-%{gem_name} Version: 2.0.7 Release: 1%{?dist} Summary: An implementation of the AsciiDoc text processor and publishing toolchain License: MIT URL: https://asciidoctor.org Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(asciimath) >= 1.0.0 # BuildRequires: rubygem(asciimath) < 1.1 # BuildRequires: rubygem(coderay) >= 1.1.0 # BuildRequires: rubygem(coderay) < 1.2 # BuildRequires: rubygem(concurrent-ruby) >= 1.1.0 # BuildRequires: rubygem(concurrent-ruby) < 1.2 # BuildRequires: rubygem(cucumber) >= 3.1.0 # BuildRequires: rubygem(cucumber) < 3.2 # BuildRequires: rubygem(erubis) >= 2.7.0 # BuildRequires: rubygem(erubis) < 2.8 # BuildRequires: rubygem(haml) >= 5.0.0 # BuildRequires: rubygem(haml) < 5.1 # BuildRequires: rubygem(minitest) >= 5.11.0 # BuildRequires: rubygem(minitest) < 5.12 # BuildRequires: rubygem(nokogiri) >= 1.10.0 # BuildRequires: rubygem(nokogiri) < 1.11 # BuildRequires: rubygem(rouge) >= 3.3.0 # BuildRequires: rubygem(rouge) < 3.4 # BuildRequires: rubygem(rspec-expectations) >= 3.8.0 # BuildRequires: rubygem(rspec-expectations) < 3.9 # BuildRequires: rubygem(slim) >= 4.0.0 # BuildRequires: rubygem(slim) < 4.1 # BuildRequires: rubygem(tilt) >= 2.0.0 # BuildRequires: rubygem(tilt) < 2.1 BuildArch: noarch %description A fast, open source text processor and publishing toolchain for converting AsciiDoc content to HTML 5, DocBook 5, and other formats. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %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 %check pushd .%{gem_instdir} # cucumber # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/asciidoctor %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_instdir}/data %{gem_libdir} %{gem_instdir}/man %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.adoc %doc %{gem_instdir}/README-de.adoc %doc %{gem_instdir}/README-fr.adoc %doc %{gem_instdir}/README-jp.adoc %doc %{gem_instdir}/README-zh_CN.adoc %doc %{gem_instdir}/README.adoc %doc %{gem_instdir}/asciidoctor.gemspec %changelog * Sat Apr 13 2019 mockbuilder - 2.0.7-1 - Initial package