Update to latest upstream release 10.2.0
This commit is contained in:
parent
5b2f7579f2
commit
1ac6da85eb
@ -1,15 +1,17 @@
|
|||||||
Name: asciidoc
|
Name: asciidoc
|
||||||
Version: 9.1.0
|
Version: 10.2.0
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Text based document generation
|
Summary: Text based document generation
|
||||||
|
|
||||||
License: GPL+ and GPLv2+
|
License: GPL+ and 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/asciidoc-py/asciidoc-py/archive/%{version}/%{name}-py-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: dblatex
|
BuildRequires: dblatex
|
||||||
BuildRequires: docbook-style-xsl
|
BuildRequires: docbook-style-xsl
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
@ -53,19 +55,6 @@ Requires: texlive-dvipng-bin
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-py-%{version} -p1
|
%autosetup -n %{name}-py-%{version} -p1
|
||||||
# Convert files to utf-8
|
|
||||||
for file in README.asciidoc doc/*.dict website/*.dict; do
|
|
||||||
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
|
||||||
touch -r $file $file.new && \
|
|
||||||
mv $file.new $file
|
|
||||||
done
|
|
||||||
|
|
||||||
# Remove music files
|
|
||||||
rm -rf %{buildroot}{%{_sysconfdir}/asciidoc/filters/music,%{_sysconfdir}/asciidoc/filters/music/*.conf,%{_sysconfdir}/asciidoc/filters/music/*.py}
|
|
||||||
|
|
||||||
# Fix python shebang
|
|
||||||
grep -rl '#!/usr/bin/env python' | xargs -r \
|
|
||||||
sed -i -e '1s@#!/usr/bin/env python3\?$@#!%{__python3}@'
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v
|
autoreconf -v
|
||||||
@ -73,40 +62,14 @@ autoreconf -v
|
|||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install docs DESTDIR=%{buildroot}
|
make install docs manpages DESTDIR=%{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
install -dm 755 %{buildroot}%{_datadir}/asciidoc/
|
mv %{buildroot}/share/doc/doc/{asciidoc.1,a2x.1,testasciidoc.1} %{buildroot}%{_mandir}/man1/
|
||||||
# Real conf data goes to sysconfdir, rest to datadir; symlinks so asciidoc works
|
mkdir -p %{buildroot}/%{_pkgdocdir}/doc
|
||||||
for d in dblatex docbook-xsl images javascripts stylesheets; do
|
mv %{buildroot}/share/doc/doc/ %{buildroot}/%{_pkgdocdir}/doc
|
||||||
mv -v %{buildroot}%{_sysconfdir}/asciidoc/$d \
|
mkdir -p %{buildroot}/%{_pkgdocdir}/doc/images
|
||||||
%{buildroot}%{_datadir}/asciidoc/
|
mv %{buildroot}/share/doc/images/ %{buildroot}/%{_pkgdocdir}/doc/images
|
||||||
# Absolute symlink into buildroot is intentional, see below
|
rm %{buildroot}/share/doc/{BUGS.adoc,CHANGELOG.adoc,INSTALL.adoc,README.md,dblatex/dblatex-readme.txt,docbook-xsl/asciidoc-docbook-xsl.txt}
|
||||||
ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_sysconfdir}/%{name}/
|
|
||||||
|
|
||||||
# Let's symlink stuff for documentation as well so we don't duplicate things
|
|
||||||
rm -rf %{buildroot}%{_docdir}/%{name}/$d
|
|
||||||
# Absolute symlink into buildroot is intentional, see below
|
|
||||||
ln -s %{buildroot}%{_datadir}/%{name}/$d %{buildroot}%{_docdir}/%{name}/
|
|
||||||
done
|
|
||||||
|
|
||||||
# Python API
|
|
||||||
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
|
|
||||||
|
|
||||||
# Make it easier to %%exclude these with both rpm < and >= 4.7
|
|
||||||
for file in %{buildroot}{%{_bindir},%{_sysconfdir}/asciidoc/filters/*}/*.py ; do
|
|
||||||
touch ${file}{c,o}
|
|
||||||
done
|
|
||||||
|
|
||||||
# Absolute symlinks were used above to be able to detect dangling ones. Make
|
|
||||||
# them relative now (sane for being installed) and remove dangling symlinks.
|
|
||||||
symlinks -cdr %{buildroot}
|
|
||||||
|
|
||||||
# Clean up no needed doc files
|
|
||||||
rm -f %{buildroot}/%{_pkgdocdir}/INSTALL.txt
|
|
||||||
rm -f %{buildroot}/%{_mandir}/man1/testasciidoc.1*
|
|
||||||
|
|
||||||
# Some tests are failing
|
# Some tests are failing
|
||||||
#%%check
|
#%%check
|
||||||
@ -116,37 +79,28 @@ rm -f %{buildroot}/%{_mandir}/man1/testasciidoc.1*
|
|||||||
#%%{__python3} testasciidoc.py run
|
#%%{__python3} testasciidoc.py run
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc BUGS.txt CHANGELOG.txt COPYRIGHT README.asciidoc
|
%doc BUGS.adoc CHANGELOG.adoc COPYRIGHT README.md
|
||||||
%{_mandir}/man1/a2x.1*
|
%{_mandir}/man1/*.1*
|
||||||
%{_mandir}/man1/asciidoc.1*
|
|
||||||
%config(noreplace) %{_sysconfdir}/asciidoc/
|
|
||||||
%{_bindir}/a2x
|
%{_bindir}/a2x
|
||||||
%{_bindir}/a2x.py
|
|
||||||
%{_bindir}/asciidoc
|
%{_bindir}/asciidoc
|
||||||
%{_bindir}/asciidoc.py
|
%{python3_sitelib}/asciidoc-%{version}-py*.egg-info/
|
||||||
%{_datadir}/asciidoc/
|
%{python3_sitelib}/asciidoc/
|
||||||
%{python3_sitelib}/asciidocapi.py*
|
%exclude %{python3_sitelib}/asciidoc/resources/filters/latex
|
||||||
%{python3_sitelib}/__pycache__/asciidocapi*
|
%exclude %{python3_sitelib}/asciidoc/resources/filters/music
|
||||||
%exclude %{_bindir}/*.py[co]
|
|
||||||
%exclude %{_sysconfdir}/asciidoc/filters/*/*.py[co]
|
|
||||||
%exclude %{_sysconfdir}/asciidoc/filters/latex
|
|
||||||
%exclude %{_sysconfdir}/asciidoc/filters/music
|
|
||||||
%exclude %{_pkgdocdir}/website
|
|
||||||
%exclude %{_pkgdocdir}/doc
|
%exclude %{_pkgdocdir}/doc
|
||||||
%exclude %{_pkgdocdir}/{dblatex,docbook-xsl,images,javascripts,stylesheets}
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%{_pkgdocdir}/website
|
%doc COPYRIGHT
|
||||||
%{_pkgdocdir}/doc
|
%{_pkgdocdir}/doc/
|
||||||
%{_pkgdocdir}/{dblatex,docbook-xsl,images,javascripts,stylesheets}
|
|
||||||
%exclude %{_docdir}/%{name}/{COPYRIGHT,README.asciidoc}
|
|
||||||
|
|
||||||
%files latex
|
%files latex
|
||||||
%dir %{_sysconfdir}/asciidoc/filters/latex
|
%doc COPYRIGHT
|
||||||
%{_sysconfdir}/asciidoc/filters/latex/*.py
|
%dir %{python3_sitelib}/asciidoc/resources/filters/latex
|
||||||
%config(noreplace) %{_sysconfdir}/asciidoc/filters/latex/*.conf
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 11 2023 Fabian Affolter <mail@fabian-affolter.ch> - 10.2.0-1
|
||||||
|
- Update to latest upstream release 10.2.0
|
||||||
|
|
||||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.1.0-7
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.1.0-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (asciidoc-py-9.1.0.tar.gz) = c4565cfb30a8789ed64b7b9293019a6528eb93341ab109c9a6cb4985bf4a65117516e03b84340eb84ea07981650f50f52c0ae85eba2956fcbde23e46b3cf228e
|
SHA512 (asciidoc-py-10.2.0.tar.gz) = 278b4d95af1a93864887fc6a79e38fab431c4a7bf9cca4b734a7ec7cc140c0b804d7182c2002742cb408a2adc68b1f9c8996e930ba2f68a9f8488f75887b00e6
|
||||||
|
Loading…
Reference in New Issue
Block a user