Bug 1063144
| Summary: | [RFE] gimp plugins location RPM macro | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christopher Meng <i> |
| Component: | gimp | Assignee: | Nils Philippsen <nphilipp> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | nphilipp, phracek |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gimp-2.8.10-5.fc21 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-13 13:00:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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. |
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.