Compare commits

..

No commits in common. "f38660dc54773b584752a10f5c9ef60ead55f6cc" and "465a55638e1e9f897c41b8c0489978e5d573abbe" have entirely different histories.

3 changed files with 63 additions and 40 deletions

Binary file not shown.

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

Binary file not shown.

View File

@ -1,14 +1,13 @@
Name: asciidoc Name: asciidoc
Version: 10.2.0 Version: 9.0.4
Release: 1 Release: 1
Summary: Python 3 port of Asciidoc Python. Summary: Python 3 port of Asciidoc Python.
License: GPLv2 License: GPLv2
URL: http://asciidoc.org URL: http://asciidoc.org
Source0: https://github.com/%{name}-py/asciidoc-py/release/download/%{version}/%{name}-py-%{version}.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: python3-devel docbook-style-xsl graphviz libxslt source-highlight
BuildRequires: texlive-dvisvgm-bin vim-filesystem symlinks automake autoconf BuildRequires: texlive-dvisvgm-bin vim-filesystem symlinks automake autoconf
BuildRequires: fdupes python3-pytest python3-pytest-mock dblatex python3-pip python3-wheel
Requires: python3 docbook-style-xsl graphviz libxslt source-highlight vim-filesystem Requires: python3 docbook-style-xsl graphviz libxslt source-highlight vim-filesystem
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -29,7 +28,7 @@ Obsoletes: %{name}-doc < %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release} Provides: %{name}-doc = %{version}-%{release}
%prep %prep
%autosetup -n %{name}-py-%{version} %autosetup -n %{name}-py3-%{version}
%build %build
autoreconf -v autoreconf -v
@ -37,21 +36,41 @@ autoreconf -v
%make_build %make_build
%install %install
make install docs manpages DESTDIR=%{buildroot} make install docs DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1/ install -d -m 755 %{buildroot}%{_datadir}/%{name}/
mv %{buildroot}/share/doc/doc/{asciidoc.1,a2x.1,testasciidoc.1} %{buildroot}%{_mandir}/man1/ for d in docbook-xsl images javascripts stylesheets; do
mkdir -p %{buildroot}/%{_pkgdocdir}/doc mv -v %{buildroot}%{_sysconfdir}/%{name}/$d %{buildroot}%{_datadir}/%{name}/
mv %{buildroot}/share/doc/doc/ %{buildroot}/%{_pkgdocdir}/doc ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_sysconfdir}/%{name}/
mkdir -p %{buildroot}/%{_pkgdocdir}/doc/images rm -rf %{buildroot}%{_docdir}/%{name}/$d
mv %{buildroot}/share/doc/images/ %{buildroot}/%{_pkgdocdir}/doc/images ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_docdir}/%{name}/
rm %{buildroot}/share/doc/{BUGS.adoc,CHANGELOG.adoc,INSTALL.adoc,README.md,dblatex/dblatex-readme.txt,docbook-xsl/asciidoc-docbook-xsl.txt} done
mkdir -p %{buildroot}%{python3_sitelib}/
sed '1d' asciidocapi.py > %{buildroot}%{python3_sitelib}/asciidocapi.py
chmod -x %{buildroot}%{python3_sitelib}/asciidocapi.py
touch -r asciidocapi.py %{buildroot}%{python3_sitelib}/asciidocapi.py
for file in %{buildroot}{%{_bindir},%{_sysconfdir}/%{name}/filters/*}/*.py ; do
touch ${file}{c,o}
done
mkdir -p %{buildroot}/%{_datadir}/vim/vimfiles/{ftdetect,syntax}
for file in $(cd vim; find * -type f); do
install -m 0644 vim/$file %{buildroot}/%{_datadir}/vim/vimfiles/$file
done
symlinks -cdr %{buildroot}
# Clean up no needed doc files
rm -f %{buildroot}/%{_pkgdocdir}/INSTALL.txt
rm -f %{buildroot}/%{_mandir}/man1/testasciidoc.1*
%check %check
export PYTHONPATH="$PYTHONPATH:%{buildroot}%{python3_sitelib}" export PATH="../:$PATH"
export PYTHONDONTWRITEBYTECODE=1 cd tests
python3 -m asciidoc.asciidoc --doctest %{__python3} testasciidoc.py update
python3 -m pytest --ignore=_build.python3 -v %{__python3} testasciidoc.py run
python3 tests/testasciidoc.py run cd ..
%pre %pre
@ -62,34 +81,38 @@ python3 tests/testasciidoc.py run
%postun %postun
%files %files
%doc README.md BUGS.adoc CHANGELOG.adoc COPYRIGHT %doc BUGS.txt CHANGELOG.txt README.asciidoc
%license COPYRIGHT LICENSE %license COPYRIGHT
%config(noreplace) %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/filters/latex
%{_sysconfdir}/%{name}/filters/latex/*.py
%config(noreplace) %{_sysconfdir}/%{name}/filters/latex/*.conf
%dir %{_sysconfdir}/%{name}/filters/music
%config(noreplace) %{_sysconfdir}/%{name}/filters/music/*.conf
%{_sysconfdir}/%{name}/filters/music/*.py
%{_bindir}/a2x %{_bindir}/a2x
%{_bindir}/a2x.py
%{_bindir}/%{name} %{_bindir}/%{name}
%{python3_sitelib}/ %{_bindir}/asciidoc.py
%exclude %{python3_sitelib}/asciidoc/resources/filters/latex %{_datadir}/%{name}/
%exclude %{python3_sitelib}/asciidoc/resources/filters/music %{python3_sitelib}/asciidocapi.py*
%{python3_sitelib}/__pycache__/asciidocapi*
%exclude %{_bindir}/*.py[co]
%exclude %{_sysconfdir}/%{name}/filters/*/*.py[co]
%exclude %{_pkgdocdir}/doc %exclude %{_pkgdocdir}/doc
%dir %{python3_sitelib}/asciidoc/resources/filters/latex %exclude %{_pkgdocdir}/website
%exclude %{_pkgdocdir}/{docbook-xsl,images,javascripts,stylesheets}
%files help %files help
%doc %{_mandir}/man1/ %doc %{_mandir}/man1/a2x.1*
%doc doc %doc %{_mandir}/man1/asciidoc.1*
%{_pkgdocdir}/doc
%{_pkgdocdir}/website
%{_pkgdocdir}/{dblatex,docbook-xsl,images,javascripts,stylesheets}
%exclude %{_docdir}/%{name}/{COPYING,COPYRIGHT,README.asciidoc}
%changelog %changelog
* Tue Mar 21 2023 lilong <lilong@kylinos.cn> - 10.2.0-1 *Thu Nov 12 2020 shixuantong <shixuantong@huawei.com> - 9.0.4-1
- Upgrade to 10.2.0
* Fri Feb 3 2023 dillon chen <dillon.chen@gmail.com> - 10.1.4-1
- upgrade to 10.1.4
* Wed Feb 1 2023 dillon chen <dillon.chen@gmail.com> - 9.1.1-1
- upgrade to 9.1.1
* Tue Jun 14 2022 dillon chen <dillon.chen@gmail.com> - 9.1.0-1
- upgrade to 9.1.0
* Thu Nov 12 2020 shixuantong <shixuantong@huawei.com> - 9.0.4-1
- Type:NA - Type:NA
- ID:NA - ID:NA
- SUG:NA - SUG:NA