Fabian Affolter da80aa1
%global srcname ipgetter
Fabian Affolter 1f8de18
%global sum A Python module to fetch the external IP address
Fabian Affolter da80aa1
Fabian Affolter da80aa1
Name:           python-ipgetter
Fabian Affolter 737f746
Version:        0.6
e316f09
Release:        6%{?dist}
Fabian Affolter 1f8de18
Summary:        %{sum}
Fabian Affolter da80aa1
Fabian Affolter da80aa1
License:        WTFPL
Fabian Affolter da80aa1
URL:            https://github.com/phoemur/ipgetter
Fabian Affolter da80aa1
Source0:        https://pypi.python.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
Fabian Affolter da80aa1
BuildArch:      noarch
Fabian Affolter da80aa1
Fabian Affolter da80aa1
BuildRequires:  python2-devel
Fabian Affolter da80aa1
BuildRequires:  python3-devel
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%description
Fabian Affolter da80aa1
This module is designed to fetch your external IP address from the
Fabian Affolter da80aa1
internet. It is used mostly when behind a NAT. It picks your IP randomly
Fabian Affolter da80aa1
from a server list to minimize request overhead on a single server.
Fabian Affolter da80aa1
Fabian Affolter 1f8de18
%package -n python2-%{srcname}
Fabian Affolter 1f8de18
Summary:        %{sum}
Fabian Affolter 1f8de18
%{?python_provide:%python_provide python2-%{srcname}}
Fabian Affolter 1f8de18
Fabian Affolter 1f8de18
%description -n python2-%{srcname}
Fabian Affolter 1f8de18
This module is designed to fetch your external IP address from the
Fabian Affolter 1f8de18
internet. It is used mostly when behind a NAT. It picks your IP randomly
Fabian Affolter 1f8de18
from a server list to minimize request overhead on a single server.
Fabian Affolter 1f8de18
Fabian Affolter da80aa1
%package -n python3-%{srcname}
Fabian Affolter 1f8de18
Summary:        %{sum}
Fabian Affolter 1f8de18
%{?python_provide:%python_provide python3-%{srcname}}
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%description -n python3-%{srcname}
Fabian Affolter da80aa1
This module is designed to fetch your external IP address from the
Fabian Affolter da80aa1
internet. It is used mostly when behind a NAT. It picks your IP randomly
Fabian Affolter da80aa1
from a server list to minimize request overhead on a single server.
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%prep
Fabian Affolter 1f8de18
%autosetup -n %{srcname}-%{version}
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%build
Fabian Affolter 1f8de18
%py2_build
Fabian Affolter 1f8de18
%py3_build
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%install
Fabian Affolter 1f8de18
%py2_install
Fabian Affolter 1f8de18
%py3_install
Fabian Affolter 1f8de18
Fabian Affolter 1f8de18
%files -n python2-%{srcname}
Fabian Affolter da80aa1
%doc
Fabian Affolter da80aa1
%{python2_sitelib}/*
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%files -n python3-%{srcname}
Fabian Affolter da80aa1
%doc 
Fabian Affolter da80aa1
%{python3_sitelib}/*
Fabian Affolter da80aa1
Fabian Affolter da80aa1
%changelog
e316f09
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6
e316f09
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e316f09
e0f51f8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-5
e0f51f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e0f51f8
Fabian Affolter 1f8de18
* Sat Nov 14 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.6-4
Fabian Affolter 1f8de18
- Cleanup
Fabian Affolter 1f8de18
b5945d0
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
b5945d0
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b5945d0
13e029b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
13e029b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
13e029b
Fabian Affolter 737f746
* Fri Mar 06 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.6-1
Fabian Affolter 737f746
- Update to latest upstream release 0.6
Fabian Affolter 737f746
Fabian Affolter da80aa1
* Wed Feb 26 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.2-1
Fabian Affolter da80aa1
- Initial package for Fedora