!10 update to 10.1.4
From: @dillon_chen Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
bba13f9faa
BIN
asciidoc-10.1.4.tar.gz
Normal file
BIN
asciidoc-10.1.4.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,13 +1,14 @@
|
|||||||
Name: asciidoc
|
Name: asciidoc
|
||||||
Version: 9.1.1
|
Version: 10.1.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/archive/%{version}/%{name}-py-%{version}.tar.gz
|
Source0: https://github.com/%{name}-py/asciidoc-py/release/download/%{version}/%{name}-%{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
|
||||||
|
|
||||||
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}
|
||||||
@ -28,49 +29,24 @@ 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}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v
|
python3 setup.py build
|
||||||
%configure
|
|
||||||
%make_build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install docs DESTDIR=%{buildroot}
|
python3 setup.py install --prefix=%_prefix --root=%buildroot
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}/
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||||
for d in docbook-xsl images javascripts stylesheets; do
|
cp -a doc/*.1 %{buildroot}%{_mandir}/man1/
|
||||||
mv -v %{buildroot}%{_sysconfdir}/%{name}/$d %{buildroot}%{_datadir}/%{name}/
|
|
||||||
ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_sysconfdir}/%{name}/
|
|
||||||
rm -rf %{buildroot}%{_docdir}/%{name}/$d
|
|
||||||
ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_docdir}/%{name}/
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{python3_sitelib}/
|
%fdupes %{buildroot}%{python3_sitelib}/%{name}
|
||||||
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 PATH="../:$PATH"
|
export PYTHONPATH="$PYTHONPATH:%{buildroot}%{python3_sitelib}"
|
||||||
cd tests
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
%{__python3} testasciidoc.py update
|
python3 -m asciidoc.asciidoc --doctest
|
||||||
%{__python3} testasciidoc.py run
|
python3 -m pytest --ignore=_build.python3 -v
|
||||||
cd ..
|
python3 tests/testasciidoc.py run
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
|
||||||
@ -81,38 +57,22 @@ cd ..
|
|||||||
%postun
|
%postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc BUGS.txt CHANGELOG.txt README.asciidoc
|
%doc README.md BUGS.adoc CHANGELOG.adoc
|
||||||
%license COPYRIGHT
|
%license COPYRIGHT LICENSE
|
||||||
%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}
|
||||||
%{_bindir}/asciidoc.py
|
|
||||||
%{_datadir}/%{name}/
|
|
||||||
%{python3_sitelib}/
|
%{python3_sitelib}/
|
||||||
%exclude %{_bindir}/*.py[co]
|
|
||||||
%exclude %{_sysconfdir}/%{name}/filters/*/*.py[co]
|
|
||||||
%exclude %{_pkgdocdir}/doc
|
|
||||||
%exclude %{_pkgdocdir}/website
|
|
||||||
%exclude %{_pkgdocdir}/{docbook-xsl,images,javascripts,stylesheets}
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{_mandir}/man1/a2x.1*
|
%doc %{_mandir}/man1/
|
||||||
%doc %{_mandir}/man1/asciidoc.1*
|
%doc doc
|
||||||
%{_pkgdocdir}/doc
|
|
||||||
%{_pkgdocdir}/website
|
|
||||||
%{_pkgdocdir}/{dblatex,docbook-xsl,images,javascripts,stylesheets}
|
|
||||||
%exclude %{_docdir}/%{name}/{COPYING,COPYRIGHT,README.asciidoc}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed Feb 1 2023 dillon chen <dillon.chen@gmail.com> - 9.1.1-1
|
||||||
- Bug fixes. upgrade to 9.1.1
|
- upgrade to 9.1.1
|
||||||
|
|
||||||
* Tue Jun 14 2022 dillon chen <dillon.chen@gmail.com> - 9.1.0-1
|
* Tue Jun 14 2022 dillon chen <dillon.chen@gmail.com> - 9.1.0-1
|
||||||
- upgrade to 9.1.0
|
- upgrade to 9.1.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user