Notification time stamped 2023-02-28 22:39:32 UTC
From 95af0fae93accd68665d5e9457c62c1e49013b58 Mon Sep 17 00:00:00 2001
From: Jerry James <loganjerry(a)gmail.com>
Date: Feb 27 2023 20:32:52 +0000
Subject: Dynamically generate python BuildRequires.
---
diff --git a/libsvm.spec b/libsvm.spec
index 96fb645..f2046fc 100644
--- a/libsvm.spec
+++ b/libsvm.spec
@@ -72,11 +72,6 @@ Install this package if you want to develop programs with libsvm.
%package -n python3-%{name}
Summary: Python3 tools and interfaces for libsvm
BuildRequires: python3-devel
-BuildRequires: pyproject-rpm-macros
-BuildRequires: %{py3_dist pip}
-BuildRequires: %{py3_dist scipy}
-BuildRequires: %{py3_dist setuptools}
-BuildRequires: %{py3_dist wheel}
#gnuplot is required by easy.py
Requires: gnuplot
@@ -162,6 +157,12 @@ rm FAQ.html.orig
%py3_shebang_fix python/libsvm tools
%endif
+%if %{with python}
+%generate_buildrequires
+cd python
+%pyproject_buildrequires
+%endif
+
%build
# Build the library
make all RPM_CFLAGS='%{build_cflags}' LIBDIR='%{_libdir}'
CPP_STD='%{cpp_std}'
@@ -303,6 +304,9 @@ cp -p README java/README-Java
%{_datadir}/applications/*%{name}-svm-toy-qt.desktop
%changelog
+* Mon Feb 27 2023 Jerry James <loganjerry(a)gmail.com> - 3.30-2
+- Dynamically generate python BuildRequires
+
* Thu Jan 19 2023 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.30-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
https://src.fedoraproject.org/rpms/libsvm/c/95af0fae93accd68665d5e9457c62...