|
|
8b6b5dd |
%global gem_name asciidoctor
|
|
|
c049479 |
%global mandir %{_mandir}/man1
|
|
|
8b6b5dd |
|
|
|
ceeaf60 |
Summary: A fast, open source AsciiDoc implementation in Ruby
|
|
|
8b6b5dd |
Name: rubygem-%{gem_name}
|
|
|
ceeaf60 |
Version: 0.1.4
|
|
|
ceeaf60 |
Release: 1%{?dist}
|
|
|
8b6b5dd |
Group: Development/Languages
|
|
|
8b6b5dd |
License: MIT
|
|
|
cbc47f8 |
URL: http://github.com/asciidoctor/asciidoctor
|
|
|
8b6b5dd |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
c05c010 |
# Patch0: disable the test for including content from a URI
|
|
|
c05c010 |
# since it does not work when the network is unavailable
|
|
|
c05c010 |
Patch0: asciidoctor-remove-include-uri-test.patch
|
|
Dan Allen |
9870755 |
%if 0%{?rhel} > 6 || 0%{?fedora} > 18
|
|
|
94e044f |
Requires: ruby(release)
|
|
|
558b60f |
BuildRequires: ruby(release)
|
|
Dan Allen |
9870755 |
%else
|
|
Dan Allen |
9870755 |
Requires: ruby(abi) = 1.9.1
|
|
Dan Allen |
9870755 |
BuildRequires: ruby(abi) = 1.9.1
|
|
|
558b60f |
%endif
|
|
|
5ac83d7 |
Requires: ruby(rubygems)
|
|
|
5ac83d7 |
BuildRequires: rubygems-devel
|
|
|
3ea83d2 |
BuildRequires: ruby(rubygems)
|
|
|
5ac83d7 |
BuildRequires: rubygem(coderay)
|
|
|
5ac83d7 |
BuildRequires: rubygem(erubis)
|
|
|
8d3ce3f |
BuildRequires: rubygem(minitest)
|
|
|
8b6b5dd |
BuildRequires: rubygem(nokogiri)
|
|
|
ceeaf60 |
BuildRequires: rubygem(tilt)
|
|
|
ceeaf60 |
BuildRequires: rubygem(haml)
|
|
|
ceeaf60 |
BuildRequires: rubygem(slim)
|
|
|
8b6b5dd |
BuildArch: noarch
|
|
|
8b6b5dd |
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%description
|
|
|
ceeaf60 |
A fast, open source text processor and publishing toolchain, written in Ruby,
|
|
|
ceeaf60 |
for transforming AsciiDoc markup into HTML 5, DocBook 4.5, DocBook 5.0 and
|
|
|
ceeaf60 |
custom output formats. The transformation from AsciiDoc to custom output
|
|
|
ceeaf60 |
formats is performed by running the nodes in the parsed document tree through a
|
|
|
ceeaf60 |
collection of templates written in a template language supported by Tilt.
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%package doc
|
|
|
8b6b5dd |
Summary: Documentation for %{name}
|
|
|
8b6b5dd |
Group: Documentation
|
|
|
8b6b5dd |
Requires: %{name} = %{version}-%{release}
|
|
|
8b6b5dd |
BuildArch: noarch
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%description doc
|
|
|
8b6b5dd |
Documentation for %{name}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%prep
|
|
|
721716d |
gem unpack -V %{SOURCE0}
|
|
|
721716d |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
8d3ce3f |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
6354126 |
%patch0 -p1
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%build
|
|
|
8d3ce3f |
gem build %{gem_name}.gemspec
|
|
|
558b60f |
%gem_install
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%check
|
|
|
8d3ce3f |
LANG=en_US.utf8 testrb -Ilib test/*_test.rb
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%install
|
|
|
c049479 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
c049479 |
cp -pa .%{gem_dir}/* \
|
|
|
c049479 |
%{buildroot}%{gem_dir}/
|
|
|
721716d |
|
|
|
4464fc0 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
c049479 |
cp -pa .%{_bindir}/* \
|
|
|
c049479 |
%{buildroot}%{_bindir}/
|
|
|
c049479 |
|
|
|
c049479 |
mkdir -p %{buildroot}%{mandir}
|
|
|
c049479 |
cp -pa .%{gem_instdir}/man/*.1 \
|
|
|
c049479 |
%{buildroot}%{mandir}/
|
|
|
8b6b5dd |
|
|
Dan Allen |
9870755 |
mkdir -p %{buildroot}%{_sysconfdir}/%{gem_name}
|
|
Dan Allen |
9870755 |
cp -pa .%{gem_instdir}/compat/* \
|
|
Dan Allen |
9870755 |
%{buildroot}%{_sysconfdir}/%{gem_name}/
|
|
Dan Allen |
9870755 |
|
|
|
8b6b5dd |
%files
|
|
|
8b6b5dd |
%dir %{gem_instdir}
|
|
|
c049479 |
%exclude %{gem_cache}
|
|
|
c049479 |
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
|
|
c049479 |
%exclude %{gem_instdir}/Gemfile
|
|
Dan Allen |
9870755 |
%exclude %{gem_instdir}/Guardfile
|
|
|
c049479 |
%exclude %{gem_instdir}/Rakefile
|
|
Dan Allen |
9870755 |
%exclude %{gem_instdir}/compat
|
|
|
c049479 |
%exclude %{gem_instdir}/man
|
|
Dan Allen |
9870755 |
%exclude %{gem_instdir}/test
|
|
|
ceeaf60 |
%{gem_instdir}/CHANGELOG.adoc
|
|
|
721716d |
%{gem_instdir}/LICENSE
|
|
|
c049479 |
%{gem_instdir}/README.*
|
|
|
c049479 |
%{_bindir}/*
|
|
|
c049479 |
%{gem_instdir}/bin
|
|
|
8b6b5dd |
%{gem_libdir}
|
|
|
c049479 |
%{mandir}/*
|
|
Dan Allen |
9870755 |
%{_sysconfdir}/%{gem_name}/*
|
|
|
8b6b5dd |
%{gem_spec}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%files doc
|
|
|
721716d |
%doc %{gem_docdir}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%changelog
|
|
|
ceeaf60 |
* Sun Sep 22 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.4-1
|
|
|
ceeaf60 |
- Update to Asciidoctor 0.1.4
|
|
|
91ccc3c |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
|
|
|
91ccc3c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
Dan Allen |
9870755 |
* Sat Jun 08 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.3-1
|
|
Dan Allen |
9870755 |
- Update to Asciidoctor 0.1.3
|
|
|
39eeeb0 |
* Fri Mar 01 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.1-1
|
|
|
8b6b5dd |
- Initial package
|