diff --git a/imgvtopgm-lib-cleanup.patch b/imgvtopgm-lib-cleanup.patch new file mode 100644 index 0000000..e24f2e9 --- /dev/null +++ b/imgvtopgm-lib-cleanup.patch @@ -0,0 +1,72 @@ +Index: imgvtopgm-2.0.orig/configure +=================================================================== +--- imgvtopgm-2.0.orig.orig/configure ++++ imgvtopgm-2.0.orig/configure +@@ -2358,14 +2358,14 @@ CPPFLAGS="$CPPFLAGS $X_CFLAGS" + LDFLAGS="$LDFLAGS $X_LIBS" + + PBM_LIBS="" +-echo $ac_n "checking for pbm_init in -lpbm""... $ac_c" 1>&6 +-echo "configure:2363: checking for pbm_init in -lpbm" >&5 ++echo $ac_n "checking for pbm_init in -lnetpbm""... $ac_c" 1>&6 ++echo "configure:2363: checking for pbm_init in -lnetpbm" >&5 + ac_lib_var=`echo pbm'_'pbm_init | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpbm $LIBS" ++LIBS="-lnetpbm $LIBS" + cat > conftest.$ac_ext <&6 +- PBM_LIBS="$PNM_LIBS -lpbm" ++ PBM_LIBS="$PNM_LIBS -lnetpbm" + else + echo "$ac_t""no" 1>&6 + fi + + if test "$PBM_LIBS" = ""; then +-{ echo "configure: error: The PBM library '-lpbm' could not be found. ++{ echo "configure: error: The PBM library '-lnetpbm' could not be found. + Please use the configure options '--with-pnm-includes=DIR' + and '--with-pnm-libraries=DIR' to specify the netpbm location. + See the 'config.log' file for further diagnostics." 1>&2; exit 1; } +@@ -2407,14 +2407,14 @@ fi + + + PGM_LIBS="" +-echo $ac_n "checking for pgm_init in -lpgm""... $ac_c" 1>&6 +-echo "configure:2412: checking for pgm_init in -lpgm" >&5 ++echo $ac_n "checking for pgm_init in -lnetpbm""... $ac_c" 1>&6 ++echo "configure:2412: checking for pgm_init in -lnetpbm" >&5 + ac_lib_var=`echo pgm'_'pgm_init | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpgm $PNM_LIBS ${PBM_LIBS} $LIBS" ++LIBS="-lnetpbm $PNM_LIBS ${PBM_LIBS} $LIBS" + cat > conftest.$ac_ext <&6 +- PGM_LIBS="$PNM_LIBS -lpgm" ++ PGM_LIBS="$PNM_LIBS -lnetpbm" + else + echo "$ac_t""no" 1>&6 + fi + + if test "$PGM_LIBS" = ""; then +-{ echo "configure: error: The PGM library '-lpgm' could not be found. ++{ echo "configure: error: The PGM library '-lnetpbm' could not be found. + Please use the configure options '--with-pnm-includes=DIR' + and '--with-pnm-libraries=DIR' to specify the netpbm location. + See the 'config.log' file for further diagnostics." 1>&2; exit 1; } diff --git a/imgvtopgm.changes b/imgvtopgm.changes index 756a648..e0cb32d 100644 --- a/imgvtopgm.changes +++ b/imgvtopgm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jul 30 11:31:31 UTC 2015 - dimstar@opensuse.org + +- Add imgvtopgm-lib-cleanup.patch: cleanup usage of libraries after + netpbm has been changed to no loner provide all compatibility + names (due to conflicts with openpgm). + ------------------------------------------------------------------- Sun Oct 5 20:41:13 UTC 2014 - jengelh@inai.de diff --git a/imgvtopgm.spec b/imgvtopgm.spec index 51a4ed4..cbafd97 100644 --- a/imgvtopgm.spec +++ b/imgvtopgm.spec @@ -1,7 +1,7 @@ # # spec file for package imgvtopgm # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,8 @@ Url: http://sf.net/projects/imgvtopgm/ #SVN-Clone: svn://svn.code.sf.net/p/imgvtopgm/code/trunk Source: http://downloads.sf.net/%name/%name-%version.tar.gz -Patch: %{name}-%{version}-warnings-fix.diff +Patch0: %{name}-%{version}-warnings-fix.diff +Patch1: imgvtopgm-lib-cleanup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libnetpbm-devel Requires: netpbm @@ -40,15 +41,10 @@ notes. If you are looking for a cool (and free) image viewer for your Pilot, you should look at TinyViewer (http://www.righto.com/pilot/tv.html). - - -Authors: --------- - Eric Howe - %prep %setup -qn %name-%version.orig -%patch +%patch0 +%patch1 -p1 %build %configure