[rubygem-asciidoctor/f17: 6/7] update to Asciidoctor 0.1.3
Dan Allen
mojavelinux at fedoraproject.org
Sat Jun 8 22:10:08 UTC 2013
commit 987075541d899eb0dafb97c057a5863a2fc7a358
Author: Dan Allen <dallen at redhat.com>
Date: Sat Jun 8 15:44:03 2013 -0600
update to Asciidoctor 0.1.3
README.adoc | 8 ++--
asciidoctor-disable-use-of-pending.patch | 6 ++--
asciidoctor-fix-nth-child-selectors.patch | 50 -----------------------------
rubygem-asciidoctor.spec | 35 +++++++++++---------
test-install | 10 +++++-
5 files changed, 35 insertions(+), 74 deletions(-)
---
diff --git a/README.adoc b/README.adoc
index 8bef2f0..90c8493 100644
--- a/README.adoc
+++ b/README.adoc
@@ -3,7 +3,7 @@ Dan Allen
:idprefix:
:gem_title: Asciidoctor
:gem_name: asciidoctor
-:gem_version: 0.1.1
+:gem_version: 0.1.3
:gem_gem: {gem_name}-{gem_version}.gem
:gem_url: https://github.com/asciidoctor/asciidoctor
:rpm_name: rubygem-{gem_name}
@@ -51,7 +51,7 @@ You'll also need to create all the required folders:
Next, grab the Asciidoctor gem (the sources) and put it into the +$HOME/rpmbuild/SOURCES+ directory:
- wget -O $HOME/rpmbuild/SOURCES/asciidoctor-0.1.1.gem http://rubygems.org/gems/asciidoctor-0.1.1.gem
+ wget -O $HOME/rpmbuild/SOURCES/asciidoctor-0.1.3.gem http://rubygems.org/gems/asciidoctor-0.1.3.gem
Finally, copy the +.patch+ files from this repository to the same directory:
@@ -72,7 +72,7 @@ If all goes well, both the binary and source RPMs will emerge in the +$HOME/rpmb
There's nothing special about installing this RPM.
I recommend using +yum+ because it will install any dependencies that the package requires (though you should already have them if you built the RPM).
- yum localinstall $HOME/rpmbuild/RPMS/noarch/rubygem-asciidoctor-0.1.1.rpm
+ yum localinstall $HOME/rpmbuild/RPMS/noarch/rubygem-asciidoctor-0.1.3.rpm
Now, it's time to start using Asciidoctor!
@@ -111,7 +111,7 @@ You should see this output in your terminal.
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="generator" content="Asciidoctor 0.1.1">
+ <meta name="generator" content="Asciidoctor 0.1.3">
<title>My First Document</title>
</head>
<body class="article">
diff --git a/asciidoctor-disable-use-of-pending.patch b/asciidoctor-disable-use-of-pending.patch
index 0da086e..0c57e81 100644
--- a/asciidoctor-disable-use-of-pending.patch
+++ b/asciidoctor-disable-use-of-pending.patch
@@ -5,9 +5,9 @@ diff --git a/test/test_helper.rb b/test/test_helper.rb
index 3b27218..964ff59 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
-@@ -10,7 +10,7 @@ rescue LoadError
- end
- require 'htmlentities'
+@@ -5,7 +5,7 @@ require 'test/unit'
+ require "#{File.expand_path(File.dirname(__FILE__))}/../lib/asciidoctor.rb"
+
require 'nokogiri'
-require 'pending'
+#require 'pending'
diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec
index 453b35f..94410ed 100644
--- a/rubygem-asciidoctor.spec
+++ b/rubygem-asciidoctor.spec
@@ -3,7 +3,7 @@
Summary: AsciiDoc implementation in Ruby
Name: rubygem-%{gem_name}
-Version: 0.1.1
+Version: 0.1.3
Release: 1%{?dist}
Group: Development/Languages
License: MIT
@@ -13,33 +13,28 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# pending, is not packaged in Fedora and since the statement is merely a task
# note, it's safe to disable it's usage for the purpose of packaging.
Patch0: asciidoctor-disable-use-of-pending.patch
-# Patch1: works around nth-child selector bug in Nokogiri
-Patch1: asciidoctor-fix-nth-child-selectors.patch
-%if 0%{?fedora} <= 18
-Requires: ruby(abi) = 1.9.1
-BuildRequires: ruby(abi) = 1.9.1
-%else
+%if 0%{?rhel} > 6 || 0%{?fedora} > 18
Requires: ruby(release)
BuildRequires: ruby(release)
+%else
+Requires: ruby(abi) = 1.9.1
+BuildRequires: ruby(abi) = 1.9.1
%endif
Requires: ruby(rubygems)
BuildRequires: rubygems-devel
BuildRequires: ruby(rubygems)
BuildRequires: rubygem(coderay)
BuildRequires: rubygem(erubis)
-BuildRequires: rubygem(htmlentities)
-BuildRequires: rubygem(mocha)
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(nokogiri)
-# using patch to comment lines where pending is used
-#BuildRequires: rubygem(pending)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
-A pure AsciiDoc implementation in Ruby for parsing AsciiDoc source files and
-strings and then rendering them as HTML, DocBook or other formats using the
-built-in ERB templates or a set of custom Tilt-supported template files.
+An open source text processor and publishing toolchain written in Ruby for
+converting AsciiDoc markup into HTML 5, DocBook 4.5 and custom formats. Export
+to custom formats is performed by running the nodes of the parsed tree through
+a collection of Tilt-supported templates.
%package doc
Summary: Documentation for %{name}
@@ -55,7 +50,6 @@ gem unpack -V %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%patch0 -p1
-%patch1 -p1
%build
gem build %{gem_name}.gemspec
@@ -77,25 +71,34 @@ mkdir -p %{buildroot}%{mandir}
cp -pa .%{gem_instdir}/man/*.1 \
%{buildroot}%{mandir}/
+mkdir -p %{buildroot}%{_sysconfdir}/%{gem_name}
+cp -pa .%{gem_instdir}/compat/* \
+ %{buildroot}%{_sysconfdir}/%{gem_name}/
+
%files
%dir %{gem_instdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/%{gem_name}.gemspec
%exclude %{gem_instdir}/Gemfile
+%exclude %{gem_instdir}/Guardfile
%exclude %{gem_instdir}/Rakefile
-%exclude %{gem_instdir}/test
+%exclude %{gem_instdir}/compat
%exclude %{gem_instdir}/man
+%exclude %{gem_instdir}/test
%{gem_instdir}/LICENSE
%{gem_instdir}/README.*
%{_bindir}/*
%{gem_instdir}/bin
%{gem_libdir}
%{mandir}/*
+%{_sysconfdir}/%{gem_name}/*
%{gem_spec}
%files doc
%doc %{gem_docdir}
%changelog
+* Sat Jun 08 2013 Dan Allen <dan.j.allen at gmail.com> - 0.1.3-1
+- Update to Asciidoctor 0.1.3
* Fri Mar 01 2013 Dan Allen <dan.j.allen at gmail.com> - 0.1.1-1
- Initial package
diff --git a/test-install b/test-install
index cca7b85..527fcf0 100755
--- a/test-install
+++ b/test-install
@@ -4,4 +4,12 @@
require 'asciidoctor'
-puts Asciidoctor.render("= Asciidoctor\n\nI'm **alive**!", :header_footer => true, :compact => true)
+source = <<EOS
+= Asciidoctor
+Author Name
+
+http://asciidoctor.org[Asciidoctor] is an _open source_ implementation of
+http://asciidoc.org[AsciiDoc] in [red]*Ruby*.
+EOS
+
+puts Asciidoctor.render(source, :backend => :html5, :header_footer => true, :compact => true, :safe => :safe, :attributes => 'linkcss!')
More information about the scm-commits
mailing list