rubygem-asciidoctor/rubygem-asciidoctor.spec

87 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-01-09 15:56:11 +08:00
%global gem_name asciidoctor
Name: rubygem-asciidoctor
2023-02-28 01:06:23 +08:00
Version: 2.0.18
2020-12-01 15:41:39 +08:00
Release: 1
2020-01-09 15:56:11 +08:00
Summary: An implementation of the AsciiDoc text processor and publishing
License: MIT
URL: https://github.com/asciidoctor/asciidoctor
2020-12-01 15:41:39 +08:00
Source0: https://github.com/asciidoctor/asciidoctor/archive/v%{version}/%{gem_name}-%{version}.tar.gz
2020-01-09 15:56:11 +08:00
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
2020-12-01 15:41:39 +08:00
%autosetup -n %{gem_name}-%{version} -p1
2020-01-09 15:56:11 +08:00
2020-12-01 15:41:39 +08:00
sed -i -e 's/#\(s\.test_files\)/\1/' %{gem_name}.gemspec
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/%{gem_name}
2020-01-09 15:56:11 +08:00
%build
2020-12-01 15:41:39 +08:00
gem build %{gem_name}.gemspec
%gem_install -n %{gem_name}-%{version}.gem
2020-01-09 15:56:11 +08:00
%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
2020-12-01 15:41:39 +08:00
cp -a .%{gem_instdir}/man/*.1 %{buildroot}%{_mandir}/man1/
2020-01-09 15:56:11 +08:00
%files
2020-12-01 15:41:39 +08:00
%{!?_licensedir:%global license %%doc}
%dir %{gem_instdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/asciidoctor.gemspec
%exclude %{gem_instdir}/man
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/features
%exclude %{gem_instdir}/LICENSE
%doc %{gem_instdir}/CHANGELOG.adoc
%doc %{gem_instdir}/README.*
%lang(de) %doc %{gem_instdir}/README-de.*
%lang(fr) %doc %{gem_instdir}/README-fr.*
%lang(jp) %doc %{gem_instdir}/README-jp.*
%lang(zh_CN) %doc %{gem_instdir}/README-zh_CN.*
%{gem_instdir}/data
2020-01-09 15:56:11 +08:00
%{_bindir}/*
2020-12-01 15:41:39 +08:00
%{gem_instdir}/bin
2020-01-09 15:56:11 +08:00
%{gem_libdir}
2020-12-01 15:41:39 +08:00
%{gem_spec}
2020-01-09 15:56:11 +08:00
%files help
2020-12-01 15:41:39 +08:00
%doc %{gem_docdir}
2020-01-09 15:56:11 +08:00
%{_mandir}/man1/*
%changelog
2023-02-28 01:06:23 +08:00
* Tue Feb 02 2023 wenchaofan <349464272@qq.com> - 2.0.18-1
- Update to 2.0.18
2020-12-01 15:41:39 +08:00
* Tue Dec 01 2020 lingsheng <lingsheng@huawei.com> - 2.0.12-1
- Update to 2.0.12
2020-01-09 15:56:11 +08:00
* Wed Jan 8 2020 duyeyu <duyeyu@huawei.com> - 1.5.6.1-5
- Package init