2000-06-13 07:35:34 +08:00
|
|
|
%define subver @GIMP_MAJOR_VERSION@.@GIMP_MINOR_VERSION@
|
|
|
|
%define microver @GIMP_MICRO_VERSION@
|
|
|
|
%define ver @VERSION@
|
1999-12-21 07:44:01 +08:00
|
|
|
%define prefix /usr
|
2000-10-15 06:15:11 +08:00
|
|
|
%define sysconfdir /etc
|
1998-04-17 04:53:43 +08:00
|
|
|
|
2000-04-15 00:42:57 +08:00
|
|
|
Summary: The GNU Image Manipulation Program
|
|
|
|
Name: gimp
|
|
|
|
Version: %{ver}
|
|
|
|
Release: 1
|
1999-12-21 07:44:01 +08:00
|
|
|
Copyright: GPL, LGPL
|
2000-04-15 00:42:57 +08:00
|
|
|
Group: Applications/Graphics
|
1999-12-21 07:44:01 +08:00
|
|
|
URL: http://www.gimp.org/
|
2002-05-07 22:51:31 +08:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{ver}-root
|
1999-12-21 07:44:01 +08:00
|
|
|
Docdir: %{prefix}/doc
|
|
|
|
Prefix: %{prefix}
|
|
|
|
Obsoletes: gimp-data-min
|
|
|
|
Obsoletes: gimp-libgimp
|
2002-05-07 22:51:31 +08:00
|
|
|
Requires: gtk+ >= 2.0.0
|
|
|
|
Source: ftp://ftp.gimp.org/pub/gimp/v%{subver}/%{name}-%{ver}.tar.bz2
|
1998-04-17 04:53:43 +08:00
|
|
|
|
|
|
|
%description
|
2000-04-14 05:31:04 +08:00
|
|
|
The GIMP (GNU Image Manipulation Program) is a powerful image
|
|
|
|
composition and editing program, which can be extremely useful for
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.gz and
|
|
|
|
ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you are so
|
|
|
|
inclined. Alternatively, choose fonts which exist on your system
|
|
|
|
before running the scripts.
|
|
|
|
|
|
|
|
Install the GIMP if you need a powerful image manipulation
|
|
|
|
program. You may also want to install other GIMP packages:
|
|
|
|
gimp-libgimp if you're going to use any GIMP plug-ins and
|
|
|
|
gimp-data-extras, which includes various extra files for the GIMP.
|
1998-04-17 04:53:43 +08:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GIMP plugin and extension development kit
|
1999-12-21 07:44:01 +08:00
|
|
|
Group: Applications/Graphics
|
|
|
|
Requires: gtk+-devel
|
1998-04-17 04:53:43 +08:00
|
|
|
%description devel
|
2000-04-14 05:31:04 +08:00
|
|
|
The gimp-devel package contains the static libraries and header files
|
|
|
|
for writing GNU Image Manipulation Program (GIMP) plug-ins and
|
|
|
|
extensions.
|
|
|
|
|
|
|
|
Install gimp-devel if you're going to create plug-ins and/or
|
|
|
|
extensions for the GIMP. You'll also need to install gimp-limpgimp
|
|
|
|
and gimp, and you may want to install gimp-data-extras.
|
1998-04-17 04:53:43 +08:00
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
%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.
|
|
|
|
|
1998-04-17 04:53:43 +08:00
|
|
|
%prep
|
1999-12-21 07:44:01 +08:00
|
|
|
%setup -q
|
1998-04-17 04:53:43 +08:00
|
|
|
|
|
|
|
%build
|
1999-12-21 07:44:01 +08:00
|
|
|
%ifarch alpha
|
|
|
|
MYARCH_FLAGS="--host=alpha-redhat-linux"
|
|
|
|
%endif
|
|
|
|
|
1998-04-17 04:53:43 +08:00
|
|
|
if [ ! -f configure ]; then
|
2000-04-14 05:31:04 +08:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --quiet $MYARCH_FLAGS --prefix=%{prefix}
|
1998-04-17 04:53:43 +08:00
|
|
|
else
|
2000-04-14 05:31:04 +08:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %configure --quiet
|
1998-04-17 04:53:43 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SMP" != "" ]; then
|
|
|
|
(make "MAKE=make -k -j $SMP"; exit 0)
|
|
|
|
make
|
|
|
|
else
|
|
|
|
make
|
|
|
|
fi
|
|
|
|
|
|
|
|
%install
|
1999-12-23 01:07:32 +08:00
|
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
2000-04-14 05:31:04 +08:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/info $RPM_BUILD_ROOT/%{prefix}/include \
|
|
|
|
$RPM_BUILD_ROOT/%{prefix}/lib $RPM_BUILD_ROOT/%{prefix}/bin
|
|
|
|
make prefix=$RPM_BUILD_ROOT/%{prefix} PREFIX=$RPM_BUILD_ROOT/%{prefix} install
|
1999-12-21 07:44:01 +08:00
|
|
|
|
|
|
|
# Strip the executables
|
2000-04-14 05:31:04 +08:00
|
|
|
strip $RPM_BUILD_ROOT/%{prefix}/bin/gimp
|
1999-12-21 07:44:01 +08:00
|
|
|
# Only strip execuable files and leave scripts alone.
|
2000-04-14 05:31:04 +08:00
|
|
|
strip `file $RPM_BUILD_ROOT/%{prefix}/lib/gimp/%{subver}/plug-ins/* | grep ELF | cut -d':' -f 1`
|
1999-12-21 07:44:01 +08:00
|
|
|
|
|
|
|
# Compress down the online documentation.
|
2000-04-14 05:31:04 +08:00
|
|
|
if [ -d $RPM_BUILD_ROOT/%{prefix}/man ]; then
|
|
|
|
find $RPM_BUILD_ROOT/%{prefix}/man -type f -exec gzip -9nf {} \;
|
1999-12-21 07:44:01 +08:00
|
|
|
fi
|
1998-04-17 04:53:43 +08:00
|
|
|
|
1999-12-23 01:07:32 +08:00
|
|
|
#
|
1999-12-23 12:19:56 +08:00
|
|
|
# This perl madness will drive me batty
|
|
|
|
#
|
|
|
|
eval perl '-V:archname'
|
2000-04-14 05:31:04 +08:00
|
|
|
find $RPM_BUILD_ROOT/%{prefix}/lib/perl5 -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod > gimp-perl
|
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
#
|
|
|
|
# Plugins and modules change often (grab the executeable ones)
|
|
|
|
#
|
|
|
|
echo "%defattr (0555, bin, bin)" > gimp-plugin-files
|
2000-04-14 05:31:04 +08:00
|
|
|
find $RPM_BUILD_ROOT/%{prefix}/lib/gimp/%{subver} -type f -exec file {} \; | grep -v perl | cut -d':' -f 1 | sed "s@^$RPM_BUILD_ROOT@@g" >>gimp-plugin-files
|
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
#
|
|
|
|
# Now pull the perl ones out.
|
|
|
|
#
|
|
|
|
echo "%defattr (0555, bin, bin)" > gimp-perl-plugin-files
|
2000-04-15 00:42:57 +08:00
|
|
|
echo "%dir %{prefix}/lib/gimp/%{subver}/plug-ins" >> gimp-perl-plugin-files
|
2000-04-14 05:31:04 +08:00
|
|
|
find $RPM_BUILD_ROOT/%{prefix}/lib/gimp/%{subver} -type f -exec file {} \; | grep perl | cut -d':' -f 1 | sed "s@^$RPM_BUILD_ROOT@@g" >>gimp-perl-plugin-files
|
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
#
|
|
|
|
# Auto detect the lang files.
|
|
|
|
#
|
|
|
|
if [ -f /usr/lib/rpm/find-lang.sh ] ; then
|
2000-04-15 00:42:57 +08:00
|
|
|
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %{name}
|
2000-08-09 00:23:03 +08:00
|
|
|
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp-libgimp
|
2000-04-14 05:31:04 +08:00
|
|
|
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp-std-plugins
|
|
|
|
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp-script-fu
|
2000-08-09 00:23:03 +08:00
|
|
|
cat %{name}.lang gimp-libgimp gimp-std-plugins.lang gimp-script-fu.lang \
|
2000-04-14 05:31:04 +08:00
|
|
|
| sed "s:(644, root, root, 755):(444, bin, bin, 555):" > gimp-all.lang
|
2000-01-22 05:36:13 +08:00
|
|
|
fi
|
2000-04-14 05:31:04 +08:00
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
#
|
2000-04-14 05:31:04 +08:00
|
|
|
# Tips
|
2000-01-22 05:36:13 +08:00
|
|
|
#
|
2000-04-14 05:31:04 +08:00
|
|
|
echo "%defattr (444, bin, bin, 555)" >gimp-tips-files
|
|
|
|
echo "%{prefix}/share/gimp/%{subver}/tips/gimp_tips.txt" >> gimp-tips-files
|
|
|
|
for I in `ls $RPM_BUILD_ROOT/%{prefix}/share/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
|
1999-12-23 01:07:32 +08:00
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
#
|
|
|
|
# Build the master filelists generated from the above mess.
|
|
|
|
#
|
2000-04-15 00:42:57 +08:00
|
|
|
cat gimp-plugin-files gimp-all.lang gimp-tips-files > gimp.files
|
2000-04-14 05:31:04 +08:00
|
|
|
cat gimp-perl gimp-perl-plugin-files > gimp-perl-files
|
1999-12-23 01:07:32 +08:00
|
|
|
|
1998-04-17 04:53:43 +08:00
|
|
|
%clean
|
1999-12-23 01:07:32 +08:00
|
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
1999-12-21 13:10:18 +08:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
1998-04-17 04:53:43 +08:00
|
|
|
|
1999-12-21 13:10:18 +08:00
|
|
|
%postun -p /sbin/ldconfig
|
1998-04-17 04:53:43 +08:00
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
%files -f gimp.files
|
1999-12-21 07:44:01 +08:00
|
|
|
%attr (0555, bin, man) %doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS README TODO
|
|
|
|
%attr (0555, bin, man) %doc docs/*.txt docs/*.eps ABOUT-NLS README.i18n README.perl README.win32 TODO
|
2000-04-14 05:31:04 +08:00
|
|
|
%defattr (0444, bin, bin, 0555)
|
|
|
|
%dir %{prefix}/share/gimp/%{subver}
|
|
|
|
%dir %{prefix}/share/gimp/%{subver}/tips
|
|
|
|
%dir %{prefix}/lib/gimp/%{subver}
|
|
|
|
%dir %{prefix}/lib/gimp/%{subver}/modules
|
|
|
|
%dir %{prefix}/lib/gimp/%{subver}/plug-ins
|
|
|
|
|
|
|
|
%{prefix}/share/gimp/%{subver}/brushes/
|
|
|
|
%{prefix}/share/gimp/%{subver}/fractalexplorer/
|
|
|
|
%{prefix}/share/gimp/%{subver}/gfig/
|
|
|
|
%{prefix}/share/gimp/%{subver}/gflare/
|
|
|
|
%{prefix}/share/gimp/%{subver}/gimpressionist/
|
|
|
|
%{prefix}/share/gimp/%{subver}/gradients/
|
2000-04-15 00:42:57 +08:00
|
|
|
%{prefix}/share/gimp/%{subver}/help/
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/share/gimp/%{subver}/palettes/
|
|
|
|
%{prefix}/share/gimp/%{subver}/patterns/
|
|
|
|
%{prefix}/share/gimp/%{subver}/scripts/
|
|
|
|
|
2000-10-16 20:07:55 +08:00
|
|
|
%{sysconfdir}/gimp/%{subver}/gimprc
|
|
|
|
%{sysconfdir}/gimp/%{subver}/gimprc_user
|
|
|
|
%{sysconfdir}/gimp/%{subver}/gtkrc
|
2000-11-08 07:12:03 +08:00
|
|
|
%{sysconfdir}/gimp/%{subver}/gtkrc_user
|
2000-10-16 20:07:55 +08:00
|
|
|
%{sysconfdir}/gimp/%{subver}/unitrc
|
|
|
|
%{sysconfdir}/gimp/%{subver}/ps-menurc
|
2000-10-15 06:15:11 +08:00
|
|
|
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/share/gimp/%{subver}/gimp_logo.ppm
|
|
|
|
%{prefix}/share/gimp/%{subver}/gimp_splash.ppm
|
1999-12-21 13:10:18 +08:00
|
|
|
|
1999-12-21 07:44:01 +08:00
|
|
|
%defattr (0555, bin, bin)
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/share/gimp/%{subver}/user_install
|
1999-12-21 07:44:01 +08:00
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
%{prefix}/lib/libgimp-%{subver}.so.%{microver}.0.0
|
|
|
|
%{prefix}/lib/libgimp-%{subver}.so.%{microver}
|
|
|
|
%{prefix}/lib/libgimpui-%{subver}.so.%{microver}.0.0
|
|
|
|
%{prefix}/lib/libgimpui-%{subver}.so.%{microver}
|
|
|
|
%{prefix}/lib/libgck-%{subver}.so.%{microver}.0.0
|
|
|
|
%{prefix}/lib/libgck-%{subver}.so.%{microver}
|
1999-12-21 13:10:18 +08:00
|
|
|
|
|
|
|
%{prefix}/bin/gimp
|
2000-08-09 00:23:03 +08:00
|
|
|
%{prefix}/bin/gimp-remote
|
1999-12-21 13:10:18 +08:00
|
|
|
%{prefix}/bin/embedxpm
|
|
|
|
%{prefix}/bin/gimpdoc
|
|
|
|
%{prefix}/bin/xcftopnm
|
|
|
|
|
1999-12-21 07:44:01 +08:00
|
|
|
%defattr (0444, bin, man)
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/man/man1/gimp.1*
|
2000-08-09 00:23:03 +08:00
|
|
|
%{prefix}/man/man1/gimp-remote.1*
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/man/man5/gimprc.5*
|
2000-10-30 06:43:25 +08:00
|
|
|
%{prefix}/man/man1/
|
1998-04-17 04:53:43 +08:00
|
|
|
|
|
|
|
%files devel
|
2000-04-14 05:31:04 +08:00
|
|
|
%defattr (0555, bin, bin, 0555)
|
1999-12-21 13:10:18 +08:00
|
|
|
%{prefix}/bin/gimptool
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/bin/gimp-config
|
|
|
|
%{prefix}/lib/*.so
|
|
|
|
%{prefix}/lib/*.la
|
2000-04-15 00:42:57 +08:00
|
|
|
%dir %{prefix}/lib/gimp/%{subver}
|
|
|
|
%dir %{prefix}/lib/gimp/%{subver}/modules
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/lib/gimp/%{subver}/modules/*.la
|
|
|
|
|
|
|
|
%defattr (0444, root, root, 0555)
|
1999-12-21 07:44:01 +08:00
|
|
|
%{prefix}/share/aclocal/gimp.m4
|
1999-12-21 13:10:18 +08:00
|
|
|
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/lib/*.a
|
|
|
|
%{prefix}/lib/gimp/%{subver}/modules/*.a
|
2000-01-22 05:36:13 +08:00
|
|
|
|
2000-04-14 05:31:04 +08:00
|
|
|
%{prefix}/include/libgimp/
|
|
|
|
%{prefix}/include/gck/
|
|
|
|
%{prefix}/man/man1/gimptool.1*
|
1998-04-17 04:53:43 +08:00
|
|
|
|
2000-04-14 05:31:04 +08:00
|
|
|
%files perl -f gimp-perl-files
|
1999-12-23 12:19:56 +08:00
|
|
|
|
|
|
|
%changelog
|
2000-04-15 00:42:57 +08:00
|
|
|
* Fri Apr 14 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
- include subdirs in the help find
|
|
|
|
- remove gimp-help-files generation
|
|
|
|
- both gimp and gimp-perl own prefix/lib/gimp/1.1/plug-ins
|
|
|
|
- both gimp and gimp-devel own prefix/lib/gimp/1.1 and
|
|
|
|
prefix/lib/gimp/1.1/modules
|
|
|
|
|
2000-04-14 05:31:04 +08:00
|
|
|
* Thu Apr 13 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
- 1.1.19
|
|
|
|
- get all .mo files
|
|
|
|
|
2000-01-22 05:36:13 +08:00
|
|
|
* Wed Jan 19 2000 Gregory McLean <gregm@comstar.net>
|
|
|
|
- Version 1.1.15
|
|
|
|
|
1999-12-23 12:19:56 +08:00
|
|
|
* Wed Dec 22 1999 Gregory McLean <gregm@comstar.net>
|
|
|
|
- Version 1.1.14
|
2000-01-22 05:36:13 +08:00
|
|
|
- Added some auto %files section generation scriptlets
|
1999-12-23 12:19:56 +08:00
|
|
|
|
|
|
|
|