Hi,
in latest gimp, the detection of libbmpeg in the configure script fails,
because the perl line in the spec file that should change mpeg to bmpeg
doesn't work. Also the Buildrequirement for libbmpeg-devel is missing. I've
fixed this and attached the diff to the spec file.

CU
-- 
   G�tz Waschk <> student of computer science  <> university Rostock    
 http://www.informatik.uni-rostock.de/~waschk/waschk.asc for PGP key
                         --> Logout Fascism! <--
--- gimp.spec-1.2.2-6mdk        Fri Sep 21 17:20:12 2001
+++ gimp.spec   Sun Sep 23 21:05:50 2001
@@ -5,7 +5,7 @@
 %define lib_major 1
 %define ver       1.2.%{revision}
 %define subver    1.2
-%define rel 6mdk
+%define rel 7mdk
 %define major  %{subver}_%{lib_major}
 %define libname lib%{name}%{major}
 
@@ -31,10 +31,10 @@
 Patch3:                 gimp-1.2.2-pre3-scalable-font-only.patch.bz2
 BuildRoot:             %{_tmppath}/%{name}-buildroot
 Obsoletes:             gimp-data-min
-Requires:              mpeg_lib libpng libjpeg gtk+ >= 1.2.8 glib >= 1.2.8 zlib
+Requires:              libpng libjpeg gtk+ >= 1.2.8 glib >= 1.2.8 zlib
 Requires:              %{libname}, perl-PDL, aalib, perl >= 5.6.1
 Provides:              hackgimp
-BuildRequires:         mpeg_lib, libpng-devel, libjpeg-devel, aalib-devel, xpm-devel, 
gpm-devel, gnome-libs-devel, ncurses-devel, slang-devel, libtiff-devel, perl-devel
+BuildRequires:         libbmpeg-devel, libpng-devel, libjpeg-devel, aalib-devel, 
+xpm-devel, gpm-devel, gnome-libs-devel, ncurses-devel, slang-devel, libtiff-devel, 
+perl-devel
 
 %description
 The GIMP is an image manipulation program suitable for photo retouching,
@@ -109,7 +109,7 @@
 %ifarch alpha
 MYARCH_FLAGS="--host=alpha-mandrake-linux"
 %endif
-perl -pi -e "s/([^=_'])mpeg/bmpeg/g" configure
+perl -pi -e "s/(<|\"|-l| )mpeg/\1bmpeg/g" configure
 #%configure --mandir=$RPM_BUILD_ROOT%{_mandir} --with-mp=yes
 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
        --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} \
@@ -354,7 +354,12 @@
 
 
 %changelog
-* Fri Sep 21 2001 Pixel <[EMAIL PROTECTED]> 1.2.%{revision}-6mdk
+* Fri Sep 21 2001 G�tz Waschk <[EMAIL PROTECTED]> 1.2.2-7mdk
+- fixed previous changelog entry's version number :-)
+- fixed detection of libbmpeg
+- added BuildRequires: libbmpeg-devel
+
+* Fri Sep 21 2001 Pixel <[EMAIL PROTECTED]> 1.2.2-6mdk
 - add patch gimp-1.2.2-pre3-scalable-font-only.patch.bz2 which forces the font
 selection dialog to only accept scalable font (needed since gimp forces the
 dpi of the font to dpi of the image, and so fails on non-scalable fonts)

Reply via email to