Created
September 17, 2021 12:26
-
-
Save pvalena/2c911897c05aed0a13f7be5465278998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- rubygem-asciidoctor-pdf/.generated.spec 2021-09-17 14:14:10.150264516 +0200 | |
+++ rubygem-asciidoctor-pdf/rubygem-asciidoctor-pdf.spec 2021-09-17 13:53:13.078266343 +0200 | |
@@ -1,27 +1,35 @@ | |
-Downloaded asciidoctor-pdf-1.6.1 | |
-# Generated from asciidoctor-pdf-1.6.1.gem by gem2rpm -*- rpm-spec -*- | |
%global gem_name asciidoctor-pdf | |
Name: rubygem-%{gem_name} | |
Version: 1.6.1 | |
Release: 1%{?dist} | |
-Summary: Converts AsciiDoc documents to PDF using Asciidoctor and Prawn | |
+Summary: Converts AsciiDoc documents to PDF using Prawn | |
License: MIT | |
-URL: https://asciidoctor.org/docs/asciidoctor-pdf | |
+URL: https://github.com/asciidoctor/asciidoctor-pdf | |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | |
+# git clone --no-checkout https://github.com/asciidoctor/asciidoctor-pdf.git | |
+# git -C asciidoctor-pdf archive -v -o rubygem-asciidoctor-pdf-1.6.1-specs-examples.txz v1.6.1 spec/ examples/ | |
+Source1: %{name}-%{version}-specs-examples.txz | |
+ | |
BuildRequires: ruby(release) | |
-BuildRequires: rubygems-devel | |
-BuildRequires: ruby | |
-# BuildRequires: rubygem(rspec) >= 3.10.0 | |
-# BuildRequires: rubygem(rspec) < 3.11 | |
-# BuildRequires: rubygem(pdf-inspector) >= 1.3.0 | |
-# BuildRequires: rubygem(pdf-inspector) < 1.4 | |
-# BuildRequires: rubygem(rouge) >= 3.0 | |
-# BuildRequires: rubygem(rouge) < 4 | |
-# BuildRequires: rubygem(coderay) >= 1.1.0 | |
-# BuildRequires: rubygem(coderay) < 1.2 | |
-# BuildRequires: rubygem(chunky_png) >= 1.4.0 | |
-# BuildRequires: rubygem(chunky_png) < 1.5 | |
+BuildRequires: rubygems-devel > 1.3.1 | |
+BuildRequires: ruby >= 1.9 | |
+BuildRequires: rubygem(rspec) | |
+BuildRequires: rubygem(asciidoctor) | |
+BuildRequires: rubygem(prawn) | |
+BuildRequires: rubygem(prawn-svg) | |
+BuildRequires: rubygem(prawn-table) | |
+BuildRequires: rubygem(prawn-templates) | |
+BuildRequires: rubygem(prawn-icon) | |
+BuildRequires: rubygem(treetop) | |
+BuildRequires: rubygem(concurrent-ruby) | |
+BuildRequires: rubygem(safe_yaml) | |
+BuildRequires: rubygem(chunky_png) | |
+BuildRequires: rubygem(pdf-inspector) | |
+BuildRequires: rubygem(rouge) | |
+BuildRequires: rubygem(coderay) | |
+BuildRequires: rubygem(rexml) | |
+ | |
BuildArch: noarch | |
%description | |
@@ -38,14 +45,14 @@ | |
Documentation for %{name}. | |
%prep | |
-%setup -q -n %{gem_name}-%{version} | |
+%setup -q -n %{gem_name}-%{version} -b 1 | |
+mv %{_builddir}/{spec,examples} . | |
+ | |
+# Regenerate the parser. | |
+tt lib/asciidoctor/pdf/formatted_text/parser.treetop | |
%build | |
-# Create the gem as gem install only works on a gem file | |
gem build ../%{gem_name}-%{version}.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 | |
@@ -52,25 +59,22 @@ | |
mkdir -p %{buildroot}%{gem_dir} | |
cp -a .%{gem_dir}/* \ | |
%{buildroot}%{gem_dir}/ | |
- | |
- | |
mkdir -p %{buildroot}%{_bindir} | |
-cp -a .%{_bindir}/* \ | |
+cp -pa .%{_bindir}/* \ | |
%{buildroot}%{_bindir}/ | |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x | |
%check | |
-pushd .%{gem_instdir} | |
-# rspec spec | |
-popd | |
+ | |
+GEM_HOME=/builddir/build/BUILD/%{gem_name}-%{version}/usr/share/gems rspec -t ~network | |
%files | |
%dir %{gem_instdir} | |
-%{_bindir}/asciidoctor-pdf | |
-%{_bindir}/asciidoctor-pdf-optimize | |
-%exclude %{gem_instdir}/.yardopts | |
+%{_bindir}/%{gem_name} | |
+%{_bindir}/%{gem_name}-optimize | |
%license %{gem_instdir}/LICENSE | |
+%doc %{gem_instdir}/README.adoc | |
%{gem_instdir}/bin | |
%{gem_instdir}/data | |
%{gem_libdir} | |
@@ -79,12 +83,109 @@ | |
%files doc | |
%doc %{gem_docdir} | |
-%doc %{gem_instdir}/CHANGELOG.adoc | |
%doc %{gem_instdir}/NOTICE.adoc | |
-%doc %{gem_instdir}/README.adoc | |
-%doc %{gem_instdir}/asciidoctor-pdf.gemspec | |
+%doc %{gem_instdir}/CHANGELOG.adoc | |
%doc %{gem_instdir}/docs | |
+%doc %{gem_instdir}/.yardopts | |
+%{gem_instdir}/%{gem_name}.gemspec | |
%changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment