61c9020
61c9020
%global eggname pyLibravatar
61c9020
%global modname libravatar
61c9020
61c9020
Name:               python-pylibravatar
e00d55a
Version:            1.6
584b3e1
Release:            25%{?dist}
61c9020
Summary:            Python module for Libravatar
61c9020
61c9020
# The full text of the license isn't shipped
61c9020
# https://bugs.launchpad.net/pylibravatar/+bug/1173603
61c9020
License:            MIT
61c9020
URL:                http://pypi.python.org/pypi/pyLibravatar
61c9020
Source0:            http://pypi.python.org/packages/source/p/%{eggname}/%{eggname}-%{version}.tar.gz
1f25479
# https://code.launchpad.net/~ralph-bean/pylibravatar/tcp-dns/+merge/263157
1f25479
Patch0:             python-pylibravatar-dns-srv-tcp.patch
61c9020
61c9020
BuildArch:          noarch
61c9020
61c9020
61c9020
BuildRequires:      python3-devel
e00d55a
BuildRequires:      python3-py3dns
61c9020
d24c287
%global _description\
d24c287
PyLibravatar is an easy way to make use of the federated Libravatar\
d24c287
avatar hosting service from within your Python applications.
d24c287
d24c287
%description %_description
d24c287
61c9020
%package -n python3-pylibravatar
61c9020
Summary:            Python module for Libravatar
61c9020
e00d55a
Requires:           python3-py3dns
61c9020
61c9020
%description -n python3-pylibravatar
61c9020
PyLibravatar is an easy way to make use of the federated Libravatar
61c9020
avatar hosting service from within your Python applications.
61c9020
61c9020
%prep
61c9020
%setup -q -n %{eggname}-%{version}
61c9020
1f25479
%patch0
1f25479
61c9020
# Correct wrong-file-end-of-line-encoding rpmlint issue
61c9020
sed -i 's/\r//' README.txt
61c9020
sed -i 's/\r//' Changelog.txt
61c9020
61c9020
# Remove bundled egg-info in case it exists
61c9020
rm -rf %{eggname}.egg-info
61c9020
61c9020
%build
61c9020
%{__python3} setup.py build
61c9020
61c9020
%install
61c9020
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
61c9020
61c9020
%files -n python3-pylibravatar
61c9020
# Upstream doesn't ship the license full text
61c9020
# https://bugs.launchpad.net/pylibravatar/+bug/1173603
bcbd71e
%doc README.txt Changelog.txt
61c9020
%{python3_sitelib}/%{modname}.py
61c9020
%{python3_sitelib}/__pycache__/*%{modname}*
61c9020
%{python3_sitelib}/%{eggname}-%{version}-*
61c9020
61c9020
%changelog
584b3e1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-25
584b3e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
584b3e1
d6057f9
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.6-24
d6057f9
- Rebuilt for Python 3.9
d6057f9
81214ad
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6-23
81214ad
- Rebuilt for Python 3.8.0rc1 (#1748018)
81214ad
ac863fd
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6-22
ac863fd
- Rebuilt for Python 3.8
ac863fd
ba14b66
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-21
ba14b66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ba14b66
f2ec4aa
* Tue Jun 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6-20
f2ec4aa
- Subpackage python2-pylibravatar has been removed
f2ec4aa
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
f2ec4aa
b660a5c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-19
b660a5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b660a5c
45d755e
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.6-18
45d755e
- Use the py2 version of the macros
45d755e
ba26a55
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-17
ba26a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ba26a55
f5f2adc
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6-16
f5f2adc
- Rebuilt for Python 3.7
f5f2adc
8efcd09
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-15
8efcd09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8efcd09
e9a3d80
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.6-14
e9a3d80
- Update Python 2 dependency declarations to new packaging standards
e9a3d80
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
e9a3d80
d24c287
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.6-13
d24c287
- Python 2 binary package renamed to python2-pylibravatar
d24c287
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
d24c287
98c71af
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-12
98c71af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
98c71af
80c963b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-11
80c963b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
80c963b
b3dae1b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.6-10
b3dae1b
- Rebuild for Python 3.6
b3dae1b
b8b57dc
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-9
b8b57dc
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b8b57dc
b77f0ce
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-8
b77f0ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b77f0ce
fcc3a7b
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-7
fcc3a7b
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
fcc3a7b
1f25479
* Fri Jun 26 2015 Ralph Bean <rbean@redhat.com> - 1.6-6
1f25479
- Apply patch to use tcp for dns srv queries.
1f25479
fccc2a0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-5
fccc2a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fccc2a0
4ac338b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
4ac338b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4ac338b
15ae257
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.6-3
15ae257
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
15ae257
bcbd71e
* Tue Sep 24 2013 Ralph Bean <rbean@redhat.com> - 1.6-2
bcbd71e
- Fix file ownership in python3 subpackage.
bcbd71e
e00d55a
* Tue Sep 24 2013 Ralph Bean <rbean@redhat.com> - 1.6-1
e00d55a
- Latest upstream with python3 support.
e00d55a
- Enable the python3 subpackage.
e00d55a
4c57205
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
4c57205
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4c57205
61c9020
* Mon Jul 01 2013 Ralph Bean <rbean@redhat.com> - 1.5-2
61c9020
- Correct wrong-file-end-of-line-encoding rpmlint issue.
61c9020
61c9020
* Sat Apr 27 2013 Ralph Bean <rbean@redhat.com> - 1.5-1
61c9020
- Initial packaging for Fedora.
61c9020
- There is no test suite at this point.
61c9020
- Upstream doesn't seem to ship the license full text at this point.