diff --git a/ginfo.spec b/ginfo.spec index 1489dc7..f808cd9 100644 --- a/ginfo.spec +++ b/ginfo.spec @@ -1,6 +1,6 @@ Name: ginfo Version: 1.0.3 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A versatile tool for discovering Grid services License: ASL 2.0 URL: https://svnweb.cern.ch/trac/gridinfo/browser/ginfo @@ -10,6 +10,7 @@ URL: https://svnweb.cern.ch/trac/gridinfo/browser/ginfo # tar --gzip -czvf ginfo-1.0.3.tar.gz ginfo-1.0.3 Source: %{name}-%{version}.tar.gz +Patch0: python2.patch BuildArch: noarch Requires: python2-ldap @@ -21,6 +22,8 @@ LDAP-based Grid information services or the EMI Registry. %prep %setup -q +%patch0 -p0 + %build %install diff --git a/python2.patch b/python2.patch new file mode 100644 index 0000000..bff30f1 --- /dev/null +++ b/python2.patch @@ -0,0 +1,10 @@ +diff -ru ginfo-1.0.3/bin/ginfo ginfo-patch/bin/ginfo +--- ginfo-1.0.3/bin/ginfo 2013-09-19 13:40:50.000000000 +0000 ++++ ginfo-patch/bin/ginfo 2019-06-18 08:01:18.999175717 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + ############################################################################## + # Copyright (c) CERN, 2012. + # +Only in ginfo-patch/bin: ginfo~