]> git.pld-linux.org Git - packages/python-langdetect.git/commitdiff
new, version 1.0.7
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 4 Feb 2018 14:02:42 +0000 (16:02 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 4 Feb 2018 14:03:17 +0000 (16:03 +0200)
created with pyp2rpm-3.3.0

python-langdetect.spec [new file with mode: 0644]

diff --git a/python-langdetect.spec b/python-langdetect.spec
new file mode 100644 (file)
index 0000000..512fa0a
--- /dev/null
@@ -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
This page took 0.097318 seconds and 4 git commands to generate.