[python-cltk/el6] Clean the spec for EPEL6 specific guidelines
Parag Nemade
pnemade at fedoraproject.org
Fri Oct 24 17:22:23 UTC 2014
commit fe1aeeac38f7063b361265e43275a1c46bbd5ec0
Author: Parag Nemade <pnemade at redhat.com>
Date: Fri Oct 24 22:52:22 2014 +0530
Clean the spec for EPEL6 specific guidelines
python-cltk.spec | 46 ++++------------------------------------------
1 files changed, 4 insertions(+), 42 deletions(-)
---
diff --git a/python-cltk.spec b/python-cltk.spec
index 3f7da1d..a268cc3 100644
--- a/python-cltk.spec
+++ b/python-cltk.spec
@@ -1,4 +1,3 @@
-%global with_python3 0
%global module_name cltk
Name: python-%{module_name}
@@ -14,15 +13,6 @@ BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
-%if 0%{?with_python3}
-%package -n python3-%{module_name}
-Summary: NLP support for Ancient Greek and Latin
-License: MIT
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-%endif
-
-
%description
The Classical Language Toolkit (CLTK) offers natural language processing support
for Classical languages.
@@ -38,44 +28,16 @@ for Classical languages.
%setup -q -n %{module_name}-%{version}
rm -rf *.egg-info
-%if 0%{?with_python3}
-rm -rf %{py3dir}
-cp -a . %{py3dir}
-find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
-%endif
-
-find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
-
%build
-%{__python2} setup.py build
-
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py build
-popd
-%endif
+%{__python} setup.py build
%install
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py install --skip-build --root=%{buildroot}
-popd
-%endif
-
-%{__python2} setup.py install --skip-build --root=%{buildroot}
+%{__python} setup.py install --skip-build --root=%{buildroot}
%files -n python-%{module_name}
%doc PKG-INFO
-%{python2_sitelib}/%{module_name}/
-%{python2_sitelib}/%{module_name}-%{version}-py2.*.egg-info
-
-%if 0%{?with_python3}
-%files -n python3-%{module_name}
-%doc PKG-INFO
-%{python3_sitelib}/%{module_name}/
-%{python3_sitelib}/%{module_name}-%{version}-py3.*.egg-info
-%endif
-
+%{python_sitelib}/%{module_name}/
+%{python_sitelib}/%{module_name}-%{version}-py2.*.egg-info
%changelog
* Tue Oct 14 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.0.34-1
More information about the scm-commits
mailing list