[Cooker] hackgimp revisited
Geoffrey and Lenny, I finally was able to test my "theory" and yes, it works. There is a couple of things to note: 1. Previous versions of the Gimp must be uninstalled before building the new version. 2. The perl-PDL package is missing a number of files required for building the perl stuff. I had to add them back in the spec file to get things to build. I'm attaching both specs, though the Gimp one is quite heavily modified for my own preferences, so you probably should adjust it accordingly. Note that on the install phase, the PREFIX in uppercase is required for the perl makefiles to install correctly (otherwise they will dump right into the perl area and bypass the /var/tmp location). John %define sname gimp %define name gimp %define version 1.1.24 %define release 1mdk %define prefix ${_prefix} Name: %{name} Summary: The GNU Image Manipulation Program Version: %{version} Release: %{release} Serial: 1 Source: %{sname}-%{version}.tar.bz2 Source1: gimp.xpm.bz2 Source2: mini-gimp.xpm.bz2 Group: Graphics URL: http://www.gimp.org BuildRoot: %{_tmppath}/%{sname}-buildroot Copyright: GPL Provides: gimp Packager: Jan Dittberner [EMAIL PROTECTED] BuildRequires: mpeg_lib libpng-devel libjpeg-devel gtk+-devel = 1.2.7 glib-devel = 1.2.7 aalib-devel Requires: mpeg_lib libpng libjpeg gtk+ = 1.2.7 glib = 1.2.7 zlib perl aalib Prefix: %{_prefix} %description The GIMP is an image manipulation program suitable for photo retouching, image composition and image authoring. Many people find it extremely useful in creating logos and other graphics for web pages. The GIMP has many of the tools and filters you would expect to find in similar commercial offerings, and some interesting extras as well. The GIMP provides a large image manipulation toolbox, including channel operations and layers, effects, sub-pixel imaging and anti-aliasing, and conversions, all with multi-level undo. This version of The GIMP includes a scripting facility, but many of the included scripts rely on fonts that we cannot distribute. The GIMP ftp site has a package of fonts that you can install by yourself, which includes all the fonts needed to run the included scripts. Some of the fonts have unusual licensing requirements; all the licenses are documented in the package. Get ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.bz2 and ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.bz2 if you are so inclined. Alternatively, choose fonts which exist on your system before running the scripts. %package libgimp Group: System/Libraries Serial: 1 Summary: GIMP libraries. Provides: gimp-libgimp libgck.so.1 libgimp.so.1 libgimpui.so.1 %description libgimp Libraries used to communicate between The GIMP and other programs which may function as "GIMP plugins". %package devel Group: Development/C Serial: 1 Summary: GIMP plugin and extension development kit. Provides: gimp-devel %description devel Static libraries and header files for writing GIMP plugins and extensions. %prep rm -rf $RPM_BUILD_ROOT %setup -q -n %{sname}-%{version} CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ --prefix=%{prefix} %build make %install make install prefix=$RPM_BUILD_ROOT/%{prefix} PREFIX=$RPM_BUILD_ROOT/%{_prefix} cd $RPM_BUILD_ROOT%{prefix}/lib # compat symlink to get stuff working. ln -sf libgimp.so libgimp.so.1 ln -sf libgimpui.so libgimpui.so.1 ln -sf libgck.so libgck.so.1 cd $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/icons/mini bzcat %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/share/icons/wilbur.xpm bzcat %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/share/icons/mini/wilbur.xpm mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/menu/ cat $RPM_BUILD_ROOT%{_prefix}/lib/menu/gimp EOF ?package(gimp): command="gimp" icon="wilbur.xpm" section="Multimedia/Graphics"\ title="The GIMP" longtitle="The GNU Image Manipulation Program" needs="x11" EOF %files %defattr(-,root,root,0755) %{_prefix}/share/icons/wilbur.xpm %dir %{_prefix}/share/icons/mini %dir %{prefix}/share/gimp/1.1/tips %dir %{prefix}/share/gimp/1.1/patterns %dir %{prefix}/share/gimp/1.1/scripts %dir %{prefix}/lib/gimp/1.1/modules %dir %{prefix}/lib/gimp/1.1/plug-ins %dir %{prefix}/share/gimp/1.1/brushes %dir %{prefix}/share/gimp/1.1/devel-docs %dir %{prefix}/share/gimp/1.1/devel-docs/html %dir %{prefix}/share/gimp/1.1/devel-docs/html/libgimp %dir %{prefix}/share/gimp/1.1/fractalexplorer %dir %{prefix}/share/gimp/1.1/gfig %dir %{prefix}/share/gimp/1.1/gflare %dir %{prefix}/share/gimp/1.1/gflare/Bright_Star %dir %{prefix}/share/gimp/1.1/gflare/Classic %dir %{prefix}/share/gimp/1.1/gflare/Default %dir %{prefix}/share/gimp/1.1/gflare/Distant_Sun %dir %{prefix}/share/gimp/1.1/gflare/GFlare_101 %dir %{prefix}/share/gimp/1.1/gflare/GFlare_102 %dir %{prefix}/share/gimp/1.1/gflare/Hidden_Planet %dir %{prefix}/share/gimp/1.1/gimpressionist/Brushes %dir %{prefix}/share/gimp/1.1/gimpressionist/ %dir %{prefix}/share/gimp/1.1/gimpressionist/Paper %dir
[Cooker] hackgimp revisited
Geoffrey and Lenny, I finally was able to test my "theory" and yes, it works. There is a couple of things to note: 1. Previous versions of the Gimp must be uninstalled before building the new version. 2. The perl-PDL package is missing a number of files required for building the perl stuff. I had to add them back in the spec file to get things to build. I'm attaching both specs, though the Gimp one is quite heavily modified for my own preferences, so you probably should adjust it accordingly. Note that on the install phase, the PREFIX in uppercase is required for the perl makefiles to install correctly (otherwise they will dump right into the perl area and bypass the /var/tmp location). John %define sname gimp %define name gimp %define version 1.1.24 %define release 1mdk %define prefix ${_prefix} Name: %{name} Summary: The GNU Image Manipulation Program Version: %{version} Release: %{release} Serial: 1 Source: %{sname}-%{version}.tar.bz2 Source1: gimp.xpm.bz2 Source2: mini-gimp.xpm.bz2 Group: Graphics URL: http://www.gimp.org BuildRoot: %{_tmppath}/%{sname}-buildroot Copyright: GPL Provides: gimp Packager: Jan Dittberner [EMAIL PROTECTED] BuildRequires: mpeg_lib libpng-devel libjpeg-devel gtk+-devel = 1.2.7 glib-devel = 1.2.7 aalib-devel Requires: mpeg_lib libpng libjpeg gtk+ = 1.2.7 glib = 1.2.7 zlib perl aalib Prefix: %{_prefix} %description The GIMP is an image manipulation program suitable for photo retouching, image composition and image authoring. Many people find it extremely useful in creating logos and other graphics for web pages. The GIMP has many of the tools and filters you would expect to find in similar commercial offerings, and some interesting extras as well. The GIMP provides a large image manipulation toolbox, including channel operations and layers, effects, sub-pixel imaging and anti-aliasing, and conversions, all with multi-level undo. This version of The GIMP includes a scripting facility, but many of the included scripts rely on fonts that we cannot distribute. The GIMP ftp site has a package of fonts that you can install by yourself, which includes all the fonts needed to run the included scripts. Some of the fonts have unusual licensing requirements; all the licenses are documented in the package. Get ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.bz2 and ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.bz2 if you are so inclined. Alternatively, choose fonts which exist on your system before running the scripts. %package libgimp Group: System/Libraries Serial: 1 Summary: GIMP libraries. Provides: gimp-libgimp libgck.so.1 libgimp.so.1 libgimpui.so.1 %description libgimp Libraries used to communicate between The GIMP and other programs which may function as "GIMP plugins". %package devel Group: Development/C Serial: 1 Summary: GIMP plugin and extension development kit. Provides: gimp-devel %description devel Static libraries and header files for writing GIMP plugins and extensions. %prep rm -rf $RPM_BUILD_ROOT %setup -q -n %{sname}-%{version} CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ --prefix=%{prefix} %build make %install make install prefix=$RPM_BUILD_ROOT/%{prefix} PREFIX=$RPM_BUILD_ROOT/%{_prefix} cd $RPM_BUILD_ROOT%{prefix}/lib # compat symlink to get stuff working. ln -sf libgimp.so libgimp.so.1 ln -sf libgimpui.so libgimpui.so.1 ln -sf libgck.so libgck.so.1 cd $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/icons/mini bzcat %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/share/icons/wilbur.xpm bzcat %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/share/icons/mini/wilbur.xpm mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/menu/ cat $RPM_BUILD_ROOT%{_prefix}/lib/menu/gimp EOF ?package(gimp): command="gimp" icon="wilbur.xpm" section="Multimedia/Graphics"\ title="The GIMP" longtitle="The GNU Image Manipulation Program" needs="x11" EOF %files %defattr(-,root,root,0755) %{_prefix}/share/icons/wilbur.xpm %dir %{_prefix}/share/icons/mini %dir %{prefix}/share/gimp/1.1/tips %dir %{prefix}/share/gimp/1.1/patterns %dir %{prefix}/share/gimp/1.1/scripts %dir %{prefix}/lib/gimp/1.1/modules %dir %{prefix}/lib/gimp/1.1/plug-ins %dir %{prefix}/share/gimp/1.1/brushes %dir %{prefix}/share/gimp/1.1/devel-docs %dir %{prefix}/share/gimp/1.1/devel-docs/html %dir %{prefix}/share/gimp/1.1/devel-docs/html/libgimp %dir %{prefix}/share/gimp/1.1/fractalexplorer %dir %{prefix}/share/gimp/1.1/gfig %dir %{prefix}/share/gimp/1.1/gflare %dir %{prefix}/share/gimp/1.1/gflare/Bright_Star %dir %{prefix}/share/gimp/1.1/gflare/Classic %dir %{prefix}/share/gimp/1.1/gflare/Default %dir %{prefix}/share/gimp/1.1/gflare/Distant_Sun %dir %{prefix}/share/gimp/1.1/gflare/GFlare_101 %dir %{prefix}/share/gimp/1.1/gflare/GFlare_102 %dir %{prefix}/share/gimp/1.1/gflare/Hidden_Planet %dir %{prefix}/share/gimp/1.1/gimpressionist/Brushes %dir %{prefix}/share/gimp/1.1/gimpressionist/ %dir %{prefix}/share/gimp/1.1/gimpressionist/Paper %dir