From d73e4a2278b572f9b953d55be5acd3a909281f82 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Thu, 16 May 2019 11:37:31 -0400 Subject: [PATCH] nfs-ganesha 2.7.3, enable utils w/ python2 on f30 and up Signed-off-by: Kaleb S. KEITHLEY --- 0001_src_scripts_ganeshactl_CMakeLists.txt.patch | 10 ++++++++++ nfs-ganesha.spec | 12 +++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 0001_src_scripts_ganeshactl_CMakeLists.txt.patch diff --git a/0001_src_scripts_ganeshactl_CMakeLists.txt.patch b/0001_src_scripts_ganeshactl_CMakeLists.txt.patch new file mode 100644 index 0000000..9943436 --- /dev/null +++ b/0001_src_scripts_ganeshactl_CMakeLists.txt.patch @@ -0,0 +1,10 @@ +--- nfs-ganesha-2.7.3/src/scripts/ganeshactl/CMakeLists.txt.orig 2019-05-16 11:24:41.621105054 -0400 ++++ nfs-ganesha-2.7.3/src/scripts/ganeshactl/CMakeLists.txt 2019-05-16 11:24:51.351105054 -0400 +@@ -1,6 +1,6 @@ + # Building and packaging DBUS scripts for ganesha + +-find_program(PYTHON "python") ++find_program(PYTHON "python2") + + # PyQT based class modules + set(GANESHA_BASE_SRCS diff --git a/nfs-ganesha.spec b/nfs-ganesha.spec index 39cfd50..089e912 100644 --- a/nfs-ganesha.spec +++ b/nfs-ganesha.spec @@ -83,10 +83,10 @@ Requires: openSUSE-release %bcond_without lttng %global use_lttng %{on_off_switch lttng} -%bcond_with utils +%bcond_without utils %global use_utils %{on_off_switch utils} -%bcond_with gui_utils +%bcond_without gui_utils %global use_gui_utils %{on_off_switch gui_utils} %bcond_without system_ntirpc @@ -128,12 +128,13 @@ Requires: openSUSE-release Name: nfs-ganesha Version: 2.7.3 -Release: 2%{?dev:%{dev}}%{?dist} +Release: 3%{?dev:%{dev}}%{?dist} Summary: NFS-Ganesha is a NFS Server running in user space License: LGPLv3+ Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki Source0: https://github.com/%{name}/%{name}/archive/V%{version}/%{name}-%{version}.tar.gz +Patch1: 0001_src_scripts_ganeshactl_CMakeLists.txt.patch BuildRequires: cmake BuildRequires: bison @@ -277,6 +278,7 @@ Requires: PyQt4 BuildRequires: python2-devel Requires: nfs-ganesha = %{version}-%{release}, python %else +BuildRequires: python-unversioned-command BuildRequires: python2-devel Requires: nfs-ganesha = %{version}-%{release}, python2 %endif @@ -484,6 +486,7 @@ Development headers and auxiliary files for developing with %{name}. %prep %setup -q -n %{name}-%{version} +%patch1 -p1 %build cd src && %cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -848,6 +851,9 @@ exit 0 %endif %changelog +* Thu May 16 2019 Kaleb S. KEITHLEY - 2.7.3-3 +- nfs-ganesha 2.7.3, enable utils w/ python2 on f30 and up + * Fri May 10 2019 Kaleb S. KEITHLEY - 2.7.3-2 - nfs-ganesha 2.7.3, selinux bz#1706462