[python-cltk] Initial import(#1146926)
Parag Nemade
pnemade at fedoraproject.org
Fri Oct 24 16:03:53 UTC 2014
commit ec1ab8fab0e27d4fb0dd10d0eb91c1b1543d51fb
Author: Parag Nemade <pnemade at redhat.com>
Date: Fri Oct 24 21:33:52 2014 +0530
Initial import(#1146926)
.gitignore | 1 +
python-cltk.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d6fa132 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cltk-0.0.0.34.tar.gz
diff --git a/python-cltk.spec b/python-cltk.spec
new file mode 100644
index 0000000..63b56a3
--- /dev/null
+++ b/python-cltk.spec
@@ -0,0 +1,89 @@
+%global with_python3 1
+%global module_name cltk
+
+Name: python-%{module_name}
+Version: 0.0.0.34
+Release: 1%{?dist}
+Summary: NLP support for Ancient Greek and Latin
+
+License: MIT
+URL: https://github.com/kylepjohnson/cltk
+Source0: https://pypi.python.org/packages/source/c/%{module_name}/%{module_name}-%{version}.tar.gz
+
+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.
+
+%if 0%{?with_python3}
+%description -n python3-%{module_name}
+The Classical Language Toolkit (CLTK) offers natural language processing support
+for Classical languages.
+
+%endif
+
+%prep
+%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
+
+%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}
+
+%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
+
+
+%changelog
+* Tue Oct 14 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.0.34-1
+- update to 0.0.0.35 release
+
+* Mon Sep 29 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.0.26-1
+- update to 0.0.0.26 release
+
+* Mon Sep 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.0.24-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..4e79c43 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2add9ef6171496490c2871a9f9aa8480 cltk-0.0.0.34.tar.gz
More information about the scm-commits
mailing list