97e4955
%global shortname django-ipware
97e4955
Name:          python-%{shortname}
97e4955
Version:       2.1.0
450c721
Release:       5%{?dist}
97e4955
Summary:       A Django application to retrieve client's IP address
97e4955
97e4955
License:       MIT
97e4955
URL:           https://github.com/un33k/%{shortname}/
97e4955
Source0:       https://github.com/un33k/%{shortname}/archive/%{version}.tar.gz#/%{shortname}-%{version}.tar.gz
97e4955
97e4955
BuildArch: noarch
97e4955
BuildRequires: python3-devel
97e4955
BuildRequires: python3-setuptools
933ecb9
BuildRequires: python3-django
97e4955
97e4955
%description
97e4955
A Django application to retrieve client's IP address.
97e4955
97e4955
%package -n python3-%{shortname}
97e4955
Summary:       A Django application to retrieve client's IP address
97e4955
%{?python_provide:%python_provide python3-%{shortname}}
97e4955
Requires:      python3-django
97e4955
97e4955
%description -n python3-%{shortname}
97e4955
A Django application to retrieve client's IP address.
97e4955
97e4955
%prep
97e4955
%autosetup -n %{shortname}-%{version} -p1
97e4955
97e4955
%build
97e4955
%py3_build
97e4955
97e4955
%install
97e4955
%py3_install
97e4955
97e4955
%check
97e4955
%{__python3} manage.py test
97e4955
97e4955
%files -n python3-%{shortname}
97e4955
%license LICENSE
97e4955
%{python3_sitelib}/ipware/
97e4955
%{python3_sitelib}/django_ipware*
97e4955
97e4955
%changelog
450c721
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
450c721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
450c721
9861ef3
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.1.0-4
9861ef3
- Rebuilt for Python 3.9
9861ef3
58cdff4
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
58cdff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
58cdff4
97e4955
* Thu Dec 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0-2
97e4955
- Review updates
97e4955
97e4955
* Thu Dec 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0-1
97e4955
- Initial package