Fedora Account System
Red Hat Associate
Red Hat Customer
Now many gimp plugins are being packaged, and some other packages may include gimp plugin as well, some packagers install plugins to wrong place so I hope you can add a macro %_gimp_plugindir: %global gimpplugindir %(gimptool --gimpplugindir)/plug-ins install -pd %{buildroot}%{_rpmconfigdir}/macros.d cat >> %{buildroot}%{_rpmconfigdir}/macros.d/macros.gimp << EOF # GIMP Macros %%_gimp_plugindir %{gimpplugindir} EOF %{_rpmconfigdir}/macros.d/macros.gimp And put the macro into devel. Thanks.
This is a good idea, but I'll have to tweak it a bit: - I don't want to rely on gimptool to build gimp, this makes bootstrapping hard. I guess I'll just have to leave things hard-coded in gimp. - The macro file needs to work on multi-lib, i.e. not contain hard-coded paths but use appropriate macros.
I've built gimp-2.8.10-5.fc21 which contains this /usr/lib/rpm/macros.d/macros.gimp file: --- 8< -------------------------------------- # RPM macros for GIMP %_gimp_datadir %{_datadir}/gimp/2.0 %_gimp_libdir %{_libdir}/gimp/2.0 %_gimp_sysconfdir %{_sysconfdir}/gimp/2.0 %_gimp_localedir %{_datadir}/locale %_gimp_scriptdir %{_datadir}/gimp/2.0/scripts %_gimp_plugindir %{_libdir}/gimp/2.0/plug-ins --- >8 -------------------------------------- I've committed this change into the F-19, F-20 dist-git branches, therefore future updates (once they happen) in the stable releases will get this as well.
Thanks, your help is much appreciated.