diff --git a/ATpy.spec b/ATpy.spec index d2a0cdf..c3f82c9 100644 --- a/ATpy.spec +++ b/ATpy.spec @@ -1,5 +1,5 @@ %if 0%{?fedora} > 12 || 0%{?rhel} > 6 -%global with_python3 1 +%global with_python3 0 %else %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} %endif @@ -14,6 +14,7 @@ Group: Development/Libraries URL: http://atpy.github.com/ Source0: https://github.com/downloads/atpy/atpy/%{name}-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools @@ -74,11 +75,13 @@ popd %endif # with_python3 %{__python} setup.py install --skip-build --root %{buildroot} + +%clean +%{__rm} -fr %{buildroot} %files %defattr(-,root,root,-) %doc CHANGES LICENSE README -%{python_sitelib}/ATpy-*.egg-info %{python_sitelib}/atpy/ %if 0%{?with_python3}