|
@@ -1,49 +1,42 @@
|
|
|
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
-
|
|
|
Name: dblatex
|
|
|
-Version: 0.3.7
|
|
|
+Version: 0.3.12
|
|
|
Release: 1%{?_dist_release}
|
|
|
Summary: DocBook to LaTeX/ConTeXt Publishing
|
|
|
-BuildArch: noarch
|
|
|
-Group: Applications/Publishing
|
|
|
+Group: publishing
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: GPLv2+
|
|
|
URL: http://dblatex.sourceforge.net/
|
|
|
-Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
-#Source1: http://docbook.sourceforge.net/release/xsl/current/COPYING
|
|
|
-Source1: COPYING-docbook-xsl
|
|
|
-Patch0: dblatex-0.2.7-external-which.patch
|
|
|
-
|
|
|
-##!! ad-hoc patch for no deb
|
|
|
-Patch10: dblatex-0.3.4-no-deb.patch
|
|
|
+Source0: http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2
|
|
|
+# http://docbook.sourceforge.net/release/xsl/current/COPYING
|
|
|
+Source1: COPYING-docbook-xsl
|
|
|
+Patch0: dblatex-0.3.11-disable-debian.patch
|
|
|
+Patch1: dblatex-0.3.11-which-shutil.patch
|
|
|
+Patch2: dblatex-0.3.11-replace-inkscape-by-rsvg.patch
|
|
|
|
|
|
+BuildArch: noarch
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
-BuildRequires: texlive-vtlpkg >= 2013
|
|
|
-BuildRequires: python-devel
|
|
|
-BuildRequires: python-which
|
|
|
-BuildRequires: libxslt docbook-dtds ImageMagick
|
|
|
+BuildRequires: python3-devel
|
|
|
+BuildRequires: python3-setuptools
|
|
|
+BuildRequires: libxslt docbook-dtds ImageMagick
|
|
|
## Need epstopdf, fig2dev
|
|
|
BuildRequires: texlive-collection-fontutils
|
|
|
BuildRequires: transfig
|
|
|
-##BuildRequires: tex(latex)
|
|
|
-##BuildRequires: tex(xetex)
|
|
|
-BuildRequires: texlive-common >= 2013
|
|
|
-## appendix.sty, changebar.sty, footmisc.sty, multirow.sty,
|
|
|
-## overpic.sty, subfigure.sty, titlesec.sty
|
|
|
-BuildRequires: texlive-collection-latexextra
|
|
|
-## stmaryrd.sty
|
|
|
-BuildRequires: texlive-collection-mathextra
|
|
|
-BuildRequires: texlive-collection-htmlxml
|
|
|
+BuildRequires: texlive >= 2020
|
|
|
+BuildRequires: texlive-collection-formatsextra
|
|
|
+BuildRequires: texlive-collection-fontsrecommended
|
|
|
+BuildRequires: texlive-collection-latexextra
|
|
|
+BuildRequires: texlive-collection-xetex
|
|
|
Requires: libxslt docbook-dtds ImageMagick
|
|
|
-##Requires: tex(xetex)
|
|
|
-Requires: texlive-common >= 2013
|
|
|
+Requires: texlive >= 2020
|
|
|
+Requires: texlive-collection-formatsextra
|
|
|
+Requires: texlive-collection-fontsrecommended
|
|
|
Requires: texlive-collection-latexextra
|
|
|
+Requires: texlive-collection-xetex
|
|
|
Requires: transfig
|
|
|
-Requires: texlive-collection-mathextra
|
|
|
-##Requires: passivetex
|
|
|
-Requires: texlive-collection-htmlxml
|
|
|
|
|
|
-## $ rpm -qf --qf "%{name}\n" $(kpsewhich $(grep "usepackage" $(rpm -ql dblatex | grep sty) | sed -e "s,.*{,," -e "s,}.*$,.sty,")) | sort | uniq
|
|
|
Requires: texlive-collection-langcjk texlive-collection-bibtexextra
|
|
|
|
|
|
%description
|
|
@@ -59,19 +52,23 @@ Authors:
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
-%patch0 -p1 -b .external-which
|
|
|
-%patch10 -p1 -b .no-deb
|
|
|
+%setup -q -n %{name}3-%{version}
|
|
|
+%patch0 -p1 -b .disable-debian
|
|
|
+%patch1 -p1 -b .which-shutil
|
|
|
+%patch2 -p1 -b .rsvg
|
|
|
+
|
|
|
%__rm -rf lib/contrib
|
|
|
+pathfix%{__default_python3_version}.py -pni "%{__python3} %{py3_shbang_opts}" .
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
-%{__python} setup.py build
|
|
|
+%{__python3} setup.py build
|
|
|
|
|
|
|
|
|
%install
|
|
|
-%__rm -rf $RPM_BUILD_ROOT
|
|
|
-#%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
-%{__python} setup.py install --root $RPM_BUILD_ROOT
|
|
|
+%{__python3} setup.py install --root $RPM_BUILD_ROOT
|
|
|
+pathfix%{__default_python3_version}.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT%{_bindir}/dblatex
|
|
|
+
|
|
|
# these are already in tetex-latex:
|
|
|
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
|
|
|
%__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
|
|
@@ -97,10 +94,6 @@ done
|
|
|
touch -r xsl/mathml2/README README-xsltml
|
|
|
%__cp -p %{SOURCE1} COPYING-docbook-xsl
|
|
|
|
|
|
-
|
|
|
-%clean
|
|
|
-%__rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
|
|
|
%post
|
|
|
%_tl_touch_run texhash
|
|
@@ -120,15 +113,20 @@ exit 0
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%{_mandir}/man1/dblatex.1*
|
|
|
-%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
|
|
|
-%{python_sitelib}/dbtexmf/
|
|
|
-%{python_sitelib}/dblatex-*.egg-info
|
|
|
+%license COPYRIGHT COPYING-docbook-xsl
|
|
|
+%doc docs/manual.pdf README-xsltml
|
|
|
+%{python3_sitelib}/dbtexmf/
|
|
|
+%{python3_sitelib}/dblatex-*.egg-info
|
|
|
%{_bindir}/dblatex
|
|
|
%{_datadir}/dblatex/
|
|
|
%{_datadir}/texmf/tex/latex/dblatex/
|
|
|
%dir %{_sysconfdir}/dblatex
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Tue Mar 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.3.12-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Wed Jan 20 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.7-1
|
|
|
- new upstream release
|
|
|
|