diff --git a/qt.sh b/qt.sh index df8d24e..5b7c94c 100755 --- a/qt.sh +++ b/qt.sh @@ -20,9 +20,10 @@ for QTDIR in ${QT_PREFIXES} ; do done unset QT_PREFIXES -if ! echo ${PATH} | /bin/grep -q $QTDIR/bin ; then - PATH=$QTDIR/bin:${PATH} -fi +case :$PATH: in + *:$QTDIR/bin:*) ;; + *) PATH=$QTDIR/bin:$PATH ;; +esac QTINC="$QTDIR/include" QTLIB="$QTDIR/lib" diff --git a/qt3.spec b/qt3.spec index 64a5645..1e621a1 100644 --- a/qt3.spec +++ b/qt3.spec @@ -6,7 +6,7 @@ Name: qt3 Summary: The shared library for the Qt 3 GUI toolkit Version: 3.3.8b -Release: 67%{?dist} +Release: 68%{?dist} License: QPL or GPLv2 or GPLv3 Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -646,6 +646,9 @@ rm -rf %{buildroot} %changelog +* Mon Mar 28 2016 Ville Skyttä - 3.3.8b-68 +- qt.sh: Avoid unnecessary command invocations + * Wed Feb 10 2016 Rex Dieter 3.3.8b-67 - update gccX-buildkey.patch