From d1d6a3f079508ecd1fd8afdbf48c1d58524a7257ec0ba39330417ad1e038dad7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 27 Feb 2023 10:45:21 +0000 Subject: [PATCH] - Don't use fdupes -s, it hurts. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-livereload?expand=0&rev=5 --- python-livereload.changes | 5 +++++ python-livereload.spec | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-livereload.changes b/python-livereload.changes index 7805ddd..e301ad0 100644 --- a/python-livereload.changes +++ b/python-livereload.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 27 10:45:13 UTC 2023 - Matej Cepl + +- Don't use fdupes -s, it hurts. + ------------------------------------------------------------------- Mon Nov 8 11:38:41 UTC 2021 - Dirk Müller diff --git a/python-livereload.spec b/python-livereload.spec index bd490c3..95e8c8e 100644 --- a/python-livereload.spec +++ b/python-livereload.spec @@ -1,7 +1,7 @@ # # spec file for package python-livereload # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-livereload Version: 2.6.3 Release: 0 @@ -25,10 +24,11 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://livereload.readthedocs.io/en/latest/ Source: https://github.com/lepture/python-livereload/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{python_module tornado} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six @@ -42,16 +42,16 @@ BuildArch: noarch Reload webpages on changes, without hitting refresh in your browser. %prep -%setup -q +%autosetup -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/livereload -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check # https://github.com/lepture/python-livereload/issues/200 @@ -68,6 +68,6 @@ Reload webpages on changes, without hitting refresh in your browser. %license LICENSE %python_alternative %{_bindir}/livereload %{python_sitelib}/livereload/ -%{python_sitelib}/livereload-%{version}-py%{python_version}.egg-info +%{python_sitelib}/livereload-%{version}*-info %changelog