diff --git a/python-pylibravatar-dns-srv-tcp.patch b/python-pylibravatar-dns-srv-tcp.patch new file mode 100644 index 0000000..72c8357 --- /dev/null +++ b/python-pylibravatar-dns-srv-tcp.patch @@ -0,0 +1,13 @@ +=== modified file 'libravatar.py' +--- libravatar.py 2015-06-26 18:25:23 +0000 ++++ libravatar.py 2014-09-01 23:28:18 +0000 +@@ -165,7 +165,7 @@ + DNS.DiscoverNameServers() + try: + dns_request = DNS.Request(name=service_name(domain, https), +- qtype='SRV').req() ++ qtype='SRV', protocol='tcp').req() + except DNS.DNSError as message: + print("DNS Error: %s" % message) + return None + diff --git a/python-pylibravatar.spec b/python-pylibravatar.spec index 6e5c4c1..50ef55a 100644 --- a/python-pylibravatar.spec +++ b/python-pylibravatar.spec @@ -7,7 +7,7 @@ Name: python-pylibravatar Version: 1.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python module for Libravatar Group: Development/Libraries @@ -16,6 +16,8 @@ Group: Development/Libraries License: MIT URL: http://pypi.python.org/pypi/pyLibravatar Source0: http://pypi.python.org/packages/source/p/%{eggname}/%{eggname}-%{version}.tar.gz +# https://code.launchpad.net/~ralph-bean/pylibravatar/tcp-dns/+merge/263157 +Patch0: python-pylibravatar-dns-srv-tcp.patch BuildArch: noarch @@ -49,6 +51,8 @@ avatar hosting service from within your Python applications. %prep %setup -q -n %{eggname}-%{version} +%patch0 + # Correct wrong-file-end-of-line-encoding rpmlint issue sed -i 's/\r//' README.txt sed -i 's/\r//' Changelog.txt @@ -94,6 +98,9 @@ popd %endif %changelog +* Fri Jun 26 2015 Ralph Bean - 1.6-6 +- Apply patch to use tcp for dns srv queries. + * Thu Jun 18 2015 Fedora Release Engineering - 1.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild