Blame python-azure-mgmt-datalake-analytics.spec

ed993d7
%global         srcname     azure-mgmt-datalake-analytics
ed993d7
ed993d7
Name:           python-%{srcname}
9cae87a
Version:        0.2.1
61c3e1b
Release:        6%{?dist}
ed993d7
Summary:        Microsoft Azure Data Lake Analytics Management Client Library for Python
ed993d7
License:        MIT
ed993d7
URL:            https://pypi.org/project/%{srcname}/
ed993d7
Source0:        %{pypi_source %{srcname} %{version} zip}
ed993d7
ed993d7
BuildArch:      noarch
ed993d7
9cae87a
Epoch:          1
9cae87a
ed993d7
9cae87a
BuildRequires:  python3-devel
ed993d7
BuildRequires:  pyproject-rpm-macros
ed993d7
ed993d7
ed993d7
%global _description %{expand:
ed993d7
Microsoft Azure Data Lake Analytics Management Client Library for Python}
ed993d7
ed993d7
%description %{_description}
ed993d7
ed993d7
9cae87a
%package -n python3-%{srcname}
ed993d7
Summary:        %{summary}
61c3e1b
Obsoletes:      python3-azure-sdk < 5.0.1
9cae87a
%description -n python3-%{srcname} %{_description}
ed993d7
ed993d7
ed993d7
%prep
a5916a1
%autosetup -p0 -n %{srcname}-%{version}
a5916a1
a5916a1
# Remove the customized wheel builder included by Microsoft that adds
a5916a1
# azure-mgmt-nspkg to the requirements.
1e3bedc
sed -i '/^azure-namespace-package/d' setup.cfg
a5916a1
rm -f azure_bdist_wheel.py
ed993d7
9cae87a
# Fix line endings.
9cae87a
sed -i 's/\r$//' README.rst
ed993d7
ed993d7
%generate_buildrequires
ed993d7
%pyproject_buildrequires -r
ed993d7
ed993d7
ed993d7
%build
ed993d7
%pyproject_wheel
ed993d7
ed993d7
ed993d7
%install
ed993d7
%pyproject_install
ed993d7
47ab9d5
# PEP 420 allows implicit namespace packaging without additional __init__.py
47ab9d5
# files. Remove unneccessary __init__.py that conflicts with other packages.
47ab9d5
rm -rf %{buildroot}%{python3_sitelib}/azure/{__init__.py,__pycache__}
47ab9d5
rm -rf %{buildroot}%{python3_sitelib}/azure/mgmt/{__init__.py,__pycache__}
47ab9d5
rm -rf %{buildroot}%{python3_sitelib}/azure/mgmt/datalake/{__init__.py,__pycache__}
ed993d7
47ab9d5
47ab9d5
%files -n python3-%{srcname}
ce307bf
%doc README.rst HISTORY.rst
47ab9d5
%{python3_sitelib}/azure/mgmt/datalake/analytics
47ab9d5
%{python3_sitelib}/azure_mgmt_datalake_analytics-%{version}.dist-info
ed993d7
ed993d7
ed993d7
%changelog
61c3e1b
* Wed Sep 08 2021 Major Hayden <major@mhtx.net> - 1:0.2.1-6
61c3e1b
- Move obsoletes into subpackage
61c3e1b
779d11e
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.2.1-5
779d11e
- Second attempt - Rebuilt for
779d11e
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
779d11e
b8cc0ce
* Mon Jul 26 2021 Major Hayden <major@mhtx.net> - 1:0.2.1-4
b8cc0ce
- Update wheel builder removal patch
b8cc0ce
ce307bf
* Mon Jul 26 2021 Major Hayden <major@mhtx.net> - 1:0.2.1-3
ce307bf
- Update docs files list
ce307bf
8f03dea
* Fri Jul 23 2021 Major Hayden <major@mhtx.net> - 1:0.2.1-2
8f03dea
- Add epoch number for 0.2.1 downgrade
8f03dea
9cae87a
* Thu Jul 22 2021 Major Hayden <major@mhtx.net> - 0.2.1-1
9cae87a
- Downgrade to 0.2.1
9cae87a
47ab9d5
* Wed Jul 14 2021 Major Hayden <major@mhtx.net> - 0.6.0-3
47ab9d5
- Remove unneccessary __init__.py files to avoid file conflicts.
47ab9d5
55bb964
* Wed Jul 07 2021 Major Hayden <major@mhtx.net> - 0.6.0-2
55bb964
- Remove custom wheel builder to avoid adding azure-mgmt-nspkg requirement.
55bb964
ed993d7
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 0.6.0-1
ed993d7
- First package.