Hi!
On Fri, Aug 11, 2000 at 10:43:27PM +0200, Jan Dittberner wrote:
> The gimp rpm seems to be broken. I tried two mirrors
>
> ( rpmfind.net and ftp.sunet.se )
>
> if I try to install I get:
>
> [root@jan /download]# rpm -Uvh gimp-1.1.24-2mdk.i586.rpm
> gimp #################################unpacking
> of archive failed on file /usr/share/gimp/1.1/help/C/channels/dialogs:
> cpio: unlink
>
>
> I also recognized that the Gimp.pm (Perl module) is still
> missing in the RPM.
> I'm willing to build a new set of RPMs with an extra perl
> package containing Gimp.pm and the additional perl files.
> Is this OK?
Not necessary, I already have such an RPM Spec file, which
is a mixture from the hackgimp and another one I used to use
as all the had problems with the perl packaging.
One thing is left though: pygimp-support. A month or so ago
I looked in CVS of gimp and it was in there, but it did not
seem to make it into the release package. I did not notice
it as I had an older version of pygimp seperately. This one
failed to built with the latest 1.1.24 gimp though.
So there are several nice plugings missing now :-(
Oh and I'm just testing the spec file, as I had to merge
again with the last gimp spec file from cooker, so if there
are problems I'll send in new patches.
Best regards,
Reinhard Katzmann
--
E-Mail: [EMAIL PROTECTED]
Current Projects: Linux-Installation Mandrake 7.1 (95% finished)
Improvements of Driver for Tevion Tablet
Java-DB and -Interface for Pincity (93 % finished)
GnuPG Public Key available on request.
# TV : DON'T USE find_lang on gimp, it only guess gimp.mo not
# imp-std-plugins.mo and gimp-script-fu.mo
%define ver 1.1.24
%define subver 1.1
%define rel 3mdk
# This is just for me, as I want to avoid BM for now
%define _iconsdir /usr/share/icons
%define _menudir /usr/lib/menu
Summary: The GNU Image Manipulation Program.
Summary(fr): Le programme de manipulation d'images GNU
Name: gimp
Serial: 1
Version: %ver
Release: %rel
Copyright: GPL
Group: Graphics
URL: http://www.gimp.org/
Source:
ftp://ftp.gimp.org/pub/gimp/v0.99/v%{PACKAGE_VERSION}/gimp-%{PACKAGE_VERSION}.tar.bz2
Source1: gimp.xpm.bz2
Source2: mini-gimp.xpm.bz2
#Patch: resize.patch.bz2
#Patch0: gimp-script-logo-patch.bz2
Patch1: gimp-1.1.23-perlpath.patch
BuildRoot: %{_tmppath}/%{name}-buildroot
Obsoletes: gimp-data-min
Requires: mpeg_lib libpng libjpeg gtk+ >= 1.2.8 glib >= 1.2.8 zlib perl aalib
Requires: %{name}-libgimp = %{version}
Provides: hackgimp
BuildRequires: mpeg_lib libpng-devel libjpeg-devel gtk+-devel >= 1.2.8 glib-devel >=
1.2.8 aalib-devel XFree86-devel xpm-devel gpm-devel gnome-libs-devel ncurses-devel
slang libtiff-devel zlib-devel
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.
%description -l fr
GIMP est un programme de manipulation d'images pouvant �tre utilis� pour la
retouche photo, la composition et la cr�ation d'images. Beaucoup de gens le
trouvent tr�s utile pour la cr�ation de logos et autres graphiques pour des
pages Web. GIMP inclut beaucoup d'outils et de filtres que vous avez l'ha-
bitude de retrouver dans les offres commerciales �quivalentes et quelques
extras int�ressants en plus.
GIMP fournit une grosse bo�te � outils, incluant des op�rations sur les ca-
naux et les couches, des effets, l'�dition au pixel et l'antialiasing, les
conversions, tous poss�dant plusieurs niveaux d'annulation.
Cette version de GIMP est scriptable, mais beaucoup de scripts inclus ici
se basent sur des polices que nous ne pouvons pas distribuer. Le site FTP
de GIMP contient un paquetage de ces fontes que vous pouvez t�l�charger et
installer par vous-m�mes, paquetage qui contient toutes les polices n�ces-
saires pour que les scripts inclus fonctionnent. Quelques-unes de ces po-
lices ont des licences inhabituelles; toutes les licences sont document�es
dans le paquetage. Si vous le souhaitez, t�l�chargez les paquetages depuis
ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.bz2 et
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.bz2. Autrement, vous
pouvez choisir des polices d�j� existantes sur votre syst�me avant de lan-
cer ces scripts.
%package devel
Summary: GIMP plugin and extension development kit.
Summary(fr): kit de d�veloppement pour les plug-ins et extensions de GIMP.
Group: Development/C
Requires: gtk+-devel
Prereq: /sbin/install-info
Serial: 1
Requires: %{name} = %{version}
%description devel
Static libraries and header files for writing GIMP plugins and extensions.
%description -l fr devel
Librairies statiques et fichiers d'en-t�te pour l'�criture d'extesions et
de plugins pour GIMP.
%package libgimp
Summary: GIMP libraries.
Summary(fr): Librairires de GIMP.
Group: System/Libraries
Serial: 1
Copyright: LGPL
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".
%description -l fr libgimp
Librairires utilis�es pour la communication entre GIMP et d'autres pro-
grammes qui peuvent fonctionner en tant que plugins pour GIMP.
%package perl
Summary: GIMP perl extensions and plugins.
Group: Applications/Graphics
Requires: gimp
Requires: perl
%description perl
The gimp-perl package contains all the perl extensions and perl plugins.
%prep
%setup -q
%patch1 -p1 -b .perlpath
%ifarch %ix86
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ffast-math"
%endif
#should that be "alpha-mandrake-linux" ? Please correct!
%ifarch alpha
MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS
--prefix=%{_prefix} --mandir=$RPM_BUILD_ROOT%{_mandir}
else
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %configure
--mandir=$RPM_BUILD_ROOT%{_mandir}
fi
%build
#CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
# --prefix=%{prefix} --disable-perl --mandir=$RPM_BUILD_ROOT%{_mandir}
%{make}
gzip -9 docs/*ps
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
mkdir -p
$RPM_BUILD_ROOT/{%{_menudir},%{_infodir},%{_iconsdir}/mini,%{_includedir},%{_bindir},%{_libdir}/gimp/%{subver}/plug-ins,etc/X11/wmconfig}
make prefix=$RPM_BUILD_ROOT/%{_prefix} \
bindir=$RPM_BUILD_ROOT/%{_bindir} \
libdir=$RPM_BUILD_ROOT/%{_libdir} \
mandir=$RPM_BUILD_ROOT/%{_mandir} \
infodir=$RPM_BUILD_ROOT/%{_infodir} \
datadir=$RPM_BUILD_ROOT/%{_datadir} \
includedir=$RPM_BUILD_ROOT/%{_includedir} \
gimpplugindir=$RPM_BUILD_ROOT/%{_libdir}/gimp/%{subver} \
gimpdatadir=$RPM_BUILD_ROOT/%{_datadir}/gimp/%{subver} \
PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
INSTALLMAN3DIR=$RPM_BUILD_ROOT/usr/lib/perl5/man \
INSTALLMAN1DIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \
install
#
# This perl madness will drive me batty
#
eval perl '-V:archname'
find $RPM_BUILD_ROOT/%{_prefix}/lib/perl5 -type f -print | sed "s@^$RPM_BUILD_ROOT@@g"
| sed "s/\.3/.3.bz2/" | grep -v perllocal.pod > gimp-perl
#
# Plugins and modules change often (grab the executeable ones)
#
echo "%defattr (0555, root, root)" > gimp-plugin-files
find $RPM_BUILD_ROOT/%{_libdir}/gimp/%{subver} -type f -exec file {} \; | grep -v perl
| grep -v /usr/lib/gimp/1.1/modules/.*\.a$ | cut -d':' -f 1 | sed
"s@^$RPM_BUILD_ROOT@@g" >>gimp-plugin-files
#
# Now pull the perl ones out.
#
echo "%defattr (0555, root, root)" > gimp-perl-plugin-files
echo "%dir %{_libdir}/gimp/%{subver}/plug-ins" >> gimp-perl-plugin-files
find $RPM_BUILD_ROOT/%{_libdir}/gimp/%{subver} -type f -exec file {} \; | grep perl |
cut -d':' -f 1 | sed "s@^$RPM_BUILD_ROOT@@g" >>gimp-perl-plugin-files
#
# Auto detect the lang files.
#
if [ -f /usr/lib/rpm/find-lang.sh ] ; then
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %{name}
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp-std-plugins
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp-script-fu
cat %{name}.lang gimp-std-plugins.lang gimp-script-fu.lang \
| sed "s:(644, root, root, 755):(444, bin, bin, 555):" > gimp-all.lang
fi
#
# Tips
#
echo "%defattr (444, root, root, 555)" >gimp-tips-files
echo "%{_datadir}/gimp/%{subver}/tips/gimp_tips.txt" >> gimp-tips-files
for I in `ls $RPM_BUILD_ROOT/%{_datadir}/gimp/%{subver}/tips/gimp*.[a-z]*.txt | sed
"s@^$RPM_BUILD_ROOT/@@g"`; do
tip_lang=`basename $I | cut -d'.' -f2`
echo "%lang($tip_lang) $I" >> gimp-tips-files
done
#
# Build the master filelists generated from the above mess.
#
cat gimp-plugin-files gimp-all.lang gimp-tips-files > gimp.files
echo "%defattr (555, root, root, 555)" > gimp-perl-files
cat gimp-perl gimp-perl-plugin-files >> gimp-perl-files
# install desktop entry (does Mandrake need this ?)
mkdir -p %{buildroot}/etc/X11/applnk/Graphics
install -m 644 $RPM_SOURCE_DIR/gimp.desktop %{buildroot}/etc/X11/applnk/Graphics
#cd docs
#make prefix=$RPM_BUILD_ROOT/usr install
# (fg) Not needed anymore
#install RPM/gimp.wmconfig $RPM_BUILD_ROOT/etc/X11/wmconfig/gimp
#install RPM/wilbur.xpm $RPM_BUILD_ROOT%{_iconsdir}/
#install RPM/mini-wilbur.xpm $RPM_BUILD_ROOT%{_iconsdir}/mini/
mkdir -p $RPM_BUILD_ROOT%{_iconsdir}/mini
bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_iconsdir}/wilbur.xpm
bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_iconsdir}/mini/wilbur.xpm
cat >$RPM_BUILD_ROOT%{_menudir}/gimp <<EOF
?package(gimp): command="gimp" icon="wilbur.xpm" section="Multimedia/Graphics" \
title="The GIMP" longtitle="The GNU Image Manipulation Program" needs="x11"
EOF
pushd $RPM_BUILD_ROOT%{_libdir}
# 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
popd
#pushd $RPM_BUILD_ROOT
#find usr/share/gimp | sed 's|^|/|' > $RPM_BUILD_DIR/%{name}-%{version}/gimp-help.lst
#popd
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%post
%{update_menus}
%postun
%{clean_menus}
%post libgimp -p /sbin/ldconfig
%postun libgimp -p /sbin/ldconfig
%files -f gimp.files
%attr(-,root,root) %config(missingok) /etc/X11/applnk/Graphics/gimp.desktop
%defattr(-,root,root,0755)
%dir %{_libdir}/gimp
%dir %{_libdir}/gimp/%{subver}
%dir %{_libdir}/gimp/%{subver}/modules
%dir %{_libdir}/gimp/%{subver}/plug-ins
%dir %{_datadir}/icons/mini
%dir %{_datadir}/gimp/%{subver}/tips
%dir %{_datadir}/gimp/%{subver}/patterns
%dir %{_datadir}/gimp/%{subver}/scripts
%dir %{_datadir}/gimp/%{subver}/brushes
%dir %{_datadir}/gimp/%{subver}/devel-docs
%dir %{_datadir}/gimp/%{subver}/devel-docs/html
%dir %{_datadir}/gimp/%{subver}/devel-docs/html/libgimp
%dir %{_datadir}/gimp/%{subver}/fractalexplorer
%dir %{_datadir}/gimp/%{subver}/gfig
%dir %{_datadir}/gimp/%{subver}/gflare
%dir %{_datadir}/gimp/%{subver}/gflare/Bright_Star
%dir %{_datadir}/gimp/%{subver}/gflare/Classic
%dir %{_datadir}/gimp/%{subver}/gflare/Default
%dir %{_datadir}/gimp/%{subver}/gflare/Distant_Sun
%dir %{_datadir}/gimp/%{subver}/gflare/GFlare_101
%dir %{_datadir}/gimp/%{subver}/gflare/GFlare_102
%dir %{_datadir}/gimp/%{subver}/gflare/Hidden_Planet
%dir %{_datadir}/gimp/%{subver}/gimpressionist/Brushes
%dir %{_datadir}/gimp/%{subver}/gimpressionist/
%dir %{_datadir}/gimp/%{subver}/gimpressionist/Paper
%dir %{_datadir}/gimp/%{subver}/gimpressionist/Presets
%dir %{_datadir}/gimp/%{subver}/gradients
%dir %{_datadir}/gimp/%{subver}/palettes
%{_iconsdir}/mini/wilbur.xpm
%{_iconsdir}/wilbur.xpm
%{_menudir}/gimp
%{_bindir}/gimp
%{_bindir}/gimpdoc
%{_bindir}/embedxpm
%{_bindir}/xcftopnm
%{_libdir}/gimp/%{subver}/plug-ins/*
%{_datadir}/locale/*/LC_MESSAGES/*
%{_datadir}/gimp/%{subver}/scripts/*
%{_datadir}/gimp/%{subver}/fractalexplorer/*
%{_datadir}/gimp/%{subver}/gfig/*
%{_datadir}/gimp/%{subver}/gimpressionist/Presets/*
%{_datadir}/gimp/%{subver}/gimpressionist/Brushes/*
%{_datadir}/gimp/%{subver}/gimpressionist/Paper/*
%{_datadir}/gimp/%{subver}/gradients/*
%{_datadir}/gimp/%{subver}/palettes/*
%{_datadir}/gimp/%{subver}/patterns/*
%{_datadir}/gimp/%{subver}/brushes/*
%{_datadir}/gimp/%{subver}/tips/*
%{_datadir}/gimp/%{subver}/help
%{_datadir}/gimp/%{subver}/user_install
%{_datadir}/gimp/%{subver}/gimprc
%{_datadir}/gimp/%{subver}/gimprc_user
%{_datadir}/gimp/%{subver}/gtkrc
%{_datadir}/gimp/%{subver}/unitrc
%{_datadir}/gimp/%{subver}/gimp_logo.ppm
%{_datadir}/gimp/%{subver}/gimp_splash.ppm
%{_datadir}/gimp/%{subver}/ps-menurc
%{_mandir}/man1/gimp.1*
%{_mandir}/man5/gimprc.5*
%doc AUTHORS COPYING ChangeLog* MAINTAINERS INSTALL NEWS README TODO
%doc PLUGIN_MAINTAINERS docs/*.txt docs/*ps docs/Wilber* ABOUT-NLS README.i18n
%doc README.perl README.win32 TODO
%files devel
%defattr(-,root,root,0755)
%{_bindir}/gimptool
%{_bindir}/gimp-config
%{_datadir}/gimp/%{subver}/devel-docs/html/libgimp/*
%{_datadir}/aclocal/gimp.m4
%{_includedir}
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/gimp/%{subver}/modules/*.la
%{_libdir}/gimp/%{subver}/modules/*.a
%{_mandir}/man1/gimptool.1*
#%{_mandir}/man5/gimprc.5*
%files libgimp
%defattr(-,root,root,755)
%{_libdir}/*.so*
%{_libdir}/gimp/%{subver}/modules/lib*.so
%files perl -f gimp-perl-files
%changelog
* Sat Aug 12 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 1.1.24-3mdk
- merged with gimp-spec from redhat
- file section improved due to merge (includes gimp-perl now!)
- added tons of docs
* Mon Aug 07 2000 Frederic Lepied <[EMAIL PROTECTED]> 1.1.24-2mdk
- automatically added BuildRequires
* Fri Aug 04 2000 Thierry Vignaud <[EMAIL PROTECTED]> 1.1.24-1mdk
- BM. ok, this one really give me a hard time to build with new rpm :-(
- update to 1.1.24 and remove it from contribs
- don't use find_lang on gimp, it only guess gimp.mo not gimp-std-plugins.mo
and gimp-script-fu.mo
* Wed Jul 19 2000 Thierry Vignaud <[EMAIL PROTECTED]> 1.0.4-15mdk
- BM & new macros
* Fri Apr 28 2000 DindinX <[EMAIL PROTECTED]> 1.0.4-14mdk
- Somewhat fix the icons
* Mon Apr 17 2000 DindinX <[EMAIL PROTECTED]> 1.0.4-13mdk
- patch for the logo script so they use 'avantgarde' font which is
always installed (at least for western language).
This should close the feature #39 for now, until gimp 1.2
- make the menu entry use the wilbur.xpm icon
- compressed icons
* Thu Apr 13 2000 Francis Galiegue <[EMAIL PROTECTED]> 1.0.4-12mdk
- Grrr... Renamed icons because of a conflict with mandrake_desk
* Thu Apr 13 2000 Francis Galiegue <[EMAIL PROTECTED]> 1.0.4-11mdk
- Weee... Major spec cleanup
- Menu entry
- Icons
- %files list fixes - was badly needed
- Titi sucks, no version in last changelog
* Thu Mar 23 2000 Thierry Vignaud <[EMAIL PROTECTED]>
- updated to use our new tools (spechelper) and new namins standards
- add gimp manpage :-(
- compress the postscripts we provide
* Wed Jan 12 2000 Pixel <[EMAIL PROTECTED]>
- libtoolize
* Tue Nov 02 1999 John Buswell <[EMAIL PROTECTED]>
- Rebuild and Repackage for oxygen
* Tue Oct 06 1999 Francis Galiegue <[EMAIL PROTECTED]>
- Recompiled with gcc instead of pgcc, as the latest introduced bugs
* Thu Sep 02 1999 Francis Galiegue <[EMAIL PROTECTED]>
- (thanks to Guiseppe Ghib� <[EMAIL PROTECTED]>) added gimptool
to gimp-devel
- put in debug code, forgot to remove it, done
- (thanks to Guiseppe Ghib� <[EMAIL PROTECTED]>) added aalib
plugin
* Tue Aug 31 1999 Francis Galiegue <[EMAIL PROTECTED]>
- fixed a bug in Makefile.in that made %{_bindir}/install
try to strip a shell script...
- gimp now prints
* Sun Apr 25 1999 Chmouel Boudjnah <[EMAIL PROTECTED]>
- Removig the prefix=/usrcd/
* Fri Apr 23 1999 Chmouel Boudjnah <[EMAIL PROTECTED]>
- Mandrake adaptations.
* Mon Apr 5 1999 Matt Wilson <[EMAIL PROTECTED]>
- install binaries stripped by default
* Mon Apr 5 1999 Matt Wilson <[EMAIL PROTECTED]>
- updated to official 1.0.4 release
* Wed Mar 31 1999 Matt Wilson <[EMAIL PROTECTED]>
- updated for 1.0.4 release
- requires gtk+ >= 1.2
* Sun Mar 14 1999 Matt Wilson <[EMAIL PROTECTED]>
- updated for 1.0.3 release
- updated group
* Mon Apr 20 1998 Marc Ewing <[EMAIL PROTECTED]>
- include *.xpm and .wmconfig in CVS source
- removed explicit glibc require
* Thu Apr 16 1998 Marc Ewing <[EMAIL PROTECTED]>
- Handle builds using autogen.sh
- SMP builds
- put in CVS, and tweak for automatic CVS builds
* Sun Apr 12 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- Upgraded to 0.99.26
* Sat Apr 11 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- Upgraded to 0.99.25
* Wed Apr 08 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- Upgraded to version 0.99.24
* Sun Apr 05 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- Stop building the docs - they require emacs and
(even worse), you must run X.
* Fri Mar 27 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- upgraded to 0.99.23
* Sat Mar 21 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- No longer requires xdelta, that was a bug on my part
- spec cleanup, changed libgimp copyright, can now be
built by non-root users, removed some lines in the description
* Fri Mar 20 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- upgraded to 0.99.22
* Sun Mar 15 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- upgraded to 0.99.21
* Thu Mar 12 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- Upgraded to 0.99.20
* Mon Mar 09 1998 Trond Eivind Glomsr�d <[EMAIL PROTECTED]>
- Recompiled with gtk+ 0.99.5
- Now requires gtk+ >= 0.99.5 instead of gtk+ 0.99.4
PGP signature