From 18fbad9925a55491902d6cecc39edc03de667d41 Mon Sep 17 00:00:00 2001 From: rjschwei <> Date: Apr 07 2024 20:17:04 +0000 Subject: Update python-azure-communication-email to version 1.0.0.0 / rev 4 via SR 1165061 https://build.opensuse.org/request/show/1165061 by user rjschwei + anag+factory - Switch package to modern Python Stack on SLE-15 + Use Python 3.11 on SLE-15 by default + Add Obsoletes for old python3 package on SLE-15 + Drop support for older Python versions - Switch build system from setuptools to pyproject.toml + Add python-pip and python-wheel to BuildRequires + Replace %python_build with %pyproject_wheel + Replace %python_install with %pyproject_install + Update name for dist directory in %files section - Drop setting default file attributes in %files section - Use modern RPM macros to express version dependencies (forwarded request 1164664 from glaubitz) --- diff --git a/.files b/.files index 50d0b39..8c6b6b5 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index eb56c60..cd5c311 100644 --- a/.rev +++ b/.rev @@ -32,4 +32,22 @@ proper upgrade from previous version 1.0.0b2 (forwarded request 1076829 from glaubitz) 1076903 + + 376c505ba36f4842bebbe1672fd44ddc + 1.0.0.0 + + anag+factory + - Switch package to modern Python Stack on SLE-15 + + Use Python 3.11 on SLE-15 by default + + Add Obsoletes for old python3 package on SLE-15 + + Drop support for older Python versions +- Switch build system from setuptools to pyproject.toml + + Add python-pip and python-wheel to BuildRequires + + Replace %python_build with %pyproject_wheel + + Replace %python_install with %pyproject_install + + Update name for dist directory in %files section +- Drop setting default file attributes in %files section +- Use modern RPM macros to express version dependencies (forwarded request 1164664 from glaubitz) + 1165061 + diff --git a/python-azure-communication-email.changes b/python-azure-communication-email.changes index 5d8e611..675c229 100644 --- a/python-azure-communication-email.changes +++ b/python-azure-communication-email.changes @@ -1,4 +1,19 @@ ------------------------------------------------------------------- +Thu Apr 4 12:50:09 UTC 2024 - John Paul Adrian Glaubitz + +- Switch package to modern Python Stack on SLE-15 + + Use Python 3.11 on SLE-15 by default + + Add Obsoletes for old python3 package on SLE-15 + + Drop support for older Python versions +- Switch build system from setuptools to pyproject.toml + + Add python-pip and python-wheel to BuildRequires + + Replace %python_build with %pyproject_wheel + + Replace %python_install with %pyproject_install + + Update name for dist directory in %files section +- Drop setting default file attributes in %files section +- Use modern RPM macros to express version dependencies + +------------------------------------------------------------------- Mon Apr 3 07:05:39 UTC 2023 - John Paul Adrian Glaubitz - New upstream release diff --git a/python-azure-communication-email.spec b/python-azure-communication-email.spec index da0e9f3..8e5fa11 100644 --- a/python-azure-communication-email.spec +++ b/python-azure-communication-email.spec @@ -1,7 +1,7 @@ # # spec file for package python-azure-communication-email # -# 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 @@ -18,10 +18,7 @@ %define realversion 1.0.0 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%if 0%{?suse_version} >= 1500 -%define skip_python2 1 -%endif +%{?sle15_python_module_pythons} Name: python-azure-communication-email Version: 1.0.0.0 Release: 0 @@ -33,17 +30,20 @@ Source: https://files.pythonhosted.org/packages/source/a/azure-communica Source1: LICENSE.txt BuildRequires: %{python_module azure-communication-nspkg >= 0.0.0b1} BuildRequires: %{python_module azure-nspkg >= 3.0.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip -Requires: python-azure-common < 2.0.0 -Requires: python-azure-common >= 1.1 Requires: python-azure-communication-nspkg >= 0.0.0b1 -Requires: python-azure-core < 2.0.0 -Requires: python-azure-core >= 1.3.2 Requires: python-azure-nspkg >= 3.0.0 Requires: python-msrest >= 0.7.1 +Requires: (python-azure-common >= 1.1 with python-azure-common < 2.0.0) +Requires: (python-azure-core >= 1.3.2 with python-azure-core < 2.0.0) +%if 0%{?sle_version} >= 150400 +Obsoletes: python3-azure-communication-email < 1.0.0.0 +%endif BuildArch: noarch %python_subpackages @@ -61,10 +61,10 @@ The Azure Communication Email package is used to do following: %build install -m 644 %{SOURCE1} %{_builddir}/azure-communication-email-%{realversion} -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %{python_expand # delete common files rm -rf %{buildroot}%{$python_sitelib}/azure/communication/__init__.* @@ -74,10 +74,9 @@ rm -rf %{buildroot}%{$python_sitelib}/azure/__pycache__ } %files %{python_files} -%defattr(-,root,root,-) %doc CHANGELOG.md README.md %license LICENSE.txt %{python_sitelib}/azure/communication/email -%{python_sitelib}/azure_communication_email-*.egg-info +%{python_sitelib}/azure_communication_email-*.dist-info %changelog