commit 9e031aab00ca9a607f91ca73334e4652e5258415
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Jul 8 17:03:37 2023 +0100
fix build issue
pyskool.spec | 4 +++-
temporary_python312_fix.patch | 10 ++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/pyskool.spec b/pyskool.spec
index fbb94a8..79f5d06 100644
--- a/pyskool.spec
+++ b/pyskool.spec
@@ -9,10 +9,12 @@ URL:
http://pyskool.ca
Source0: %url/downloads/%{name}/%{name}-%{version}.tar.xz
Source1: skool_daze.desktop
Source2: back_to_skool.desktop
+Patch0: temporary_python312_fix.patch
BuildArch: noarch
BuildRequires: python3-devel
+BuildRequires: python3-setuptools
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
Requires: hicolor-icon-theme
@@ -32,7 +34,7 @@ mice, a frog and a girlfriend.
%prep
-%setup -q
+%autosetup -p1
%build
diff --git a/temporary_python312_fix.patch b/temporary_python312_fix.patch
new file mode 100644
index 0000000..ebd24ae
--- /dev/null
+++ b/temporary_python312_fix.patch
@@ -0,0 +1,10 @@
+--- a/setup.py
++++ b/setup.py
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env python
+ # -*- coding: utf-8 -*-
+-from distutils.core import setup
++from setuptools import setup
+
+ from pyskool import version
+