[packages/dblatex] - align with DEVEL-py3 branch
qboosh
qboosh at pld-linux.org
Sun Nov 29 16:32:30 CET 2026
commit 72c22e8da4a3f41776acab289917581c998a1867
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 29 16:32:25 2026 +0100
- align with DEVEL-py3 branch
dblatex-remove-shebangs-from-non-scripts.patch | 44 ++++++++++++++++++++++++++
dblatex.spec | 10 +++---
2 files changed, 49 insertions(+), 5 deletions(-)
---
diff --git a/dblatex.spec b/dblatex.spec
index 42d5554..015dd57 100644
--- a/dblatex.spec
+++ b/dblatex.spec
@@ -8,6 +8,8 @@ Group: Applications/Publishing
Source0: https://downloads.sourceforge.net/dblatex/%{name}3-%{version}.tar.bz2
# Source0-md5: 550adafd078432ff144b57d90c647714
Patch0: %{name}-imp.patch
+# from Fedora
+Patch1: %{name}-remove-shebangs-from-non-scripts.patch
URL: https://dblatex.sourceforge.net/
BuildRequires: python3 >= 1:3.2
BuildRequires: python3-setuptools
@@ -20,7 +22,7 @@ BuildRequires: texlive-latex-extend
BuildRequires: texlive-latex-wasysym
BuildRequires: texlive-makeindex
BuildRequires: transfig
-Requires: python3-modules
+Requires: python3-modules >= 1:3.2
Requires: texlive-fonts-rsfs
Requires: texlive-format-pdflatex
Requires: texlive-latex-ams
@@ -46,6 +48,7 @@ najpierw do czystego LaTeXa. Obsługiwane są także znaczniki MathML
%prep
%setup -q -n %{name}3-%{version}
%patch -P0 -p1
+%patch -P1 -p1
%build
#%%py_build
@@ -60,9 +63,6 @@ rm -rf $RPM_BUILD_ROOT
%{py3_install_opts} \
--root=$RPM_BUILD_ROOT
-%py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}
-%py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}
-
# fix #!/usr/bin/env python -> #!/usr/bin/python:
%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' $RPM_BUILD_ROOT%{_bindir}/%{name}
@@ -76,6 +76,6 @@ rm -rf $RPM_BUILD_ROOT
%doc COPYRIGHT docs/{manual,release-notes}.pdf
%attr(755,root,root) %{_bindir}/dblatex
%{py3_sitescriptdir}/dbtexmf
-%{py3_sitescriptdir}/dblatex-*.egg-info
+%{py3_sitescriptdir}/dblatex-%{version}-py*.egg-info
%{_datadir}/%{name}
%{_mandir}/man1/dblatex.1*
diff --git a/dblatex-remove-shebangs-from-non-scripts.patch b/dblatex-remove-shebangs-from-non-scripts.patch
new file mode 100644
index 0000000..1e82c30
--- /dev/null
+++ b/dblatex-remove-shebangs-from-non-scripts.patch
@@ -0,0 +1,44 @@
+From 52f0949e92ab898978baafaa341d43896ffcb8c7 Mon Sep 17 00:00:00 2001
+Message-ID: <52f0949e92ab898978baafaa341d43896ffcb8c7.1753130592.git.github at grubix.eu>
+From: Michael J Gruber <github at grubix.eu>
+Date: Mon, 21 Jul 2025 22:41:48 +0200
+Subject: [PATCH] remove shebangs from non-scripts
+
+These python files are pure modules without any code to be called as
+script, so remove the shebangs.
+---
+ lib/dbtexmf/dblatex/xetex/fontspec.py | 1 -
+ lib/dbtexmf/dblatex/xetex/fsconfig.py | 1 -
+ lib/dbtexmf/dblatex/xetex/fsencoder.py | 1 -
+ 3 files changed, 3 deletions(-)
+
+diff --git a/lib/dbtexmf/dblatex/xetex/fontspec.py b/lib/dbtexmf/dblatex/xetex/fontspec.py
+index 767d003..3bda923 100644
+--- a/lib/dbtexmf/dblatex/xetex/fontspec.py
++++ b/lib/dbtexmf/dblatex/xetex/fontspec.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ # Time-stamp: <2008-06-23 22:21:26 ah>
+
+diff --git a/lib/dbtexmf/dblatex/xetex/fsconfig.py b/lib/dbtexmf/dblatex/xetex/fsconfig.py
+index 2b9fa7d..0b475c9 100644
+--- a/lib/dbtexmf/dblatex/xetex/fsconfig.py
++++ b/lib/dbtexmf/dblatex/xetex/fsconfig.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ # Time-stamp: <2008-06-23 22:21:26 ah>
+
+diff --git a/lib/dbtexmf/dblatex/xetex/fsencoder.py b/lib/dbtexmf/dblatex/xetex/fsencoder.py
+index b22e59b..f685c43 100644
+--- a/lib/dbtexmf/dblatex/xetex/fsencoder.py
++++ b/lib/dbtexmf/dblatex/xetex/fsencoder.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+ # Time-stamp: <2008-06-23 22:21:26 ah>
+ from __future__ import print_function
+--
+2.50.1.480.g41fff1fbcf
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dblatex.git/commitdiff/72c22e8da4a3f41776acab289917581c998a1867
More information about the pld-cvs-commit
mailing list