diff --git a/gimp.spec b/gimp.spec index 44a5a36..cae098a 100644 --- a/gimp.spec +++ b/gimp.spec @@ -17,7 +17,7 @@ Version: 2.0.4 %if %prever Release: 0.%{prever}.1 %else -Release: 2 +Release: 3 %endif Epoch: 1 License: GPL, LGPL @@ -159,6 +159,13 @@ mkdir -p $RPM_BUILD_ROOT/%{_infodir} $RPM_BUILD_ROOT/%{_includedir} \ # makeinstall macro won't work here - libexec is overriden make DESTDIR=$RPM_BUILD_ROOT install +# build MimeType list +pushd $RPM_BUILD_ROOT%{_datadir}/gimp/%{subver}/misc +# canary +[ ! "$(perl -e 'while (<>) { m/^MimeType=/ && print $_ }' < gimp.desktop)" ] +perl -e 'print "MimeType="; while (<>) { m/^$/ && next; m/^[ \t]/ && next; m/^#/ && next; chomp (); print "$_;"; } print "\n";' < gimp.keys >> gimp.desktop +popd + # # Plugins and modules change often (grab the executeable ones) # @@ -330,6 +337,9 @@ cat gimp-plugin-files gimp-all.lang > gimp.files %{_libdir}/pkgconfig/* %changelog +* Thu Aug 26 2004 Nils Philippsen +- add MimeType to desktop file + * Tue Aug 10 2004 Nils Philippsen - build requires libwmf-devel