| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| %define internal_version 0.6 |
| Name: python-ana |
| Version: 0.06 |
| Release: 0 |
| Summary: The Python "ana" module |
| License: BSD-2-Clause |
| URL: https://github.com/zardus/ana |
| Source: https://files.pythonhosted.org/packages/source/a/ana/ana-%{version}.tar.gz |
| |
| Source2: test.py |
| Source3: https://raw.githubusercontent.com/zardus/ana/master/test_pickle.p |
| |
| Patch0: remove-future-requirement.patch |
| BuildRequires: %{python_module pip} |
| BuildRequires: %{python_module setuptools} |
| BuildRequires: %{python_module wheel} |
| BuildRequires: fdupes |
| BuildRequires: python-rpm-macros |
| BuildArch: noarch |
| %python_subpackages |
| |
| %description |
| A Python module that provides an undocumented data layer for Python objects. |
| |
| %prep |
| %autosetup -p1 -n ana-%{version} |
| cp %{SOURCE2} test.py |
| cp %{SOURCE3} test_pickle.p |
| |
| %build |
| %pyproject_wheel |
| |
| %install |
| %pyproject_install |
| %python_expand %fdupes %{buildroot}%{$python_sitelib} |
| |
| %check |
| %pyunittest discover |
| |
| %files %{python_files} |
| %license LICENSE |
| %doc README.md |
| %{python_sitelib}/ana |
| %if %python_version_nodots < 38 |
| %{python_sitelib}/ana-%{version}*-info |
| %else |
| %{python_sitelib}/ana-%{internal_version}*-info |
| %endif |
| |
| %changelog |