!2 Update to latest upstream release 9.0.4 and update Source0

From: @tong_1001
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2020-11-16 11:14:38 +08:00 committed by Gitee
commit 465a55638e
3 changed files with 16 additions and 10 deletions

Binary file not shown.

BIN
asciidoc-py3-9.0.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,10 @@
%global git_commit_hash 51d7c1433faf183f3a1d161c175f347fd28bfe09
Name: asciidoc
Version: 8.6.10
Release: 3
Version: 9.0.4
Release: 1
Summary: Python 3 port of Asciidoc Python.
License: GPLv2
URL: http://asciidoc.org
Source0: https://github.com/%{name}/%{name}-py3/archive/%{git_commit_hash}/%{name}-py3-51d7c143.tar.gz
Source0: https://github.com/%{name}/%{name}-py3/archive/%{version}/%{name}-py3-%{version}.tar.gz
BuildRequires: python3-devel docbook-style-xsl graphviz libxslt source-highlight
BuildRequires: texlive-dvisvgm-bin vim-filesystem symlinks automake autoconf
@ -30,7 +28,7 @@ Obsoletes: %{name}-doc < %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
%prep
%autosetup -n %{name}-py3-%{git_commit_hash}
%autosetup -n %{name}-py3-%{version}
%build
autoreconf -v
@ -62,7 +60,10 @@ for file in $(cd vim; find * -type f); do
done
symlinks -cdr %{buildroot}
# Clean up no needed doc files
rm -f %{buildroot}/%{_pkgdocdir}/INSTALL.txt
rm -f %{buildroot}/%{_mandir}/man1/testasciidoc.1*
%check
export PATH="../:$PATH"
@ -81,7 +82,7 @@ cd ..
%files
%doc BUGS.txt CHANGELOG.txt README.asciidoc
%license COPYING COPYRIGHT
%license COPYRIGHT
%config(noreplace) %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/filters/latex
%{_sysconfdir}/%{name}/filters/latex/*.py
@ -89,7 +90,6 @@ cd ..
%dir %{_sysconfdir}/%{name}/filters/music
%config(noreplace) %{_sysconfdir}/%{name}/filters/music/*.conf
%{_sysconfdir}/%{name}/filters/music/*.py
%{_datadir}/vim/vimfiles/syntax/asciidoc.vim
%{_bindir}/a2x
%{_bindir}/a2x.py
%{_bindir}/%{name}
@ -99,19 +99,25 @@ cd ..
%{python3_sitelib}/__pycache__/asciidocapi*
%exclude %{_bindir}/*.py[co]
%exclude %{_sysconfdir}/%{name}/filters/*/*.py[co]
%exclude %{_pkgdocdir}/examples
%exclude %{_pkgdocdir}/doc
%exclude %{_pkgdocdir}/website
%exclude %{_pkgdocdir}/{docbook-xsl,images,javascripts,stylesheets}
%files help
%doc %{_mandir}/man1/a2x.1*
%doc %{_mandir}/man1/asciidoc.1*
%{_pkgdocdir}/examples
%{_pkgdocdir}/doc
%{_pkgdocdir}/website
%{_pkgdocdir}/{dblatex,docbook-xsl,images,javascripts,stylesheets}
%exclude %{_docdir}/%{name}/{COPYING,COPYRIGHT,README.asciidoc}
%changelog
*Thu Nov 12 2020 shixuantong <shixuantong@huawei.com> - 9.0.4-1
- Type:NA
- ID:NA
- SUG:NA
- DESC:Update to latest upstream release 9.0.4 and update Source0
* Mon Oct 28 2019 caomeng <caomeng5@huawei.com> - 8.6.10-3
- Type:NA
- ID:NA