diff --git a/python-editor.spec b/python-editor.spec index 203cc8b..c1b722a 100644 --- a/python-editor.spec +++ b/python-editor.spec @@ -24,7 +24,7 @@ BuildRequires: python-setuptools An python module which provides a convenient example. -%if 0%{with_python3} +%if 0%{?with_python3} %package -n python3-editor Summary: Programmatically open an editor, capture the result. BuildRequires: python3-devel @@ -41,7 +41,7 @@ rm -rf %{pypi_name}.egg-info %build %{__python2} setup.py build -%if 0%{with_python3} +%if 0%{?with_python3} %{__python3} setup.py build %endif @@ -49,7 +49,7 @@ rm -rf %{pypi_name}.egg-info %{__python2} setup.py install --skip-build --root=$RPM_BUILD_ROOT chmod a+x $RPM_BUILD_ROOT%{python2_sitelib}/editor.py -%if 0%{with_python3} +%if 0%{?with_python3} %{__python3} setup.py install --skip-build --root=$RPM_BUILD_ROOT chmod a+x $RPM_BUILD_ROOT%{python3_sitelib}/editor.py %endif @@ -62,7 +62,7 @@ chmod a+x $RPM_BUILD_ROOT%{python3_sitelib}/editor.py %{python2_sitelib}/editor.py* %{python2_sitelib}/python_editor-%{version}-py?.?.egg-info -%if 0%{with_python3} +%if 0%{?with_python3} %files -n python3-editor %doc README.md %license LICENSE