|
|
8b6b5dd |
%global gem_name asciidoctor
|
|
|
c049479 |
%global mandir %{_mandir}/man1
|
|
|
8b6b5dd |
|
|
|
aa6ac28 |
%define pre %nil
|
|
|
5ec3f96 |
%global gittag v%{version}%{pre}
|
|
|
8ca7324 |
|
|
|
ceeaf60 |
Summary: A fast, open source AsciiDoc implementation in Ruby
|
|
|
8b6b5dd |
Name: rubygem-%{gem_name}
|
|
|
9992ecc |
Version: 2.0.6
|
|
|
e40dad1 |
Release: 1%{?dist}
|
|
|
8b6b5dd |
License: MIT
|
|
|
8ca7324 |
URL: https://asciidoctor.org
|
|
|
8ca7324 |
Source0: https://github.com/asciidoctor/asciidoctor/archive/%{gittag}/%{gem_name}-%{version}%{pre}.tar.gz
|
|
|
ff6e2a4 |
%if 0%{?el7}
|
|
|
94e044f |
Requires: ruby(release)
|
|
|
558b60f |
BuildRequires: ruby(release)
|
|
|
558b60f |
%endif
|
|
|
cbd79bb |
%if 0%{?el6}
|
|
|
5ac83d7 |
Requires: ruby(rubygems)
|
|
|
cbd79bb |
Requires: ruby(abi) = 1.8
|
|
|
cbd79bb |
BuildRequires: ruby(abi) = 1.8
|
|
|
cbd79bb |
%endif
|
|
|
5ac83d7 |
BuildRequires: rubygems-devel
|
|
|
3ea83d2 |
BuildRequires: ruby(rubygems)
|
|
|
2740c8a |
%if 0%{?el6} || 0%{?el7}
|
|
|
2740c8a |
# Dependencies aren't available on EPEL
|
|
|
2740c8a |
%else
|
|
|
5ac83d7 |
BuildRequires: rubygem(coderay)
|
|
|
e40dad1 |
BuildRequires: rubygem(concurrent-ruby)
|
|
|
5ac83d7 |
BuildRequires: rubygem(erubis)
|
|
|
2740c8a |
BuildRequires: rubygem(haml)
|
|
|
cbd79bb |
BuildRequires: rubygem(minitest)
|
|
|
8b6b5dd |
BuildRequires: rubygem(nokogiri)
|
|
|
8ca7324 |
BuildRequires: rubygem(rouge)
|
|
|
ceeaf60 |
BuildRequires: rubygem(slim)
|
|
|
2740c8a |
BuildRequires: rubygem(tilt)
|
|
|
2740c8a |
%endif
|
|
|
8b6b5dd |
BuildArch: noarch
|
|
|
ffc7e9f |
Provides: asciidoctor = %{version}
|
|
|
ff6e2a4 |
%if 0%{?el6} || 0%{?el7}
|
|
|
8b6b5dd |
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
cbd79bb |
%endif
|
|
|
cbd79bb |
|
|
|
cbd79bb |
%if %{?pre:1}
|
|
|
cbd79bb |
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}%{pre}
|
|
|
cbd79bb |
%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}%{pre}.gem
|
|
|
cbd79bb |
%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}%{pre}.gemspec
|
|
|
cbd79bb |
%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}%{pre}
|
|
|
cbd79bb |
%endif
|
|
|
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 |
Requires: %{name} = %{version}-%{release}
|
|
|
8b6b5dd |
BuildArch: noarch
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%description doc
|
|
|
8b6b5dd |
Documentation for %{name}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%prep
|
|
|
5ec3f96 |
%autosetup -n %{gem_name}-%{version}%{pre} -p1
|
|
|
8ca7324 |
|
|
|
8ca7324 |
# Include tests in the gem, they're disabled by default
|
|
|
8ca7324 |
sed -i -e 's/#\(s\.test_files\)/\1/' %{gem_name}.gemspec
|
|
|
cbd79bb |
|
|
|
cbd79bb |
# Fix shebang (avoid Requires: /usr/bin/env)
|
|
|
8ca7324 |
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/%{gem_name}
|
|
|
cbd79bb |
|
|
|
8b6b5dd |
%build
|
|
|
8d3ce3f |
gem build %{gem_name}.gemspec
|
|
|
cbd79bb |
%gem_install -n %{gem_name}-%{version}%{pre}.gem
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%check
|
|
|
62c46b2 |
pushd .%{gem_instdir}
|
|
|
62c46b2 |
|
|
|
2740c8a |
%if 0%{?el6} || 0%{?el7}
|
|
|
2740c8a |
# Asciidoctor tests require Minitest 5, so we can't run them on EPEL
|
|
|
2740c8a |
%else
|
|
|
bf11e21 |
LANG=C.UTF-8 ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
2740c8a |
%endif
|
|
|
62c46b2 |
popd
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%install
|
|
|
c049479 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
d6c9392 |
cp -a .%{gem_dir}/* \
|
|
|
d6c9392 |
%{buildroot}%{gem_dir}/
|
|
|
721716d |
|
|
|
4464fc0 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
d6c9392 |
cp -a .%{_bindir}/* \
|
|
|
d6c9392 |
%{buildroot}%{_bindir}/
|
|
|
c049479 |
|
|
|
c049479 |
mkdir -p %{buildroot}%{mandir}
|
|
|
d6c9392 |
cp -a .%{gem_instdir}/man/*.1 \
|
|
|
d6c9392 |
%{buildroot}%{mandir}/
|
|
Dan Allen |
9870755 |
|
|
|
8b6b5dd |
%files
|
|
|
d6c9392 |
%{!?_licensedir:%global license %%doc}
|
|
|
8b6b5dd |
%dir %{gem_instdir}
|
|
|
c049479 |
%exclude %{gem_cache}
|
|
|
62c46b2 |
%exclude %{gem_instdir}/asciidoctor.gemspec
|
|
|
c049479 |
%exclude %{gem_instdir}/man
|
|
Dan Allen |
9870755 |
%exclude %{gem_instdir}/test
|
|
|
cbd79bb |
%exclude %{gem_instdir}/features
|
|
|
e40dad1 |
%license %{gem_instdir}/LICENSE
|
|
|
cbd79bb |
%doc %{gem_instdir}/CHANGELOG.adoc
|
|
|
cbd79bb |
%doc %{gem_instdir}/README.*
|
|
|
e40dad1 |
%lang(de) %doc %{gem_instdir}/README-de.*
|
|
|
62c46b2 |
%lang(fr) %doc %{gem_instdir}/README-fr.*
|
|
|
62c46b2 |
%lang(ja) %doc %{gem_instdir}/README-jp.*
|
|
|
62c46b2 |
%lang(zh_CN) %doc %{gem_instdir}/README-zh_CN.*
|
|
|
cbd79bb |
%{gem_instdir}/data
|
|
|
c049479 |
%{_bindir}/*
|
|
|
c049479 |
%{gem_instdir}/bin
|
|
|
8b6b5dd |
%{gem_libdir}
|
|
|
c049479 |
%{mandir}/*
|
|
|
8b6b5dd |
%{gem_spec}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%files doc
|
|
|
721716d |
%doc %{gem_docdir}
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%changelog
|
|
|
9992ecc |
* Thu Apr 04 2019 Todd Zullinger <tmz@pobox.com> - 2.0.6-1
|
|
|
9992ecc |
- Update to Asciidoctor 2.0.6
|
|
|
9992ecc |
|
|
|
a9a52a6 |
* Mon Apr 01 2019 Todd Zullinger <tmz@pobox.com> - 2.0.5-1
|
|
|
a9a52a6 |
- Update to Asciidoctor 2.0.5
|
|
|
a9a52a6 |
|
|
|
b8a039b |
* Sun Mar 31 2019 Todd Zullinger <tmz@pobox.com> - 2.0.4-1
|
|
|
b8a039b |
- Update to Asciidoctor 2.0.4
|
|
|
b8a039b |
|
|
|
90bdaba |
* Thu Mar 28 2019 Todd Zullinger <tmz@pobox.com> - 2.0.3-1
|
|
|
90bdaba |
- Update to Asciidoctor 2.0.3
|
|
|
90bdaba |
|
|
|
5af44b8 |
* Tue Mar 26 2019 Todd Zullinger <tmz@pobox.com> - 2.0.2-1
|
|
|
5af44b8 |
- Update to Asciidoctor 2.0.2
|
|
|
5af44b8 |
|
|
|
5ec3f96 |
* Mon Mar 25 2019 Todd Zullinger <tmz@pobox.com> - 2.0.1-1
|
|
|
5ec3f96 |
- Update to Asciidoctor 2.0.1
|
|
|
5ec3f96 |
|
|
|
8ca7324 |
* Fri Mar 22 2019 Todd Zullinger <tmz@pobox.com> - 2.0.0-1
|
|
|
8ca7324 |
- Update to Asciidoctor 2.0.0
|
|
|
8ca7324 |
|
|
|
e40dad1 |
* Tue Mar 19 2019 Todd Zullinger <tmz@pobox.com> - 1.5.8-1
|
|
|
e40dad1 |
- Update to Asciidoctor 1.5.8 (resolves CVE-2018-18385)
|
|
|
e40dad1 |
|
|
|
6eee24f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6.1-6
|
|
|
6eee24f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
6eee24f |
|
|
|
bf11e21 |
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.6.1-5
|
|
|
bf11e21 |
- Use C.UTF-8 locale
|
|
|
bf11e21 |
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
bf11e21 |
|
|
|
3766a32 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6.1-4
|
|
|
3766a32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
3766a32 |
|
|
|
10fa9bc |
* Wed May 23 2018 Vít Ondruch <vondruch@redhat.com> - 1.5.6.1-3
|
|
|
10fa9bc |
- Enable entire test suite.
|
|
|
10fa9bc |
|
|
|
53bc01f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6.1-2
|
|
|
53bc01f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
53bc01f |
|
|
|
46fa0bd |
* Thu Aug 24 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.6.1-1
|
|
|
46fa0bd |
- Update to Asciidoctor 1.5.6.1
|
|
|
46fa0bd |
|
|
|
a8d2025 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-3
|
|
|
a8d2025 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a8d2025 |
|
|
|
62c46b2 |
* Mon Jun 05 2017 Vít Ondruch <vondruch@redhat.com> - 1.5.5-2
|
|
|
62c46b2 |
- Fix FTBFS.
|
|
|
62c46b2 |
|
|
|
51935fc |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-2
|
|
|
51935fc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
51935fc |
|
|
|
799834f |
* Fri Oct 14 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.5-1
|
|
|
963b494 |
- Update to Asciidoctor 1.5.5
|
|
|
963b494 |
|
|
|
90ffac9 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
|
|
|
90ffac9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
90ffac9 |
|
|
|
d6c9392 |
* Tue Jan 05 2016 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.4-1
|
|
|
d6c9392 |
- Update to Asciidoctor 1.5.4 (rhbz#1295758)
|
|
|
d6c9392 |
- Use %%license macro
|
|
|
d6c9392 |
- Drop unnecessary "-p" flag to cp during %%install ("-a" already preserves
|
|
|
d6c9392 |
timestamps)
|
|
|
d6c9392 |
|
|
|
ff6e2a4 |
* Mon Nov 02 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.3-1
|
|
|
ff6e2a4 |
- Update to Asciidoctor 1.5.3 (rhbz#1276851)
|
|
|
ff6e2a4 |
- Drop Fedora 19 and 20 macros (these distros are EOL)
|
|
|
ff6e2a4 |
|
|
|
aa1d22d |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
|
|
|
aa1d22d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
aa1d22d |
|
|
|
ea9461a |
* Fri Dec 05 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.2-1
|
|
|
ea9461a |
- Update to Asciidoctor 1.5.2
|
|
|
ea9461a |
|
|
|
bb913a4 |
* Fri Sep 19 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.1-1
|
|
|
bb913a4 |
- Update to Asciidoctor 1.5.1
|
|
|
bb913a4 |
|
|
|
aa6ac28 |
* Tue Sep 09 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-1
|
|
|
79e247f |
- Update to Asciidoctor 1.5.0 final
|
|
|
aa6ac28 |
|
|
|
ffc7e9f |
* Fri Jun 06 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.4.preview.7
|
|
|
ffc7e9f |
- Add %%{version} number to Provides: asciidoctor
|
|
|
ffc7e9f |
|
|
|
11883bf |
* Fri Jun 06 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.3.preview.7
|
|
|
11883bf |
- Provide: asciidoctor
|
|
|
11883bf |
https://github.com/asciidoctor/rubygem-asciidoctor-rpm/issues/5
|
|
|
11883bf |
|
|
|
5dbaa5a |
* Tue May 20 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.2.preview.7
|
|
|
5dbaa5a |
- Update to Asciidoctor 0.1.5.preview.7
|
|
|
5dbaa5a |
- Drop unused patch
|
|
|
5dbaa5a |
|
|
|
cbd79bb |
* Thu May 15 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.0-0.1.preview.6
|
|
|
cbd79bb |
- Update to Asciidoctor 0.1.5.preview.6
|
|
|
cbd79bb |
- Use HTTPS URLs
|
|
|
cbd79bb |
- Support Minitest 5
|
|
|
cbd79bb |
- Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
|
|
cbd79bb |
- Mark CHANGELOG, LICENSE, READMEs as %%doc
|
|
|
cbd79bb |
- Remove Rakefile in %%prep
|
|
|
cbd79bb |
- Remove Requires: /usr/bin/env
|
|
|
cbd79bb |
|
|
|
ceeaf60 |
* Sun Sep 22 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.4-1
|
|
|
ceeaf60 |
- Update to Asciidoctor 0.1.4
|
|
|
bfa997c |
|
|
|
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
|
|
|
bfa997c |
|
|
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
|
|
|
bfa997c |
|
|
|
39eeeb0 |
* Fri Mar 01 2013 Dan Allen <dan.j.allen@gmail.com> - 0.1.1-1
|
|
|
8b6b5dd |
- Initial package
|