2019-12-09 16:22:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-LTTL
|
|
|
|
#
|
2025-03-25 03:09:24 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-12-09 16:22:25 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-LTTL
|
2020-10-21 03:11:00 +00:00
|
|
|
Version: 2.0.12
|
2019-12-09 16:22:25 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for text processing and analysis
|
|
|
|
License: GPL-3.0-only
|
|
|
|
URL: https://github.com/axanthos/LTTL
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/L/LTTL/LTTL-%{version}.zip
|
2023-09-11 07:08:18 +00:00
|
|
|
Patch0: remove-future-requirement.patch
|
|
|
|
BuildRequires: %{python_module pip}
|
2019-12-09 16:22:25 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-09-11 07:08:18 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-12-09 16:22:25 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: unzip
|
|
|
|
Requires: python-numpy
|
|
|
|
Requires: python-scipy
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module numpy}
|
2020-04-15 07:57:07 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-12-09 16:22:25 +00:00
|
|
|
BuildRequires: %{python_module scipy}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
LangTech Text Library (LTTL) for text processing and analysis
|
|
|
|
|
|
|
|
%prep
|
2023-09-11 07:08:18 +00:00
|
|
|
%autosetup -p1 -n LTTL-%{version}
|
2019-12-09 16:22:25 +00:00
|
|
|
sed -i 's/\r$//' README.rst
|
|
|
|
|
|
|
|
%build
|
2023-09-11 07:08:18 +00:00
|
|
|
%pyproject_wheel
|
2019-12-09 16:22:25 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-11 07:08:18 +00:00
|
|
|
%pyproject_install
|
2019-12-09 16:22:25 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-04-15 07:57:07 +00:00
|
|
|
%pytest
|
2019-12-09 16:22:25 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2023-09-11 07:08:18 +00:00
|
|
|
%{python_sitelib}/LTTL
|
2025-04-14 06:03:08 +00:00
|
|
|
%{python_sitelib}/[Ll][Tt][Tt][Ll]-%{version}.dist-info
|
2019-12-09 16:22:25 +00:00
|
|
|
|
|
|
|
%changelog
|