diff --git a/asciidoctor-1.5.6.1.gem b/asciidoctor-1.5.6.1.gem deleted file mode 100644 index 67a3f12..0000000 Binary files a/asciidoctor-1.5.6.1.gem and /dev/null differ diff --git a/asciidoctor-2.0.12.tar.gz b/asciidoctor-2.0.12.tar.gz new file mode 100644 index 0000000..b08f88a Binary files /dev/null and b/asciidoctor-2.0.12.tar.gz differ diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec index 169c4a0..0a12f60 100644 --- a/rubygem-asciidoctor.spec +++ b/rubygem-asciidoctor.spec @@ -1,11 +1,11 @@ %global gem_name asciidoctor Name: rubygem-asciidoctor -Version: 1.5.6.1 -Release: 5 +Version: 2.0.12 +Release: 1 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 +Source0: https://github.com/asciidoctor/asciidoctor/archive/v%{version}/%{gem_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: ruby(release) rubygems-devel ruby(rubygems) @@ -29,15 +29,14 @@ Obsoletes: %{name}-doc < %{version}-%{release} 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 +%autosetup -n %{gem_name}-%{version} -p1 -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 -gem build asciidoctor.gemspec -%gem_install -n asciidoctor-%{version}.gem +gem build %{gem_name}.gemspec +%gem_install -n %{gem_name}-%{version}.gem %check @@ -49,28 +48,37 @@ 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 +cp -a .%{gem_instdir}/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} +%{!?_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 %{_bindir}/* +%{gem_instdir}/bin %{gem_libdir} -%{gem_dir}/specifications/asciidoctor-1.5.6.1.gemspec +%{gem_spec} %files help -%doc %{gem_dir}/doc/asciidoctor-1.5.6.1 +%doc %{gem_docdir} %{_mandir}/man1/* %changelog +* Tue Dec 01 2020 lingsheng - 2.0.12-1 +- Update to 2.0.12 + * Wed Jan 8 2020 duyeyu - 1.5.6.1-5 - Package init diff --git a/rubygem-asciidoctor.yaml b/rubygem-asciidoctor.yaml index 0e07f20..f6fa18b 100644 --- a/rubygem-asciidoctor.yaml +++ b/rubygem-asciidoctor.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: asciidoctor/asciidoctor -tag_prefix: ^v -seperator: . +tag_prefix: "^v" +separator: "."