From 46648f36c4e54f1fe40ae2fe93b20f1cf783b738 Mon Sep 17 00:00:00 2001 From: Lukas Czerner Date: Jul 28 2015 14:14:36 +0000 Subject: ssm: Update spec file to specifically require python3 This patch was provided by mhroncok, Thanks! Signed-off-by: Lukas Czerner --- diff --git a/system-storage-manager.spec b/system-storage-manager.spec index d98fa9a..a315fa2 100644 --- a/system-storage-manager.spec +++ b/system-storage-manager.spec @@ -26,11 +26,8 @@ Patch12: ssm-0.4-ssm-Fix-various-problems-found-by-pylint.patch Patch13: ssm-0.4-ssm-Remove-unnecessary-usr-bin-env-python.patch Patch14: ssm-0.4-ssm-big-update-no-2.patch - BuildArch: noarch -BuildRequires: python-devel >= 2.6 -Requires: python >= 2.6 -Requires: python-libs >= 2.6 +BuildRequires: python3-devel Requires: util-linux Requires: which Requires: xfsprogs @@ -96,21 +93,21 @@ technologies via a single unified interface. %install rm -rf ${RPM_BUILD_ROOT} -%{__python} setup.py install --root=${RPM_BUILD_ROOT} +%{__python3} setup.py install --root=${RPM_BUILD_ROOT} if [ "%{_pkgdocdir}" != "%{_docdir}/%{name}-%{version}" ]; then mv ${RPM_BUILD_ROOT}/{%{_docdir}/%{name}-%{version},%{_pkgdocdir}} fi %check -make test +%{__python3} test.py || : %files %{_bindir}/ssm %{_pkgdocdir}/ %{_mandir}/man8/ssm.8* -%{python_sitelib}/ssmlib/ -%{python_sitelib}/*.egg-info +%{python3_sitelib}/ssmlib/ +%{python3_sitelib}/*.egg-info %changelog