#1 Fix of python3-tld requires both Python 2 and Python 3 (rhbz #1546814)
Merged 6 years ago by williamjmorenor. Opened 6 years ago by aries.
rpms/ aries/python-tld master  into  master

file modified
+13 -1
@@ -2,7 +2,7 @@ 

  

  Name:           python-%{pypiname}

  Version:        0.7.9

- Release:        4%{?dist}

+ Release:        5%{?dist}

  Summary:        Extract the top level domain from the URL given

  

  License:        MPL GPLv2 LGPLv2
@@ -46,14 +46,23 @@ 

  

  %prep

  %setup -q -n %{pypiname}-%{version}

+ # Chanche shebang according to Python version

+ rm -rf %{py3dir}

+ cp -a . %{py3dir}

+ sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python2}=' src/tld/bin/update-tld-names

+ sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' %{py3dir}/src/tld/bin/update-tld-names

  

  %build

  %py2_build

+ pushd %{py3dir}

  %py3_build

+ popd

  

  %install

  %py2_install

+ pushd %{py3dir}

  %py3_install

+ popd

  

  # Please see:

  # https://github.com/barseghyanartur/tld/pull/22
@@ -65,6 +74,9 @@ 

  %{_bindir}/*

  

  %changelog

+ * Fri Mar 16 2018 Jan Beran <jberan@redhat.com> - 0.7.9-5

+ - Fix of python3-tld requires both Python 2 and Python 3 (rhbz #1546814)

+ 

  * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

  

Pull-Request has been merged by williamjmorenor

6 years ago