|
|
8b6b5dd |
%global gem_name asciidoctor
|
|
|
c049479 |
%global mandir %{_mandir}/man1
|
|
|
8b6b5dd |
|
|
|
aa6ac28 |
%define pre %nil
|
|
|
cbd79bb |
|
|
|
ceeaf60 |
Summary: A fast, open source AsciiDoc implementation in Ruby
|
|
|
8b6b5dd |
Name: rubygem-%{gem_name}
|
|
|
bb913a4 |
Version: 1.5.1
|
|
|
aa6ac28 |
Release: 1%{?dist}
|
|
|
8b6b5dd |
Group: Development/Languages
|
|
|
8b6b5dd |
License: MIT
|
|
|
cbd79bb |
URL: https://github.com/asciidoctor/asciidoctor
|
|
|
cbd79bb |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{pre}.gem
|
|
|
cbd79bb |
%if 0%{?fc19} || 0%{?fc20} || 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)
|
|
|
5ac83d7 |
BuildRequires: rubygem(coderay)
|
|
|
5ac83d7 |
BuildRequires: rubygem(erubis)
|
|
|
cbd79bb |
BuildRequires: rubygem(minitest)
|
|
|
8b6b5dd |
BuildRequires: rubygem(nokogiri)
|
|
|
ceeaf60 |
BuildRequires: rubygem(tilt)
|
|
|
ceeaf60 |
BuildRequires: rubygem(haml)
|
|
|
ceeaf60 |
BuildRequires: rubygem(slim)
|
|
|
8b6b5dd |
BuildArch: noarch
|
|
|
ffc7e9f |
Provides: asciidoctor = %{version}
|
|
|
cbd79bb |
%if 0%{?fc19} || 0%{?fc20} || 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 |
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}
|
|
|
cbd79bb |
%setup -q -D -T -n %{gem_name}-%{version}%{pre}
|
|
|
8d3ce3f |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
cbd79bb |
|
|
|
cbd79bb |
# Fix shebang (avoid Requires: /usr/bin/env)
|
|
|
cbd79bb |
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' \
|
|
|
cbd79bb |
bin/%{gem_name} bin/%{gem_name}-safe
|
|
|
cbd79bb |
|
|
|
cbd79bb |
# Clean up development-only file
|
|
|
cbd79bb |
rm Rakefile
|
|
|
cbd79bb |
sed -i "s|\"Rakefile\",||g" %{gem_name}.gemspec
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%build
|
|
|
8d3ce3f |
gem build %{gem_name}.gemspec
|
|
|
cbd79bb |
%gem_install -n %{gem_name}-%{version}%{pre}.gem
|
|
|
8b6b5dd |
|
|
|
8b6b5dd |
%check
|
|
|
cbd79bb |
LANG=en_US.utf8 ruby -I"lib:test" 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}
|
|
|
aa6ac28 |
%exclude %{gem_instdir}/benchmark
|
|
Dan Allen |
9870755 |
%exclude %{gem_instdir}/compat
|
|
|
c049479 |
%exclude %{gem_instdir}/man
|
|
Dan Allen |
9870755 |
%exclude %{gem_instdir}/test
|
|
|
cbd79bb |
%exclude %{gem_instdir}/features
|
|
|
cbd79bb |
%doc %{gem_instdir}/CHANGELOG.adoc
|
|
|
aa6ac28 |
%doc %{gem_instdir}/LICENSE.adoc
|
|
|
cbd79bb |
%doc %{gem_instdir}/README.*
|
|
|
cbd79bb |
%{gem_instdir}/data
|
|
|
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
|
|
|
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
|