diff --git a/python-ply.spec b/python-ply.spec index 90aeb1d..b933f24 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -11,11 +11,12 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild + %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} @@ -23,7 +24,7 @@ Name: python-%{mod_name} Version: 3.4 -Release: 0 +Release: 1 Url: http://www.dabeaz.com/ply/ Summary: Python Lex & Yacc License: BSD3c @@ -34,9 +35,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} %py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch %endif +%if 0%{?suse_version} > 1110 || 0%{?fedora} > 12 || 0%{?mdkversion} +BuildArch: noarch %endif %description