diff --git a/python-pysendfile.changes b/python-pysendfile.changes index 9821c5d..1f2c3ac 100644 --- a/python-pysendfile.changes +++ b/python-pysendfile.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Apr 21 12:31:18 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 23:38:24 UTC 2023 - Matej Cepl + +- Refresh SPEC file. + +------------------------------------------------------------------- +Thu Apr 13 22:43:55 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + ------------------------------------------------------------------- Fri Aug 11 16:33:20 UTC 2017 - tbechtold@suse.com diff --git a/python-pysendfile.spec b/python-pysendfile.spec index 1a0ed0e..f412f1b 100644 --- a/python-pysendfile.spec +++ b/python-pysendfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-pysendfile # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,25 +12,24 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} %define mod_name pysendfile - Name: python-pysendfile Version: 2.0.1 Release: 0 Summary: A Python interface to sendfile(2) License: MIT Group: Development/Languages/Python -Url: http://code.google.com/p/pysendfile/ +URL: https://github.com/giampaolo/pysendfile Source: https://files.pythonhosted.org/packages/source/p/pysendfile/pysendfile-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build - %python_subpackages %description @@ -41,14 +40,15 @@ A python interface to sendfile(2) system call. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst -%{python_sitearch}/* +%license LICENSE +%doc README.rst +%{python_sitearch}/sendfile.*.so +%{python_sitearch}/pysendfile-%{version}*-info %changelog