Unretired package (See BZ 1986414)
This commit is contained in:
parent
6cb1c581ef
commit
d10c165a4f
4 changed files with 62 additions and 66 deletions
|
|
@ -1,89 +1,72 @@
|
|||
%{?python_enable_dependency_generator}
|
||||
|
||||
%global srcname azure-devtools
|
||||
%global common_description This package contains tools to aid in developing Python-based Azure code.
|
||||
# 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 a88809f86787492ddc99c4b3ea5de36c99f14b4f
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global distprefix %{nil}
|
||||
%global short_version 1.2.1
|
||||
%forgemeta
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.0.0
|
||||
Release: 10%{?dist}
|
||||
Summary: Devtools for Azure SDK and CLI for Python
|
||||
Version: %{short_version}~git.1.%{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
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/Azure/azure-python-devtools
|
||||
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
# Needed for tests
|
||||
BuildRequires: python3-configargparse
|
||||
BuildRequires: python3-six
|
||||
BuildRequires: python3-vcrpy
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
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}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
%description -n python3-%{srcname}
|
||||
%{common_description}
|
||||
%description -n python3-%{srcname} %{_description}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n azure-python-devtools-%{version}
|
||||
%forgesetup
|
||||
%patch0 -p0
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
pushd tools/%{srcname}
|
||||
%pyproject_wheel
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
%py3_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}
|
||||
|
||||
|
||||
%check
|
||||
%{__python3} -m unittest discover -s src/
|
||||
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%doc README.rst doc/
|
||||
%license LICENSE
|
||||
%{python3_sitelib}/azure_devtools/
|
||||
%{python3_sitelib}/azure_devtools-*.egg-info/
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
%doc tools/%{srcname}/README.rst
|
||||
%license tools/%{srcname}/LICENSE
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-10
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-8
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-7
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Apr 19 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.0-5
|
||||
- Enable Python generators
|
||||
- Enable tests
|
||||
- Spec cleanup
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Nov 21 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.0-3
|
||||
- Fix dependency on python-vcrpy for Fedora <= 27
|
||||
|
||||
* Tue Nov 20 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.0-2
|
||||
- Don't glob everything under the Python sitelib directory
|
||||
|
||||
* Sat Nov 03 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.0-1
|
||||
- Initial RPM release
|
||||
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 1.2.1~git.1.a88809f
|
||||
- Unretired package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue