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
|
|
|
|
2014-09-09 16:04:57 +00:00
|
|
|
%define pre %nil
|
2014-05-16 00:27:16 +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}
|
2017-08-24 11:44:46 +00:00
|
|
|
Version: 1.5.6.1
|
2018-11-18 21:31:01 +00:00
|
|
|
Release: 5%{?dist}
|
2012-12-19 11:03:43 +00:00
|
|
|
License: MIT
|
2014-05-16 00:27:16 +00:00
|
|
|
URL: https://github.com/asciidoctor/asciidoctor
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{pre}.gem
|
2017-06-05 13:25:27 +00:00
|
|
|
# Parts of the test suite are missing from the package by accident.
|
|
|
|
# https://github.com/asciidoctor/asciidoctor/pull/1952
|
|
|
|
# git clone https://github.com/asciidoctor/asciidoctor.git && cd asciidoctor
|
|
|
|
# git checkout v1.5.5 && tar czvf asciidoctor-1.5.5-tests.tgz test/fixtures test/test_helper.rb
|
2015-11-02 18:59:01 +00:00
|
|
|
%if 0%{?el7}
|
2013-03-05 10:48:13 +00:00
|
|
|
Requires: ruby(release)
|
2013-03-05 17:27:43 +00:00
|
|
|
BuildRequires: ruby(release)
|
|
|
|
%endif
|
2014-05-16 00:27:16 +00:00
|
|
|
%if 0%{?el6}
|
2013-01-19 22:40:50 +00:00
|
|
|
Requires: ruby(rubygems)
|
2014-05-16 00:27:16 +00:00
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
BuildRequires: ruby(abi) = 1.8
|
|
|
|
%endif
|
2013-01-19 22:40:50 +00:00
|
|
|
BuildRequires: rubygems-devel
|
2013-03-01 17:52:37 +00:00
|
|
|
BuildRequires: ruby(rubygems)
|
2015-05-13 21:13:52 +00:00
|
|
|
%if 0%{?el6} || 0%{?el7}
|
|
|
|
# Dependencies aren't available on EPEL
|
|
|
|
%else
|
2013-01-19 22:40:50 +00:00
|
|
|
BuildRequires: rubygem(coderay)
|
|
|
|
BuildRequires: rubygem(erubis)
|
2015-05-13 21:13:52 +00:00
|
|
|
BuildRequires: rubygem(haml)
|
2014-05-16 00:27:16 +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(slim)
|
2015-05-13 21:13:52 +00:00
|
|
|
BuildRequires: rubygem(tilt)
|
2018-05-24 05:32:13 +00:00
|
|
|
BuildRequires: rubygem(thread_safe)
|
2015-05-13 21:13:52 +00:00
|
|
|
%endif
|
2012-12-19 11:03:43 +00:00
|
|
|
BuildArch: noarch
|
2014-06-06 03:16:35 +00:00
|
|
|
Provides: asciidoctor = %{version}
|
2015-11-02 18:59:01 +00:00
|
|
|
%if 0%{?el6} || 0%{?el7}
|
2012-12-19 11:03:43 +00:00
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
2014-05-16 00:27:16 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{?pre:1}
|
|
|
|
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}%{pre}
|
|
|
|
%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}%{pre}.gem
|
|
|
|
%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}%{pre}.gemspec
|
|
|
|
%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}%{pre}
|
|
|
|
%endif
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%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}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
%prep
|
2012-12-20 02:26:47 +00:00
|
|
|
gem unpack -V %{SOURCE0}
|
2014-05-16 00:27:16 +00:00
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}%{pre}
|
2013-01-20 00:33:26 +00:00
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
2014-05-16 00:27:16 +00:00
|
|
|
|
|
|
|
# Fix shebang (avoid Requires: /usr/bin/env)
|
|
|
|
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' \
|
|
|
|
bin/%{gem_name} bin/%{gem_name}-safe
|
|
|
|
|
2012-12-19 11:03:43 +00:00
|
|
|
%build
|
2013-01-20 00:33:26 +00:00
|
|
|
gem build %{gem_name}.gemspec
|
2014-05-16 00:27:16 +00:00
|
|
|
%gem_install -n %{gem_name}-%{version}%{pre}.gem
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%check
|
2017-06-05 13:25:27 +00:00
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
2015-05-13 21:13:52 +00:00
|
|
|
%if 0%{?el6} || 0%{?el7}
|
|
|
|
# Asciidoctor tests require Minitest 5, so we can't run them on EPEL
|
|
|
|
%else
|
2018-05-24 05:32:13 +00:00
|
|
|
sed -i "/test 'should convert asciimath macro content to MathML when asciimath gem is available' do/a \\
|
|
|
|
skip('asciimath gem is not avaiable on Fedora')" test/substitutions_test.rb
|
|
|
|
|
|
|
|
sed -i "/should render asciimath block in textobject of equation in DocBook backend/a \\
|
|
|
|
skip('asciimath gem is not avaiable on Fedora')" test/blocks_test.rb
|
|
|
|
|
2018-11-18 21:31:01 +00:00
|
|
|
LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
2015-05-13 21:13:52 +00:00
|
|
|
%endif
|
2017-06-05 13:25:27 +00:00
|
|
|
popd
|
2012-12-19 11:03:43 +00:00
|
|
|
|
|
|
|
%install
|
2013-03-01 18:49:15 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
2016-01-06 17:04:00 +00:00
|
|
|
cp -a .%{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}
|
2016-01-06 17:04:00 +00:00
|
|
|
cp -a .%{_bindir}/* \
|
|
|
|
%{buildroot}%{_bindir}/
|
2013-03-01 18:49:15 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{mandir}
|
2016-01-06 17:04:00 +00:00
|
|
|
cp -a .%{gem_instdir}/man/*.1 \
|
|
|
|
%{buildroot}%{mandir}/
|
2013-06-08 21:44:03 +00:00
|
|
|
|
2012-12-19 11:03:43 +00:00
|
|
|
%files
|
2016-01-06 17:04:00 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
2012-12-19 11:03:43 +00:00
|
|
|
%dir %{gem_instdir}
|
2013-03-01 18:49:15 +00:00
|
|
|
%exclude %{gem_cache}
|
2017-06-05 13:25:27 +00:00
|
|
|
%exclude %{gem_instdir}/asciidoctor.gemspec
|
2013-03-01 18:49:15 +00:00
|
|
|
%exclude %{gem_instdir}/man
|
2013-06-08 21:44:03 +00:00
|
|
|
%exclude %{gem_instdir}/test
|
2014-05-16 00:27:16 +00:00
|
|
|
%exclude %{gem_instdir}/features
|
2017-06-05 13:25:27 +00:00
|
|
|
%exclude %{gem_instdir}/Gemfile
|
|
|
|
%exclude %{gem_instdir}/Rakefile
|
2016-01-06 17:04:00 +00:00
|
|
|
%license %{gem_instdir}/LICENSE.adoc
|
2014-05-16 00:27:16 +00:00
|
|
|
%doc %{gem_instdir}/CHANGELOG.adoc
|
2016-01-06 17:04:00 +00:00
|
|
|
%doc %{gem_instdir}/CONTRIBUTING.adoc
|
2014-05-16 00:27:16 +00:00
|
|
|
%doc %{gem_instdir}/README.*
|
2017-06-05 13:25:27 +00:00
|
|
|
%lang(fr) %doc %{gem_instdir}/README-fr.*
|
|
|
|
%lang(ja) %doc %{gem_instdir}/README-jp.*
|
|
|
|
%lang(zh_CN) %doc %{gem_instdir}/README-zh_CN.*
|
2014-05-16 00:27:16 +00:00
|
|
|
%{gem_instdir}/data
|
2013-03-01 18:49:15 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{gem_instdir}/bin
|
2012-12-19 11:03:43 +00:00
|
|
|
%{gem_libdir}
|
2013-03-01 18:49:15 +00:00
|
|
|
%{mandir}/*
|
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
|
2018-11-18 21:31:01 +00:00
|
|
|
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.6.1-5
|
|
|
|
- Use C.UTF-8 locale
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
|
|
2018-07-14 03:53:46 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-24 05:32:13 +00:00
|
|
|
* Wed May 23 2018 Vít Ondruch <vondruch@redhat.com> - 1.5.6.1-3
|
|
|
|
- Enable entire test suite.
|
|
|
|
|
2018-02-09 13:33:47 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-24 11:44:46 +00:00
|
|
|
* Thu Aug 24 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.6.1-1
|
|
|
|
- Update to Asciidoctor 1.5.6.1
|
|
|
|
|
2017-07-27 13:26:20 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-05 13:25:27 +00:00
|
|
|
* Mon Jun 05 2017 Vít Ondruch <vondruch@redhat.com> - 1.5.5-2
|
|
|
|
- Fix FTBFS.
|
|
|
|
|
2017-02-11 12:00:15 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-09 19:11:50 +00:00
|
|
|
* Fri Oct 14 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.5-1
|
2016-10-27 21:50:55 +00:00
|
|
|
- Update to Asciidoctor 1.5.5
|
|
|
|
|
2016-02-04 22:28:29 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-06 17:04:00 +00:00
|
|
|
* Tue Jan 05 2016 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.4-1
|
|
|
|
- Update to Asciidoctor 1.5.4 (rhbz#1295758)
|
|
|
|
- Use %%license macro
|
|
|
|
- Drop unnecessary "-p" flag to cp during %%install ("-a" already preserves
|
|
|
|
timestamps)
|
|
|
|
|
2015-11-02 18:59:01 +00:00
|
|
|
* Mon Nov 02 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.3-1
|
|
|
|
- Update to Asciidoctor 1.5.3 (rhbz#1276851)
|
|
|
|
- Drop Fedora 19 and 20 macros (these distros are EOL)
|
|
|
|
|
2015-06-18 22:45:48 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-12-05 21:33:37 +00:00
|
|
|
* Fri Dec 05 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.2-1
|
|
|
|
- Update to Asciidoctor 1.5.2
|
|
|
|
|
2014-09-19 13:48:18 +00:00
|
|
|
* Fri Sep 19 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.1-1
|
|
|
|
- Update to Asciidoctor 1.5.1
|
|
|
|
|
2014-09-09 16:04:57 +00:00
|
|
|
* Tue Sep 09 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-1
|
2014-09-19 13:45:27 +00:00
|
|
|
- Update to Asciidoctor 1.5.0 final
|
2014-09-09 16:04:57 +00:00
|
|
|
|
2014-06-06 03:16:35 +00:00
|
|
|
* Fri Jun 06 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.4.preview.7
|
|
|
|
- Add %%{version} number to Provides: asciidoctor
|
|
|
|
|
2014-06-06 03:02:08 +00:00
|
|
|
* Fri Jun 06 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.3.preview.7
|
|
|
|
- Provide: asciidoctor
|
|
|
|
https://github.com/asciidoctor/rubygem-asciidoctor-rpm/issues/5
|
|
|
|
|
2014-05-20 03:03:39 +00:00
|
|
|
* Tue May 20 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.2.preview.7
|
|
|
|
- Update to Asciidoctor 0.1.5.preview.7
|
|
|
|
- Drop unused patch
|
|
|
|
|
2014-05-16 00:27:16 +00:00
|
|
|
* Thu May 15 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.1.preview.6
|
|
|
|
- Update to Asciidoctor 0.1.5.preview.6
|
|
|
|
- Use HTTPS URLs
|
|
|
|
- Support Minitest 5
|
|
|
|
- Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
|
|
|
- Mark CHANGELOG, LICENSE, READMEs as %%doc
|
|
|
|
- Remove Rakefile in %%prep
|
|
|
|
- Remove Requires: /usr/bin/env
|
|
|
|
|
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
|
2014-05-15 23:18:01 +00:00
|
|
|
|
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
|
2014-05-15 23:18:01 +00:00
|
|
|
|
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
|
2014-05-15 23:18:01 +00:00
|
|
|
|
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
|