rpms/gimp/devel gimp-2.2.11-gimptool.patch, NONE, 1.1 gimp.spec, 1.93, 1.94
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Thu Apr 20 12:57:02 UTC 2006
Author: nphilipp
Update of /cvs/dist/rpms/gimp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23514
Modified Files:
gimp.spec
Added Files:
gimp-2.2.11-gimptool.patch
Log Message:
only use pkgconfig if needed in gimptool, require pkgconfig in devel subpackage (#189314, #189371)
gimp-2.2.11-gimptool.patch:
gimptool-2.0.in | 103 +++++++++++++++++++++++++++++++++-----------------------
1 files changed, 61 insertions(+), 42 deletions(-)
--- NEW FILE gimp-2.2.11-gimptool.patch ---
--- gimp-2.2.11/gimptool-2.0.in.gimptool 2006-01-10 13:12:28.000000000 +0100
+++ gimp-2.2.11/gimptool-2.0.in 2006-04-20 14:45:18.000000000 +0200
@@ -91,54 +91,60 @@
usage 1
fi
-if test x${PKG_CONFIG+set} != xset ; then
- PKG_CONFIG=pkg-config
-fi
+__gimptool_init__=0
+init() {
+ if [ "$__gimptool_init__" -eq 0 ]; then
+ if test x${PKG_CONFIG+set} != xset ; then
+ PKG_CONFIG=pkg-config
+ fi
-if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
- gtk_cflags=`$PKG_CONFIG --cflags gtk+-2.0`
- gtk_libs=`$PKG_CONFIG --libs gtk+-2.0`
- glib_cflags=`$PKG_CONFIG --cflags glib-2.0`
- glib_libs=`$PKG_CONFIG --libs glib-2.0`
-else
- echo "*** pkg-config not found or too old; using paths from gimp compilation." 1>&2
- gtk_cflags='@GTK_CFLAGS@'
- gtk_libs='@GTK_LIBS@'
- glib_cflags='@GLIB_CFLAGS@'
- glib_libs='@GLIB_LIBS@'
-fi
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
+ gtk_cflags=`$PKG_CONFIG --cflags gtk+-2.0`
+ gtk_libs=`$PKG_CONFIG --libs gtk+-2.0`
+ glib_cflags=`$PKG_CONFIG --cflags glib-2.0`
+ glib_libs=`$PKG_CONFIG --libs glib-2.0`
+ else
+ echo "*** pkg-config not found or too old; using paths from gimp compilation." 1>&2
+ gtk_cflags='@GTK_CFLAGS@'
+ gtk_libs='@GTK_LIBS@'
+ glib_cflags='@GLIB_CFLAGS@'
+ glib_libs='@GLIB_LIBS@'
+ fi
-if test x${INSTALL+set} != xset ; then
- INSTALL='@INSTALL@'
- if test "$INSTALL" = "./install-sh -c"; then
- mydirname=`echo $0 | sed -e 's#\(.*\)/[^/].*$#\1#'`
- INSTALL="$mydirname/gimpinstall"
- fi
-fi
+ if test x${INSTALL+set} != xset ; then
+ INSTALL='@INSTALL@'
+ if test "$INSTALL" = "./install-sh -c"; then
+ mydirname=`echo $0 | sed -e 's#\(.*\)/[^/].*$#\1#'`
+ INSTALL="$mydirname/gimpinstall"
+ fi
+ fi
-if test x${CC+set} != xset ; then
- cc='@CC@'
-else
- cc="$CC"
-fi
+ if test x${CC+set} != xset ; then
+ cc='@CC@'
+ else
+ cc="$CC"
+ fi
-if test x${CFLAGS+set} != xset ; then
- cflags='@CFLAGS@'
-else
- cflags="$CFLAGS"
-fi
+ if test x${CFLAGS+set} != xset ; then
+ cflags='@CFLAGS@'
+ else
+ cflags="$CFLAGS"
+ fi
-if test x${LDFLAGS+set} != xset ; then
- ldflags='@LDFLAGS@'
-else
- ldflags="$LDFLAGS"
-fi
+ if test x${LDFLAGS+set} != xset ; then
+ ldflags='@LDFLAGS@'
+ else
+ ldflags="$LDFLAGS"
+ fi
-if test x${LIBS+set} != xset ; then
- libs=""
-else
- libs="$LIBS"
-fi
+ if test x${LIBS+set} != xset ; then
+ libs=""
+ else
+ libs="$LIBS"
+ fi
+ __gimptool_init__=1
+ fi
+}
while test $# -gt 0; do
case "$1" in
@@ -174,9 +180,17 @@
exec_prefix_set=yes
;;
--exec-prefix)
+ init
echo $exec_prefix
;;
--*dir)
+ case "$1" in
+ --gimp*dir)
+ ;;
+ *)
+ init
+ ;;
+ esac
dirname=\$`echo $1 | sed -e 's,^--,,'`
dirname=`eval echo $dirname`
test -z "$dirname" && exit 1
@@ -184,6 +198,7 @@
exit 0
;;
--cflags | --cflags-noui | --cflags-nogimpui)
+ init
case $1 in
--cflags | --cflags-nogimpui)
my_gtk_cflags=$gtk_cflags ;;
@@ -194,6 +209,7 @@
echo $includes $my_gtk_cflags
;;
--libs | --libs-nogimpui)
+ init
my_gtk_libs=
libdirs=-L at libdir@
for i in $gtk_libs ; do
@@ -213,6 +229,7 @@
esac
;;
--libs-noui)
+ init
echo -L at libdir@ -lgimp- at GIMP_API_VERSION@ -lgimpcolor- at GIMP_API_VERSION@ -lgimpmath- at GIMP_API_VERSION@ -lgimpbase- at GIMP_API_VERSION@ $glib_libs $rt_libs
;;
--install-bin | --install-admin-bin \
@@ -220,6 +237,7 @@
| --install-script | --install-admin-script \
| --uninstall-bin | --uninstall-admin-bin \
| --uninstall-script | --uninstall-admin-script )
+ init
case $1 in
--*install-bin)
install_cmd="@INSTALL_PROGRAM@"
@@ -292,6 +310,7 @@
| --install-nogimpui-strip | --install-admin-nogimpui-strip \
| --build-noui | --install-noui | --install-admin-noui \
| --build-noui-strip | --install-noui-strip | --install-admin-noui-strip)
+ init
opt=`echo $1 | sed 's/-strip$//'`
if test "x$opt" != "x$1" ; then
cflags=`echo $cflags | sed -e 's/-g //g' -e 's/ -g//g'`
Index: gimp.spec
===================================================================
RCS file: /cvs/dist/rpms/gimp/devel/gimp.spec,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- gimp.spec 19 Apr 2006 06:44:08 -0000 1.93
+++ gimp.spec 20 Apr 2006 12:56:59 -0000 1.94
@@ -19,7 +19,7 @@
%define minorver 200
%define microver %(ver=%{version}; echo ${ver##*.*.})
#define prever pre2
-Release: %{?prever:0.0.%{prever}.}2
+Release: %{?prever:0.0.%{prever}.}3
Epoch: 2
License: GPL, LGPL
Group: Applications/Multimedia
@@ -59,7 +59,6 @@
%if %_with_lcms
BuildRequires: lcms-devel
%endif
-Requires: pkgconfig
Requires: desktop-file-utils >= 0.9
Requires: glib2 >= 2.4.8
Requires: gtk2 >= 2.4.14
@@ -79,6 +78,7 @@
Patch3: gimp-2.2.7-gcc4.patch
Patch4: gimp-2.2.4-gifload.patch
Patch5: gimp-2.2.11-htmlview.patch
+Patch6: gimp-2.2.11-gimptool.patch
%description
The GIMP (GNU Image Manipulation Program) is a powerful image
@@ -93,7 +93,10 @@
%package devel
Summary: GIMP plugin and extension development kit
Group: Applications/Multimedia
-Requires: gtk2-devel, %{name} = %{epoch}:%{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: gtk2-devel
+Requires: glib2-devel
+Requires: pkgconfig
Obsoletes: gimp2-devel gimp-beta-devel <= %{version}
%description devel
The gimp-devel package contains the static libraries and header files
@@ -108,6 +111,7 @@
%patch3 -p1 -b .gcc4
%patch4 -p1 -b .gifload
%patch5 -p1 -b .htmlview
+%patch6 -p1 -b .gimptool
%build
libtoolize --copy --force
@@ -355,6 +359,10 @@
%{_libdir}/pkgconfig/*
%changelog
+* Thu Apr 20 2006 Nils Philippsen <nphilipp at redhat.com> - 2:2.2.11-3
+- only use pkgconfig if needed in gimptool, require pkgconfig in devel
+ subpackage (#189314, #189371)
+
* Wed Apr 19 2006 Nils Philippsen <nphilipp at redhat.com> - 2:2.2.11-2
- require pkgconfig (#189314)
More information about the fedora-cvs-commits
mailing list