Update to 2.0.12
This commit is contained in:
parent
1b7013dbfb
commit
55760e31cf
Binary file not shown.
BIN
asciidoctor-2.0.12.tar.gz
Normal file
BIN
asciidoctor-2.0.12.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,11 @@
|
|||||||
%global gem_name asciidoctor
|
%global gem_name asciidoctor
|
||||||
Name: rubygem-asciidoctor
|
Name: rubygem-asciidoctor
|
||||||
Version: 1.5.6.1
|
Version: 2.0.12
|
||||||
Release: 5
|
Release: 1
|
||||||
Summary: An implementation of the AsciiDoc text processor and publishing
|
Summary: An implementation of the AsciiDoc text processor and publishing
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/asciidoctor/asciidoctor
|
URL: https://github.com/asciidoctor/asciidoctor
|
||||||
Source0: https://rubygems.org/gems/asciidoctor-1.5.6.1.gem
|
Source0: https://github.com/asciidoctor/asciidoctor/archive/v%{version}/%{gem_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby(rubygems)
|
BuildRequires: ruby(release) rubygems-devel ruby(rubygems)
|
||||||
@ -29,15 +29,14 @@ Obsoletes: %{name}-doc < %{version}-%{release}
|
|||||||
This package provides help documents for rubygem-asciidoctor.
|
This package provides help documents for rubygem-asciidoctor.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gem unpack -V %{SOURCE0}
|
%autosetup -n %{gem_name}-%{version} -p1
|
||||||
%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
|
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}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build asciidoctor.gemspec
|
gem build %{gem_name}.gemspec
|
||||||
%gem_install -n asciidoctor-%{version}.gem
|
%gem_install -n %{gem_name}-%{version}.gem
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
@ -49,28 +48,37 @@ install -d %{buildroot}%{_bindir}
|
|||||||
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/
|
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/
|
||||||
|
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
cp -a .%{gem_dir}/gems/asciidoctor-1.5.6.1/man/*.1 %{buildroot}%{_mandir}/man1
|
cp -a .%{gem_instdir}/man/*.1 %{buildroot}%{_mandir}/man1/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_dir}/gems/asciidoctor-1.5.6.1
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license %{gem_dir}/gems/asciidoctor-1.5.6.1/LICENSE.adoc
|
%dir %{gem_instdir}
|
||||||
%doc %{gem_dir}/gems/asciidoctor-1.5.6.1/{CHANGELOG.adoc,CONTRIBUTING.adoc,README.*}
|
%exclude %{gem_cache}
|
||||||
%lang(fr) %doc %{gem_dir}/gems/asciidoctor-1.5.6.1/{README-fr.*}
|
%exclude %{gem_instdir}/asciidoctor.gemspec
|
||||||
%lang(ja) %doc %{gem_dir}/gems/asciidoctor-1.5.6.1/README-jp.*
|
%exclude %{gem_instdir}/man
|
||||||
%lang(zh_CN) %doc %{gem_dir}/gems/asciidoctor-1.5.6.1/README-zh_CN.*
|
%exclude %{gem_instdir}/test
|
||||||
%exclude %{gem_dir}/cache/asciidoctor-1.5.6.1.gem
|
%exclude %{gem_instdir}/features
|
||||||
%exclude %{gem_dir}/gems/asciidoctor-1.5.6.1/{asciidoctor.gemspec,man,test,features,Gemfile,Rakefile}
|
%exclude %{gem_instdir}/LICENSE
|
||||||
|
%doc %{gem_instdir}/CHANGELOG.adoc
|
||||||
%{gem_dir}/gems/asciidoctor-1.5.6.1/{data,bin}
|
%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
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
%{gem_instdir}/bin
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%{gem_dir}/specifications/asciidoctor-1.5.6.1.gemspec
|
%{gem_spec}
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{gem_dir}/doc/asciidoctor-1.5.6.1
|
%doc %{gem_docdir}
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 01 2020 lingsheng <lingsheng@huawei.com> - 2.0.12-1
|
||||||
|
- Update to 2.0.12
|
||||||
|
|
||||||
* Wed Jan 8 2020 duyeyu <duyeyu@huawei.com> - 1.5.6.1-5
|
* Wed Jan 8 2020 duyeyu <duyeyu@huawei.com> - 1.5.6.1-5
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: github
|
version_control: github
|
||||||
src_repo: asciidoctor/asciidoctor
|
src_repo: asciidoctor/asciidoctor
|
||||||
tag_prefix: ^v
|
tag_prefix: "^v"
|
||||||
seperator: .
|
separator: "."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user