auto-import gimp-2.0.4-4 from gimp-2.0.4-4.src.rpm
This commit is contained in:
parent
50517ce24d
commit
83bcb283d5
41
gimp.spec
41
gimp.spec
@ -17,7 +17,7 @@ Version: 2.0.4
|
|||||||
%if %prever
|
%if %prever
|
||||||
Release: 0.%{prever}.1
|
Release: 0.%{prever}.1
|
||||||
%else
|
%else
|
||||||
Release: 3
|
Release: 4
|
||||||
%endif
|
%endif
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPL, LGPL
|
License: GPL, LGPL
|
||||||
@ -51,6 +51,8 @@ Requires: gtk2 >= 2.3.0
|
|||||||
Requires: pango >= 1.4.0
|
Requires: pango >= 1.4.0
|
||||||
Requires: fontconfig >= 2.2.0
|
Requires: fontconfig >= 2.2.0
|
||||||
Requires: gimp-print >= 4.2.0
|
Requires: gimp-print >= 4.2.0
|
||||||
|
Requires(post): /sbin/ldconfig /usr/bin/update-desktop-database
|
||||||
|
Requires(post): /sbin/ldconfig /usr/bin/update-desktop-database
|
||||||
%if %prever
|
%if %prever
|
||||||
Source0: ftp://ftp.gimp.org/pub/gimp/v%{subver}/testing/gimp-%{version}%{prever}.tar.bz2
|
Source0: ftp://ftp.gimp.org/pub/gimp/v%{subver}/testing/gimp-%{version}%{prever}.tar.bz2
|
||||||
%else
|
%else
|
||||||
@ -100,18 +102,18 @@ extensions.
|
|||||||
%patch1 -p1 -b .gimphelpmissing
|
%patch1 -p1 -b .gimphelpmissing
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# use -32 or -64 postfixed binaries if available
|
# # use -32 or -64 postfixed binaries if available
|
||||||
mkdir -p bin
|
# mkdir -p bin
|
||||||
for prg in gdk-pixbuf-csource gdk-pixbuf-query-loaders gtk-query-immodules pango-querymodules; do
|
# for prg in gdk-pixbuf-csource gdk-pixbuf-query-loaders gtk-query-immodules pango-querymodules; do
|
||||||
if a="$(type -path ${prg}-64 2>/dev/null)"; then
|
# if a="$(type -path ${prg}-64 2>/dev/null)"; then
|
||||||
ln -snf "$a" bin/"$prg"
|
# ln -snf "$a" bin/"$prg"
|
||||||
else
|
# else
|
||||||
if a="$(type -path ${prg}-32 2>/dev/null)"; then
|
# if a="$(type -path ${prg}-32 2>/dev/null)"; then
|
||||||
ln -snf "$a" bin/"$prg"
|
# ln -snf "$a" bin/"$prg"
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
done
|
# done
|
||||||
export PATH="$PATH:$PWD/bin"
|
# export PATH="$PATH:$PWD/bin"
|
||||||
|
|
||||||
libtoolize --copy --force
|
libtoolize --copy --force
|
||||||
aclocal -I m4macros
|
aclocal -I m4macros
|
||||||
@ -221,9 +223,15 @@ cat gimp-plugin-files gimp-all.lang > gimp.files
|
|||||||
%clean
|
%clean
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
/usr/bin/update-desktop-database %{_datadir}/applications
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
/usr/bin/update-desktop-database %{_datadir}/applications
|
||||||
|
fi
|
||||||
|
|
||||||
%files -f gimp.files
|
%files -f gimp.files
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
@ -339,6 +347,9 @@ cat gimp-plugin-files gimp-all.lang > gimp.files
|
|||||||
%changelog
|
%changelog
|
||||||
* Thu Aug 26 2004 Nils Philippsen <nphilipp@redhat.com>
|
* Thu Aug 26 2004 Nils Philippsen <nphilipp@redhat.com>
|
||||||
- add MimeType to desktop file
|
- add MimeType to desktop file
|
||||||
|
- run update-desktop-database in %%post/%%postun
|
||||||
|
- don't make stunts with -32 or -64 postfixed binaries anymore
|
||||||
|
- require /sbin/ldconfig and /usr/bin/update-desktop-database
|
||||||
|
|
||||||
* Tue Aug 10 2004 Nils Philippsen <nphilipp@redhat.com>
|
* Tue Aug 10 2004 Nils Philippsen <nphilipp@redhat.com>
|
||||||
- build requires libwmf-devel
|
- build requires libwmf-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user