Sam Patwin 80cb389
# what it's called on pypi
Sam Patwin 80cb389
%global srcname netapp-lib
Sam Patwin 80cb389
# what it's imported as
Sam Patwin 80cb389
%global libname netapp_lib
Sam Patwin 80cb389
# name of egg info directory
Sam Patwin 80cb389
%global eggname %{libname}
Sam Patwin 80cb389
# package name fragment
Sam Patwin 80cb389
%global pkgname %{srcname}
Sam Patwin 80cb389
Sam Patwin 80cb389
%global common_description %{expand:
Sam Patwin 80cb389
Library to allow Ansible deployments to interact with NetApp storage systems}
Sam Patwin 80cb389
Sam Patwin 80cb389
Name:           python-%{srcname}
Sam Patwin 80cb389
Version:        2020.7.16
d019a75
Release:        4%{?dist}
Sam Patwin 80cb389
Summary:        NetApp library for Python
Sam Patwin 80cb389
Sam Patwin 80cb389
License:        ASL 2.0
Sam Patwin 80cb389
URL:            https://pypi.org/project/netapp-lib/
Sam Patwin 80cb389
Source0:        %{pypi_source}
Sam Patwin 80cb389
BuildArch:      noarch
Sam Patwin 80cb389
Sam Patwin 80cb389
BuildRequires:  python%{python3_pkgversion}-devel
Sam Patwin 80cb389
BuildRequires:  python%{python3_pkgversion}-setuptools
Sam Patwin 80cb389
Sam Patwin 80cb389
%description %{common_description}
Sam Patwin 80cb389
Sam Patwin 80cb389
%package -n python%{python3_pkgversion}-%{pkgname}
Sam Patwin 80cb389
Summary:        %{summary}
Sam Patwin 80cb389
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
Sam Patwin 80cb389
Sam Patwin 80cb389
%description -n python%{python3_pkgversion}-%{pkgname} %{common_description}
Sam Patwin 80cb389
Sam Patwin 80cb389
Sam Patwin 80cb389
Sam Patwin 80cb389
%prep
Sam Patwin 80cb389
%autosetup -n %{srcname}-%{version}
Sam Patwin 80cb389
rm -rf %{eggname}.egg-info
Sam Patwin 80cb389
Sam Patwin 80cb389
%build
Sam Patwin 80cb389
%py3_build
Sam Patwin 80cb389
Sam Patwin 80cb389
%install
Sam Patwin 80cb389
%py3_install
Sam Patwin 80cb389
Sam Patwin 80cb389
# Note that there is no %%files section for the unversioned python module
Sam Patwin 80cb389
%files -n python%{python3_pkgversion}-%{srcname}
Sam Patwin 80cb389
%doc README.rst
Sam Patwin 80cb389
%license LICENSE.txt
Sam Patwin 80cb389
%exclude /usr/LICENSE.txt
Sam Patwin 80cb389
%{python3_sitelib}/%{libname}/
Sam Patwin 80cb389
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info/
Sam Patwin 80cb389
Sam Patwin 80cb389
Sam Patwin 80cb389
%changelog
d019a75
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2020.7.16-4
d019a75
- Rebuilt for Python 3.10
d019a75
20e316b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020.7.16-3
20e316b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
20e316b
df56477
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2020.7.16-2
df56477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
df56477
Sam Patwin 80cb389
* Fri Jul 24 2020 Sam P <survient@fedoraproject.org> - 2020.7.16-1
Sam Patwin 80cb389
- Updated to upstream latest release
Sam Patwin 80cb389
- Included reference to license file
Sam Patwin 80cb389
Sam Patwin 80cb389
* Wed Jul 15 2020 Sam P <survient@fedoraproject.org> - 2020.3.13-1
Sam Patwin 80cb389
- Updated to latest release
Sam Patwin 80cb389
- Updated to reflect license change
Sam Patwin 80cb389
Sam Patwin 80cb389
* Wed Apr 01 2020 Sam P <survient@fedoraproject.org> - 2020.3.12-1
Sam Patwin 80cb389
- Updated to latest release
Sam Patwin 80cb389
Sam Patwin 80cb389
* Fri Feb 21 2020 Sam P <survient@fedoraproject.org> - 2019.12.20-2
Sam Patwin 80cb389
- Simplified spec file
Sam Patwin 80cb389
Sam Patwin 80cb389
* Fri Feb 21 2020 Sam P <survient@fedoraproject.org> - 2019.12.20-1
Sam Patwin 80cb389
- Initial Commit
Sam Patwin 80cb389