commit 6847e79848ef06679c21da062a5239892b485486
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Jul 8 16:24:46 2023 +0100
fix build issue
devedeng.spec | 4 +++-
temporary_python312_fix.patch | 25 +++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/devedeng.spec b/devedeng.spec
index a9a8e40..d0e492c 100644
--- a/devedeng.spec
+++ b/devedeng.spec
@@ -6,6 +6,7 @@ Summary: A program to create video DVDs and CDs (VCD, sVCD or CVD)
License: GPLv3
URL:
http://www.rastersoft.com/programas/devede.html
Source0:
https://gitlab.com/rastersoft/devedeng/-/archive/%{version}/%{name}-%{ver...
+Patch0: temporary_python312_fix.patch
BuildArch: noarch
@@ -13,6 +14,7 @@ Provides: devede = %{version}-%{release}
Obsoletes: devede < 4.0
BuildRequires: python3-devel
+BuildRequires: python3-setuptools
BuildRequires: gettext
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
@@ -44,7 +46,7 @@ to expand it and easily add new features.
%prep
-%autosetup -n %{name}-%{version}
+%autosetup -p1 -n %{name}-%{version}
%build
diff --git a/temporary_python312_fix.patch b/temporary_python312_fix.patch
new file mode 100644
index 0000000..ad1f6ca
--- /dev/null
+++ b/temporary_python312_fix.patch
@@ -0,0 +1,25 @@
+--- a/setup.py
++++ b/setup.py
+@@ -3,12 +3,7 @@
+ import os
+ import sys
+ from glob import glob
+-from distutils.core import setup
+-
+-try:
+- from distutils import dep_util
+-except:
+- pass
++from setuptools import setup
+
+
+ def get_data_files():
+@@ -63,7 +58,7 @@ def compile_translations():
+ if not os.path.isdir(modir):
+ os.makedirs(modir)
+
+- if not os.path.isfile(mofile) or dep_util.newer(pofile, mofile):
++ if not os.path.isfile(mofile) or os.path.getmtime(pofile) >
os.path.getmtime(mofile):
+ # msgfmt.make(pofile, mofile)
+ os.system("msgfmt \"" + pofile + "\" -o
\"" + mofile + "\"")
+ except: