diff --git a/python-azure-mgmt-iothubprovisioningservices.spec b/python-azure-mgmt-iothubprovisioningservices.spec index 9e81187..7ccfadd 100644 --- a/python-azure-mgmt-iothubprovisioningservices.spec +++ b/python-azure-mgmt-iothubprovisioningservices.spec @@ -2,11 +2,12 @@ Name: python-%{srcname} Version: 0.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Microsoft Azure IoTHub Provisioning Services Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ Source0: %{pypi_source %{srcname} %{version} zip} +Patch0: remove-custom-wheel-builder.patch BuildArch: noarch @@ -29,7 +30,11 @@ Summary: %{summary} %prep -%autosetup -n %{srcname}-%{version} +%autosetup -p0 -n %{srcname}-%{version} + +# Remove the customized wheel builder included by Microsoft that adds +# azure-mgmt-nspkg to the requirements. +rm -f azure_bdist_wheel.py %generate_buildrequires @@ -50,5 +55,8 @@ Summary: %{summary} %changelog +* Wed Jul 07 2021 Major Hayden - 0.2.0-2 +- Remove custom wheel builder to avoid azure-mgmt-nspkg requirement. + * Tue Jun 01 2021 Major Hayden - 0.2.0 - First package. diff --git a/remove-custom-wheel-builder.patch b/remove-custom-wheel-builder.patch new file mode 100644 index 0000000..76bfa88 --- /dev/null +++ b/remove-custom-wheel-builder.patch @@ -0,0 +1,20 @@ +diff -up ./MANIFEST.in.orig ./MANIFEST.in +--- ./MANIFEST.in.orig 2021-07-07 09:14:44.488137967 -0500 ++++ ./MANIFEST.in 2021-07-07 09:14:48.278112885 -0500 +@@ -1,2 +1 @@ + include *.rst +-include azure_bdist_wheel.py +\ No newline at end of file +diff -up ./setup.cfg.orig ./setup.cfg +--- ./setup.cfg.orig 2021-07-07 09:14:41.778155902 -0500 ++++ ./setup.cfg 2021-07-07 09:14:52.143087306 -0500 +@@ -1,8 +1,6 @@ + [bdist_wheel] + universal = 1 +-azure-namespace-package = azure-mgmt-nspkg + + [egg_info] +-tag_build = ++tag_build = + tag_date = 0 +-