diff --git a/python-binaryornot.changes b/python-binaryornot.changes index 676f010..293a313 100644 --- a/python-binaryornot.changes +++ b/python-binaryornot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 28 06:02:26 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed May 10 08:51:01 UTC 2023 - Johannes Kastl diff --git a/python-binaryornot.spec b/python-binaryornot.spec index 5aedd04..b7b489e 100644 --- a/python-binaryornot.spec +++ b/python-binaryornot.spec @@ -1,7 +1,7 @@ # # spec file for package python-binaryornot # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,14 +28,15 @@ Version: 0.4.4 Release: 0 Summary: Python package to check if a file is binary or text License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/audreyr/binaryornot Source: https://files.pythonhosted.org/packages/source/b/binaryornot/binaryornot-%{version}.tar.gz # PATCH-FIX-OPENSUSE remove_hypothesis_tests.patch -- remove hypothesis-based tests Patch0: remove_hypothesis_tests.patch BuildRequires: %{python_module chardet >= 3.0.2} BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-chardet >= 3.0.2 @@ -48,14 +49,13 @@ using a heuristic similar to Perl's pp_fttext and its analysis by eliben. %prep -%setup -q -n binaryornot-%{version} -%patch0 -p1 +%autosetup -p1 -n binaryornot-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} @@ -68,6 +68,7 @@ $python tests/test_check.py %files %{python_files} %license LICENSE %doc AUTHORS.rst HISTORY.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/binaryornot +%{python_sitelib}/binaryornot-%{version}.dist-info %changelog