Package init
This commit is contained in:
commit
ea716a2a82
BIN
asciidoc-py3-8.6.10.tar.gz
Normal file
BIN
asciidoc-py3-8.6.10.tar.gz
Normal file
Binary file not shown.
106
asciidoc.spec
Normal file
106
asciidoc.spec
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
Name: asciidoc
|
||||||
|
Version: 8.6.10
|
||||||
|
Release: 1
|
||||||
|
Summary: Python 3 port of Asciidoc Python
|
||||||
|
License: GPLv2
|
||||||
|
URL: http://asciidoc.org
|
||||||
|
#Source0 is from:
|
||||||
|
#https://github.com/asciidoc/asciidoc-py3/tree/51d7c1433faf183f3a1d161c175f347fd28bfe09
|
||||||
|
#git_commit_date: 20190908, git_commit_hash: 51d7c1433faf183f3a1d161c175f347fd28bfe09
|
||||||
|
Source0: asciidoc-py3-8.6.10.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: python3-devel docbook-style-xsl graphviz libxslt source-highlight
|
||||||
|
BuildRequires: texlive-dvisvgm-bin vim-filesystem symlinks automake autoconf ImageMagick
|
||||||
|
|
||||||
|
Requires: python3 docbook-style-xsl graphviz libxslt source-highlight vim-filesystem
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
Provides: %{name}-latex %{name}-music
|
||||||
|
Obsoletes: %{name}-latex %{name}-music
|
||||||
|
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}
|
||||||
|
Provides: %{name}-doc
|
||||||
|
Obsoletes: %{name}-doc
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-py3-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -v
|
||||||
|
%configure
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install docs DESTDIR=%{buildroot}
|
||||||
|
install -d -m 755 %{buildroot}%{_datadir}/asciidoc/
|
||||||
|
for d in docbook-xsl images javascripts stylesheets; do
|
||||||
|
mv -v %{buildroot}%{_sysconfdir}/asciidoc/$d %{buildroot}%{_datadir}/asciidoc/
|
||||||
|
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}/
|
||||||
|
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}/asciidoc/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}
|
||||||
|
rm -f %{buildroot}/%{_pkgdocdir}/INSTALL.txt
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PATH="../:$PATH"
|
||||||
|
cd tests
|
||||||
|
%{__python3} testasciidoc.py update
|
||||||
|
%{__python3} testasciidoc.py run
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc BUGS.txt CHANGELOG.txt COPYING COPYRIGHT README.asciidoc
|
||||||
|
%config(noreplace) %{_sysconfdir}/asciidoc/
|
||||||
|
%dir %{_sysconfdir}/asciidoc/filters/latex
|
||||||
|
%{_sysconfdir}/asciidoc/filters/latex/*.py
|
||||||
|
%config(noreplace) %{_sysconfdir}/asciidoc/filters/latex/*.conf
|
||||||
|
%dir %{_sysconfdir}/asciidoc/filters/music
|
||||||
|
%config(noreplace) %{_sysconfdir}/asciidoc/filters/music/*.conf
|
||||||
|
%{_sysconfdir}/asciidoc/filters/music/*.py
|
||||||
|
%{_datadir}/vim/vimfiles/syntax/asciidoc.vim
|
||||||
|
%{_bindir}/a2x
|
||||||
|
%{_bindir}/a2x.py
|
||||||
|
%{_bindir}/asciidoc
|
||||||
|
%{_bindir}/asciidoc.py
|
||||||
|
%{_datadir}/asciidoc/
|
||||||
|
%{python3_sitelib}/asciidocapi.py*
|
||||||
|
%{python3_sitelib}/__pycache__/asciidocapi*
|
||||||
|
%exclude %{_bindir}/*.py[co]
|
||||||
|
%exclude %{_sysconfdir}/asciidoc/filters/*/*.py[co]
|
||||||
|
%exclude %{_pkgdocdir}/examples
|
||||||
|
%exclude %{_pkgdocdir}/doc
|
||||||
|
%exclude %{_pkgdocdir}/{docbook-xsl,images,javascripts,stylesheets}
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc %{_mandir}/man1/a2x.1*
|
||||||
|
%doc %{_mandir}/man1/asciidoc.1*
|
||||||
|
%{_pkgdocdir}/examples
|
||||||
|
%{_pkgdocdir}/doc
|
||||||
|
%{_pkgdocdir}/{dblatex,docbook-xsl,images,javascripts,stylesheets}
|
||||||
|
%exclude %{_docdir}/%{name}/{COPYING,COPYRIGHT,README.asciidoc}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 8.6.10-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user