--- gimp2.spec.old 2006-10-23 23:59:43 +0400 +++ gimp2.spec 2006-12-03 15:28:45 +0300 @@ -4,7 +4,7 @@ Name: gimp2 Version: %ver_major.13 -Release: alt1 +Release: alt2 Summary: The GNU Image Manipulation Program License: GPL, LGPL @@ -61,10 +61,19 @@ Development libraries and header files f %setup -q -n %_name-%version %build -%configure \ - --disable-mmx \ - --disable-sse - +%configure +%ifarch %ix86 +# hack derived from opensuse gimp package +cd app/composite +# FIXME: +# gimp-composite-mmx.c: In function 'gimp_composite_burn_rgba8_rgba8_rgba8_mmx': +# gimp-composite-mmx.c:148: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' +# gimp-composite-sse.c: In function 'gimp_composite_burn_rgba8_rgba8_rgba8_sse': +# gimp-composite-sse.c:127: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' +make CFLAGS="%optflags -fno-strict-aliasing -O0" \ +libcompositemmx.a libcompositesse.a +cd ../.. +%endif %make_build %install @@ -96,6 +105,7 @@ find %buildroot%_libdir -name "*.la" | x %dir %_sysconfdir/%_name/%oldver %config %_sysconfdir/%_name/%oldver/* %_bindir/* +%exclude %_bindir/gimptool-%oldver %_libdir/%_name/%oldver/plug-ins %_datadir/%_name %_mandir/man1/* @@ -112,6 +122,7 @@ find %buildroot%_libdir -name "*.la" | x %files -n lib%name-devel %doc %_datadir/gtk-doc/html/* +%_bindir/gimptool-%oldver %_includedir/* %_libdir/*.so %dir %_libdir/%_name @@ -122,6 +133,11 @@ find %buildroot%_libdir -name "*.la" | x %_mandir/man5/* %changelog +* Sun Dec 03 2006 L.A. Kostis 2.2.13-alt2 +- NMU: + + enable mmx and sse opt for %%ix86 with hack from opensuse + + move gimptool to -devel subpackage (closes #9955). + * Mon Oct 23 2006 Anatoly Yakushin 2.2.13-alt1 - 2.2.13