77 lines
2.5 KiB
RPMSpec
77 lines
2.5 KiB
RPMSpec
%global gem_name asciidoctor
|
|
Name: rubygem-asciidoctor
|
|
Version: 1.5.6.1
|
|
Release: 5
|
|
Summary: An implementation of the AsciiDoc text processor and publishing
|
|
License: MIT
|
|
URL: https://github.com/asciidoctor/asciidoctor
|
|
Source0: https://rubygems.org/gems/asciidoctor-1.5.6.1.gem
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: ruby(release) rubygems-devel ruby(rubygems)
|
|
Requires: ruby(release)
|
|
Provides: asciidoctor = %{version} rubygem(asciidoctor) = %{version}
|
|
|
|
%description
|
|
Asciidoctor reads and parses text written in the AsciiDoc syntax, then feeds the parse tree to a
|
|
set of built-in converters to produce HTML5, DocBook 5 (or 4.5) or man(ual) page output. You have
|
|
the option of using your own converter or loading Tilt-supported templates to customize the generated
|
|
output or produce additional formats.
|
|
|
|
%package help
|
|
Summary: Rubygem-asciidoctor documentation
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
|
|
%description help
|
|
This package provides help documents for rubygem-asciidoctor.
|
|
|
|
%prep
|
|
gem unpack -V %{SOURCE0}
|
|
%autosetup -D -T -n asciidoctor-%{version} -p1
|
|
gem spec %{SOURCE0} -l --ruby > asciidoctor.gemspec
|
|
|
|
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/asciidoctor bin/asciidoctor-safe
|
|
|
|
%build
|
|
gem build asciidoctor.gemspec
|
|
%gem_install -n asciidoctor-%{version}.gem
|
|
|
|
%check
|
|
|
|
%install
|
|
install -d %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
cp -a .%{gem_dir}/gems/asciidoctor-1.5.6.1/man/*.1 %{buildroot}%{_mandir}/man1
|
|
|
|
%files
|
|
%dir %{gem_dir}/gems/asciidoctor-1.5.6.1
|
|
%license %{gem_dir}/gems/asciidoctor-1.5.6.1/LICENSE.adoc
|
|
%doc %{gem_dir}/gems/asciidoctor-1.5.6.1/{CHANGELOG.adoc,CONTRIBUTING.adoc,README.*}
|
|
%lang(fr) %doc %{gem_dir}/gems/asciidoctor-1.5.6.1/{README-fr.*}
|
|
%lang(ja) %doc %{gem_dir}/gems/asciidoctor-1.5.6.1/README-jp.*
|
|
%lang(zh_CN) %doc %{gem_dir}/gems/asciidoctor-1.5.6.1/README-zh_CN.*
|
|
%exclude %{gem_dir}/cache/asciidoctor-1.5.6.1.gem
|
|
%exclude %{gem_dir}/gems/asciidoctor-1.5.6.1/{asciidoctor.gemspec,man,test,features,Gemfile,Rakefile}
|
|
|
|
%{gem_dir}/gems/asciidoctor-1.5.6.1/{data,bin}
|
|
%{_bindir}/*
|
|
%{gem_libdir}
|
|
%{gem_dir}/specifications/asciidoctor-1.5.6.1.gemspec
|
|
|
|
%files help
|
|
%doc %{gem_dir}/doc/asciidoctor-1.5.6.1
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
%changelog
|
|
* Wed Jan 8 2020 duyeyu <duyeyu@huawei.com> - 1.5.6.1-5
|
|
- Package init
|