1b15c45
# Enable Python dependency generation
1b15c45
%{?python_enable_dependency_generator}
1b15c45
1b15c45
%global pypi_name python-freeipa
1b15c45
%global srcname freeipa
1b15c45
1b15c45
Name:           python-%{srcname}
692d10f
Version:        1.0.7
07908fd
Release:        5%{?dist}
1b15c45
Summary:        Lightweight FreeIPA client
1b15c45
1b15c45
License:        MIT
1b15c45
URL:            https://python-freeipa.readthedocs.io/
1b15c45
Source0:        https://github.com/opennode/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
1b15c45
BuildArch:      noarch
1b15c45
1b15c45
BuildRequires:  python%{python3_pkgversion}-devel
1b15c45
BuildRequires:  %{py3_dist requests}
1b15c45
BuildRequires:  %{py3_dist responses}
1b15c45
BuildRequires:  %{py3_dist setuptools}
1b15c45
1b15c45
%description
1b15c45
python-freeipa is lightweight FreeIPA client.
1b15c45
1b15c45
%package -n     python%{python3_pkgversion}-%{srcname}
1b15c45
Summary:        %{summary} for Python %{python3_version}
1b15c45
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
1b15c45
1b15c45
%description -n python%{python3_pkgversion}-%{srcname}
1b15c45
python-freeipa is lightweight FreeIPA client.
1b15c45
1b15c45
This package provides the Python %{python3_version} variant.
1b15c45
1b15c45
%prep
1b15c45
%autosetup -n %{pypi_name}-%{version}
1b15c45
# Remove bundled egg-info
1b15c45
rm -rf %{pypi_name}.egg-info
1b15c45
280b59d
# Fix version
280b59d
sed -e "s/version='1.0.6',/version='%{version}',/" -i setup.py
280b59d
1b15c45
%build
1b15c45
%py3_build
1b15c45
1b15c45
%install
1b15c45
%py3_install
1b15c45
1b15c45
%check
1b15c45
%python3 setup.py test
1b15c45
1b15c45
%files -n python%{python3_pkgversion}-%{srcname}
1b15c45
%license LICENSE.md
1b15c45
%doc README.rst
1b15c45
%{python3_sitelib}/python_freeipa/
1b15c45
%{python3_sitelib}/python_freeipa-%{version}-py%{python3_version}.egg-info/
1b15c45
1b15c45
%changelog
07908fd
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-5
07908fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
07908fd
2e53530
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-4
2e53530
- Second attempt - Rebuilt for
2e53530
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2e53530
945fc5e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.7-3
945fc5e
- Rebuilt for Python 3.10
945fc5e
113957d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-2
113957d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
113957d
692d10f
* Fri Oct 30 10:45:18 EDT 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.7-1
692d10f
- Update to 1.0.7 (#1893204)
692d10f
4109955
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-2
4109955
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4109955
3569aaa
* Sun Jul 12 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.6-1
3569aaa
- Update to 1.0.6 (#1829511)
3569aaa
fb5a206
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.0.4-2
fb5a206
- Rebuilt for Python 3.9
fb5a206
43d00f3
* Tue Apr 21 19:45:43 EDT 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.4-1
43d00f3
- Update to 1.0.4 (#1826547)
43d00f3
44d6665
* Fri Apr 17 15:22:42 EDT 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.3-1
44d6665
- Update to 1.0.3 (#1825360)
44d6665
1b15c45
* Mon Apr 13 10:26:54 EDT 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.2-1
1b15c45
- Initial package for Fedora (#1823091)