2019-09-30 10:31:39 -04:00
|
|
|
Name: asciidoc
|
2023-02-10 18:17:11 +08:00
|
|
|
Version: 10.1.4
|
2020-11-12 18:50:53 +08:00
|
|
|
Release: 1
|
2019-11-06 19:01:53 +08:00
|
|
|
Summary: Python 3 port of Asciidoc Python.
|
2019-09-30 10:31:39 -04:00
|
|
|
License: GPLv2
|
|
|
|
|
URL: http://asciidoc.org
|
2023-02-10 18:17:11 +08:00
|
|
|
Source0: https://github.com/%{name}-py/asciidoc-py/release/download/%{version}/%{name}-%{version}.tar.gz
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
BuildRequires: python3-devel docbook-style-xsl graphviz libxslt source-highlight
|
2019-11-06 19:01:53 +08:00
|
|
|
BuildRequires: texlive-dvisvgm-bin vim-filesystem symlinks automake autoconf
|
2023-02-17 08:11:02 +00:00
|
|
|
BuildRequires: fdupes python3-pytest python3-pytest-mock
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
Requires: python3 docbook-style-xsl graphviz libxslt source-highlight vim-filesystem
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
2019-11-06 19:01:53 +08:00
|
|
|
Obsoletes: %{name}-latex < %{version}-%{release} %{name}-music < %{version}-%{release}
|
|
|
|
|
Provides: %{name}-latex = %{version}-%{release} %{name}-music = %{version}-%{release}
|
|
|
|
|
|
2019-09-30 10:31:39 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python 3 port of Asciidoc Python, this is a development work in progress,
|
|
|
|
|
but passes all tests, real world testing is very much welcomed.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2019-11-06 19:01:53 +08:00
|
|
|
|
|
|
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
%prep
|
2023-02-10 18:17:11 +08:00
|
|
|
%autosetup -n %{name}-%{version}
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
%build
|
2023-02-10 18:17:11 +08:00
|
|
|
python3 setup.py build
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
%install
|
2023-02-10 18:17:11 +08:00
|
|
|
python3 setup.py install --prefix=%_prefix --root=%buildroot
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
|
cp -a doc/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{python3_sitelib}/%{name}
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
%check
|
2023-02-10 18:17:11 +08:00
|
|
|
export PYTHONPATH="$PYTHONPATH:%{buildroot}%{python3_sitelib}"
|
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
python3 -m asciidoc.asciidoc --doctest
|
|
|
|
|
python3 -m pytest --ignore=_build.python3 -v
|
|
|
|
|
python3 tests/testasciidoc.py run
|
2019-09-30 10:31:39 -04:00
|
|
|
|
2019-11-06 19:01:53 +08:00
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
2019-09-30 10:31:39 -04:00
|
|
|
%files
|
2023-02-10 18:17:11 +08:00
|
|
|
%doc README.md BUGS.adoc CHANGELOG.adoc
|
|
|
|
|
%license COPYRIGHT LICENSE
|
2019-09-30 10:31:39 -04:00
|
|
|
%{_bindir}/a2x
|
2019-11-06 19:01:53 +08:00
|
|
|
%{_bindir}/%{name}
|
2023-02-01 15:55:20 +08:00
|
|
|
%{python3_sitelib}/
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
%files help
|
2023-02-10 18:17:11 +08:00
|
|
|
%doc %{_mandir}/man1/
|
|
|
|
|
%doc doc
|
2019-09-30 10:31:39 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2023-02-10 18:17:11 +08:00
|
|
|
* Fri Feb 3 2023 dillon chen <dillon.chen@gmail.com> - 10.1.4-1
|
|
|
|
|
- upgrade to 10.1.4
|
|
|
|
|
|
2023-02-01 15:55:20 +08:00
|
|
|
* Wed Feb 1 2023 dillon chen <dillon.chen@gmail.com> - 9.1.1-1
|
2023-02-10 18:17:11 +08:00
|
|
|
- upgrade to 9.1.1
|
2023-02-01 15:55:20 +08:00
|
|
|
|
2022-12-27 16:43:37 +08:00
|
|
|
* Tue Jun 14 2022 dillon chen <dillon.chen@gmail.com> - 9.1.0-1
|
2022-06-14 12:03:21 +08:00
|
|
|
- upgrade to 9.1.0
|
|
|
|
|
|
2022-12-27 16:43:37 +08:00
|
|
|
* Thu Nov 12 2020 shixuantong <shixuantong@huawei.com> - 9.0.4-1
|
2020-11-12 18:50:53 +08:00
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update to latest upstream release 9.0.4 and update Source0
|
|
|
|
|
|
2019-11-06 19:01:53 +08:00
|
|
|
* Mon Oct 28 2019 caomeng <caomeng5@huawei.com> - 8.6.10-3
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove build requirement ImageMagick
|
|
|
|
|
|
|
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 8.6.10-2
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
2019-09-30 10:31:39 -04:00
|
|
|
* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 8.6.10-1
|
2019-11-06 19:01:53 +08:00
|
|
|
- Package init.
|