python-azure-devtools/python-azure-devtools.spec
2021-08-03 14:14:49 -05:00

75 lines
2 KiB
RPMSpec

# The last versioned release of the devtools code is 1.2.1, but upstream
# continues to update it without bumping the version. 😞
%global srcname azure-devtools
%global forgeurl https://github.com/Azure/azure-sdk-for-python/
%global commit 19487ff9f1790033bcc9e3354b7bdee309a5bc71
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global distprefix %{nil}
%global short_version 1.2.1
%forgemeta
Name: python-%{srcname}
Version: %{short_version}~git.2.%{shortcommit}
Release: 1%{?dist}
Summary: Microsoft Azure Development Tools for SDK
License: MIT and ASL 2.0
URL: %forgeurl
Source0: %forgesource
# Asked upstream to update the vcrpy requirement. PR in progress.
# https://github.com/Azure/azure-sdk-for-python/pull/20032
Patch0: python-azure-devtools-requirements-fix.patch
BuildArch: noarch
Obsoletes: python-azure-sdk < 5.0.1
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: pyproject-rpm-macros
%global _description %{expand:
Development tools for Python-based Azure tools
This package contains tools to aid in developing Python-based Azure code.}
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
%description -n python3-%{srcname} %{_description}
%prep
%forgesetup
%patch0 -p0
%build
pushd tools/%{srcname}
%pyproject_wheel
popd
%install
%pyproject_install
%pyproject_save_files azure_devtools
# Some provided executables are only used internally in Azure SDK's CI.
rm -f %{buildroot}%{_bindir}/{perfstress,systemperf}
%files -n python3-%{srcname} -f %{pyproject_files}
%doc tools/%{srcname}/README.rst
%license tools/%{srcname}/LICENSE
%changelog
* Tue Aug 03 2021 Major Hayden <major@mhtx.net> - 1.2.1~git.2.19487ff
- Updated to latest commit on 2021-08-03
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 1.2.1~git.1.a88809f
- Unretired package.