[packages/python-fasttext] - new
qboosh
qboosh at pld-linux.org
Tue Jul 15 20:23:08 CEST 2025
commit 45c7ed1faec219ab8b4b97c22563af50d23a8161
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 15 20:24:29 2025 +0200
- new
python-fasttext.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 99 insertions(+)
---
diff --git a/python-fasttext.spec b/python-fasttext.spec
new file mode 100644
index 0000000..4d0acd2
--- /dev/null
+++ b/python-fasttext.spec
@@ -0,0 +1,99 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: fasttext Python bindings
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki fasttext
+Name: python-fasttext
+Version: 0.9.3
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/fasttext/
+Source0: https://files.pythonhosted.org/packages/source/f/fasttext/fasttext-%{version}.tar.gz
+# Source0-md5: 0ccab4e897c80f2d85402d03c8f7734b
+URL: https://pypi.org/project/fasttext/
+BuildRequires: libstdc++-devel >= 6:7
+%if %{with python2}
+BuildRequires: python-devel >= 1:2.7
+BuildRequires: python-pybind11 >= 2.2
+BuildRequires: python-setuptools >= 1:0.7.0
+%endif
+%if %{with python3}
+BuildRequires: python3-devel >= 1:3.4
+BuildRequires: python3-pybind11 >= 2.2
+BuildRequires: python3-setuptools >= 1:0.7.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+fastText (<https://fasttext.cc/>) is a library for efficient learning
+of word representations and sentence classification.
+
+%description -l pl.UTF-8
+fastText (<https://fasttext.cc/>) to biblioteka do wydajnej nauki
+reprezentacji słów i klasyfikacji zdań.
+
+%package -n python3-fasttext
+Summary: fasttext Python bindings
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki fasttext
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.4
+
+%description -n python3-fasttext
+fastText (<https://fasttext.cc/>) is a library for efficient learning
+of word representations and sentence classification.
+
+%description -n python3-fasttext -l pl.UTF-8
+fastText (<https://fasttext.cc/>) to biblioteka do wydajnej nauki
+reprezentacji słów i klasyfikacji zdań.
+
+%prep
+%setup -q -n fasttext-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%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 LICENSE README.md
+%{py_sitedir}/fasttext
+%attr(755,root,root) %{py_sitedir}/fasttext_pybind.so
+%{py_sitedir}/fasttext-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-fasttext
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitedir}/fasttext
+%attr(755,root,root) %{py3_sitedir}/fasttext_pybind.cpython-*.so
+%{py3_sitedir}/fasttext-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-fasttext.git/commitdiff/45c7ed1faec219ab8b4b97c22563af50d23a8161
More information about the pld-cvs-commit
mailing list