commit 1174e130c8689ad39a161718878e56fe5887f4fd
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Aug 7 08:37:37 2022 +0100
Fix setuptools build issue
curlew.spec | 3 ++-
fix_setuptools.patch | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/curlew.spec b/curlew.spec
index 80388d3..dbe9259 100644
--- a/curlew.spec
+++ b/curlew.spec
@@ -6,6 +6,7 @@ Summary: Multimedia converter
License: Waqf
URL:
https://github.com/chamfay/Curlew
Source0: %{url}/archive/%{commit}/%{name}-%{version}.tar.gz
+Patch0: fix_setuptools.patch
BuildArch: noarch
@@ -36,7 +37,7 @@ Easy to use, Free and Open-Source Multimedia converter for Linux.
Curlew written in python and GTK3 and it depends on (ffmpeg/avconv).
%prep
-%autosetup -n Curlew-%{commit}
+%autosetup -p1 -n Curlew-%{commit}
%build
%{py3_build}
diff --git a/fix_setuptools.patch b/fix_setuptools.patch
new file mode 100644
index 0000000..6d8c036
--- /dev/null
+++ b/fix_setuptools.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -127,7 +127,7 @@ elif sys.argv[1] == 'clean': clean_a
+ elif sys.argv[1] == 'uninstall': uninstall_all()
+
+
+-setup(
++setup( packages=[],
+ name="curlew",
+ description='Easy to use multimedia converter in Linux',
+ long_description='''Curlew written in python and GTK3 and it depends
on (ffmpeg/avconv).