2012-12-19 11:03:43 +00:00
|
|
|
%global gem_name asciidoctor
|
2013-03-01 18:49:15 +00:00
|
|
|
%global mandir %{_mandir}/man1
|
2012-12-19 11:03:43 +00:00
|
|
|
|
2013-09-22 23:40:13 +00:00
|
|
|
Summary: A fast, open source AsciiDoc implementation in Ruby
|
2012-12-19 11:03:43 +00:00
|
|
|
Name: rubygem-%{gem_name}
|
2013-09-22 23:40:13 +00:00
|
|
|
Version: 0.1.4
|
|
|
|
Release: 1%{?dist}
|
2012-12-19 11:03:43 +00:00
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
2013-01-31 00:23:10 +00:00
|
|
|
URL: http://github.com/asciidoctor/asciidoctor
|
2012-12-19 11:03:43 +00:00
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2013-06-08 21:44:03 +00:00
|
|
|
%if 0%{?rhel} > 6 || 0%{?fedora} > 18
|
2013-03-05 10:48:13 +00:00
|
|
|
Requires: ruby(release)
|
2013-03-05 17:27:43 +00:00
|
|
|
BuildRequires: ruby(release)
|
2013-06-08 21:44:03 +00:00
|
|
|
%else
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
BuildRequires: ruby(abi) = 1.9.1
|
2013-03-05 17:27:43 +00:00
|
|
|
%endif
|
2013-01-19 22:40:50 +00:00
|
|
|
Requires: ruby(rubygems)
|
|
|
|
BuildRequires: rubygems-devel
|
2013-03-01 17:52:37 +00:00
|
|
|
BuildRequires: ruby(rubygems)
|
2013-01-19 22:40:50 +00:00
|
|
|
BuildRequires: rubygem(coderay)
|
|
|
|
BuildRequires: rubygem(erubis)
|
2013-01-20 00:33:26 +00:00
|
|
|
BuildRequires: rubygem(minitest)
|
2012-12-19 11:03:43 +00:00
|
|
|
BuildRequires: rubygem(nokogiri)
|
2013-09-22 23:40:13 +00:00
|
|
|
BuildRequires: rubygem(tilt)
|
|
|
|
BuildRequires: rubygem(haml)
|
|
|
|
BuildRequires: rubygem(slim)
|
2012-12-19 11:03:43 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
%description
|
2013-09-22 23:40:13 +00:00
|
|
|
A fast, open source text processor and publishing toolchain, written in Ruby,
|
|
|
|
for transforming AsciiDoc markup into HTML 5, DocBook 4.5, DocBook 5.0 and
|
|
|
|
custom output formats. The transformation from AsciiDoc to custom output
|
|
|
|
formats is performed by running the nodes in the parsed document tree through a
|
|
|
|
collection of templates written in a template language supported by Tilt.
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
%prep
|
2012-12-20 02:26:47 +00:00
|
|
|
gem unpack -V %{SOURCE0}
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
2013-01-20 00:33:26 +00:00
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%build
|
2013-01-20 00:33:26 +00:00
|
|
|
gem build %{gem_name}.gemspec
|
2013-03-05 17:27:43 +00:00
|
|
|
%gem_install
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%check
|
2013-01-20 00:33:26 +00:00
|
|
|
LANG=en_US.utf8 testrb -Ilib test/*_test.rb
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%install
|
2013-03-01 18:49:15 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -pa .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
2012-12-20 02:26:47 +00:00
|
|
|
|
2013-01-20 06:09:21 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2013-03-01 18:49:15 +00:00
|
|
|
cp -pa .%{_bindir}/* \
|
|
|
|
%{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{mandir}
|
|
|
|
cp -pa .%{gem_instdir}/man/*.1 \
|
|
|
|
%{buildroot}%{mandir}/
|
2012-12-19 11:03:43 +00:00
|
|
|
|
2013-06-08 21:44:03 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{gem_name}
|
|
|
|
cp -pa .%{gem_instdir}/compat/* \
|
|
|
|
%{buildroot}%{_sysconfdir}/%{gem_name}/
|
|
|
|
|
2012-12-19 11:03:43 +00:00
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
2013-03-01 18:49:15 +00:00
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
%exclude %{gem_instdir}/Gemfile
|
2013-06-08 21:44:03 +00:00
|
|
|
%exclude %{gem_instdir}/Guardfile
|
2013-03-01 18:49:15 +00:00
|
|
|
%exclude %{gem_instdir}/Rakefile
|
2013-06-08 21:44:03 +00:00
|
|
|
%exclude %{gem_instdir}/compat
|
2013-03-01 18:49:15 +00:00
|
|
|
%exclude %{gem_instdir}/man
|
2013-06-08 21:44:03 +00:00
|
|
|
%exclude %{gem_instdir}/test
|
2013-09-22 23:40:13 +00:00
|
|
|
%{gem_instdir}/CHANGELOG.adoc
|
2012-12-20 02:26:47 +00:00
|
|
|
%{gem_instdir}/LICENSE
|
2013-03-01 18:49:15 +00:00
|
|
|
%{gem_instdir}/README.*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{gem_instdir}/bin
|
2012-12-19 11:03:43 +00:00
|
|
|
%{gem_libdir}
|
2013-03-01 18:49:15 +00:00
|
|
|
%{mandir}/*
|
2013-06-08 21:44:03 +00:00
|
|
|
%{_sysconfdir}/%{gem_name}/*
|
2012-12-19 11:03:43 +00:00
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
2012-12-20 02:26:47 +00:00
|
|
|
%doc %{gem_docdir}
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-09-22 23:40:13 +00:00
|
|
|
* Sun Sep 22 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.4-1
|
|
|
|
- Update to Asciidoctor 0.1.4
|
2013-08-04 13:26:10 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
2013-06-08 21:44:03 +00:00
|
|
|
* Sat Jun 08 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.3-1
|
|
|
|
- Update to Asciidoctor 0.1.3
|
2013-03-01 15:24:19 +00:00
|
|
|
* Fri Mar 01 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.1-1
|
2012-12-19 11:03:43 +00:00
|
|
|
- Initial package
|