[packages/python-langdetect] new, version 1.0.7
glen
glen at pld-linux.org
Sun Feb 4 15:03:33 CET 2018
commit d9afd3640cc560219e1e153c060e66a7291fc072
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sun Feb 4 16:02:42 2018 +0200
new, version 1.0.7
created with pyp2rpm-3.3.0
python-langdetect.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 99 insertions(+)
---
diff --git a/python-langdetect.spec b/python-langdetect.spec
new file mode 100644
index 0000000..512fa0a
--- /dev/null
+++ b/python-langdetect.spec
@@ -0,0 +1,99 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module langdetect
+%define egg_name langdetect
+%define pypi_name langdetect
+Summary: Language detection library ported from Google's language-detection
+Name: python-%{pypi_name}
+Version: 1.0.7
+Release: 1
+License: ASL-2.0
+Group: Libraries/Python
+Source0: https://files.pythonhosted.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.zip
+# Source0-md5: 6675db2d8abccb97246372767270e912
+URL: https://github.com/Mimino666/langdetect
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: python-six
+%endif
+%if %{with python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-six
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+langdetect Port of Google's [language-detection]( library (version
+from 03/03/2014) to Python. Installation $ pip install
+langdetectSupported Python versions 2.6, 2.7, 3.x. Languages
+langdetect supports 55 languages out of the box ([ISO 639-1 codes](
+af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu,
+he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne, nl, no,
+pa, pl,...
+
+%package -n python3-%{pypi_name}
+Summary: Language detection library ported from Google's language-detection
+Group: Libraries/Python
+
+%description -n python3-%{pypi_name}
+langdetect Port of Google's [language-detection]( library (version
+from 03/03/2014) to Python. Installation $ pip install
+langdetectSupported Python versions 2.6, 2.7, 3.x. Languages
+langdetect supports 55 languages out of the box ([ISO 639-1 codes](
+af, ar, bg, bn, ca, cs, cy, da, de, el, en, es, et, fa, fi, fr, gu,
+he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, mk, ml, mr, ne, nl, no,
+pa, pl,...
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+# Remove bundled egg-info
+%{__rm} -r %{egg_name}.egg-info
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{pypi_name}
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-langdetect.git/commitdiff/d9afd3640cc560219e1e153c060e66a7291fc072
More information about the pld-cvs-commit
mailing list