- Switch to autosetup and pyproject macros.
- No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-binaryornot?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 28 06:02:26 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 10 08:51:01 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Wed May 10 08:51:01 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-binaryornot
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -28,14 +28,15 @@ Version: 0.4.4
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python package to check if a file is binary or text
|
Summary: Python package to check if a file is binary or text
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/audreyr/binaryornot
|
URL: https://github.com/audreyr/binaryornot
|
||||||
Source: https://files.pythonhosted.org/packages/source/b/binaryornot/binaryornot-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/b/binaryornot/binaryornot-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE remove_hypothesis_tests.patch -- remove hypothesis-based tests
|
# PATCH-FIX-OPENSUSE remove_hypothesis_tests.patch -- remove hypothesis-based tests
|
||||||
Patch0: remove_hypothesis_tests.patch
|
Patch0: remove_hypothesis_tests.patch
|
||||||
BuildRequires: %{python_module chardet >= 3.0.2}
|
BuildRequires: %{python_module chardet >= 3.0.2}
|
||||||
BuildRequires: %{python_module hypothesis}
|
BuildRequires: %{python_module hypothesis}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-chardet >= 3.0.2
|
Requires: python-chardet >= 3.0.2
|
||||||
@@ -48,14 +49,13 @@ using a heuristic similar to Perl's pp_fttext and its analysis
|
|||||||
by eliben.
|
by eliben.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n binaryornot-%{version}
|
%autosetup -p1 -n binaryornot-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
@@ -68,6 +68,7 @@ $python tests/test_check.py
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS.rst HISTORY.rst README.rst
|
%doc AUTHORS.rst HISTORY.rst README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/binaryornot
|
||||||
|
%{python_sitelib}/binaryornot-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user