[python-freetype/el6] Clean the spec for EPEL6 specific guidelines
Parag Nemade
pnemade at fedoraproject.org
Fri Oct 24 17:17:44 UTC 2014
commit e92249bde0e7816a5f99c6d46d7915f3bad0fc02
Author: Parag Nemade <pnemade at redhat.com>
Date: Fri Oct 24 22:47:39 2014 +0530
Clean the spec for EPEL6 specific guidelines
python-freetype.spec | 39 ++++-----------------------------------
1 files changed, 4 insertions(+), 35 deletions(-)
---
diff --git a/python-freetype.spec b/python-freetype.spec
index 892d3bd..22df466 100644
--- a/python-freetype.spec
+++ b/python-freetype.spec
@@ -14,23 +14,9 @@ BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
-%if 0%{with_python3}
-%package -n python3-%{module_name}
-Summary: Freetype python bindings
-License: MIT
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-%endif
-
-
%description
Freetype python bindings.
-%if 0%{with_python3}
-%description -n python3-%{module_name}
-Freetype python bindings.
-%endif
-
%prep
%setup -q -n %{module_name}-py-%{version}
#we don't want Vera.ttf to be installed
@@ -41,32 +27,15 @@ sed -i -e '/^#!\//, 1d' freetype/*.py
sed -i -e '/^#!\//, 1d' freetype/ft_enums/*.py
%build
-%{__python2} setup.py build
-
-%if 0%{with_python3}
-echo ${_python3}
-%{__python3} setup.py build
-%endif
+%{__python} setup.py build
%install
-%{__python2} setup.py install --skip-build --root=%{buildroot}
-
-%if 0%{with_python3}
-%{__python3} setup.py install --skip-build --root=%{buildroot}
-%endif
+%{__python} setup.py install --skip-build --root=%{buildroot}
%files -n python-%{module_name}
%doc examples LICENSE.txt
-%{python2_sitelib}/%{module_name}/
-%{python2_sitelib}/%{module_name}_py-%{version}-py2.7.egg-info
-
-%if 0%{?with_python3}
-%files -n python3-%{module_name}
-%doc examples LICENSE.txt
-%{python3_sitelib}/%{module_name}/
-%{python3_sitelib}/%{module_name}_py-%{version}-py3.*.egg-info
-%endif
-
+%{python_sitelib}/%{module_name}/
+%{python_sitelib}/%{module_name}_py-%{version}-py2.?.egg-info
%changelog
* Fri Oct 24 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.4.2-2
More information about the scm-commits
mailing list