15
0

- Switch to autosetup and pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-daemonize?expand=0&rev=17
This commit is contained in:
2024-02-29 02:10:55 +00:00
committed by Git OBS Bridge
parent 63ddf6d320
commit e78d90e548
2 changed files with 15 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 29 02:10:27 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Sun Jun 11 12:31:13 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-daemonize
#
# Copyright (c) 2020 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
@@ -25,8 +25,10 @@ License: MIT
URL: https://github.com/thesharp/daemonize
Source: https://github.com/thesharp/daemonize/archive/v%{version}.tar.gz
Patch0: no-python2.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: procps
BuildRequires: python-rpm-macros
@@ -38,14 +40,13 @@ BuildArch: noarch
daemonize is a library for writing system daemons in Python.
%prep
%setup -q -n daemonize-%{version}
%patch0 -p1
%autosetup -p1 -n daemonize-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -54,6 +55,8 @@ daemonize is a library for writing system daemons in Python.
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/daemonize.py
%pycache_only %{python_sitelib}/__pycache__/daemonize.*.py*
%{python_sitelib}/daemonize-%{version}.dist-info
%changelog