diff --git a/python-fasttext.spec b/python-fasttext.spec index c866b37..509e629 100644 --- a/python-fasttext.spec +++ b/python-fasttext.spec @@ -52,6 +52,7 @@ Requires: fasttext Requires: python-numpy Requires: python-pybind11 >= 2.2 Requires: python-setuptools >= 0.7.0 +Provides: fasttext = %{version} %if %{with libalternatives} BuildRequires: alts Requires: alts @@ -70,15 +71,6 @@ BuildRequires: %{python_module setuptools >= 0.7.0} fastText is a library for efficient learning of word representations and sentence classification. -%package -n fasttext -Summary: Fast text representation and classification - -%description -n fasttext -fastText is a library for efficient learning of word -representations and sentence classification. - -This package provides the fasttext binary. - %package -n fasttext-devel Summary: Development files for fasttext Requires: libfasttext%{sover} @@ -138,14 +130,11 @@ export LDFLAGS=-L%{__builddir} %python_uninstall_alternative fasttext %files %{python_files} +%doc README.md docs/ %license LICENSE %{python_sitearch}/fasttext %{python_sitearch}/fasttext-%{version}*-info %{python_sitearch}/fasttext_pybind.*.so - -%files -n fasttext -%doc README.md docs/ -%license LICENSE %python_alternative %{_bindir}/fasttext %files -n fasttext-devel