[methane] Conditionalize removal of vendor so one spec can be used on lesser Fedora to

Toshio くらとみ toshio at fedoraproject.org
Thu Feb 14 10:10:03 UTC 2013


commit d00fd3447e12a43959ee396e15da3177a507fb7b
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date:   Thu Feb 14 02:09:40 2013 -0800

    Conditionalize removal of vendor so one spec can be used on lesser
    Fedora to

 methane.spec |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/methane.spec b/methane.spec
index edf942d..011ca48 100644
--- a/methane.spec
+++ b/methane.spec
@@ -45,9 +45,15 @@ touch $RPM_BUILD_ROOT%{_var}/games/%{name}.scores
 # below is the desktop file and icon stuff.
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
 desktop-file-install                            \
+%if 0%{?fedora} < 19
+  --vendor fedora \
+%endif
   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   %{SOURCE1}
 desktop-file-install                            \
+%if 0%{?fedora} && 0%{?fedora} < 19
+  --vendor fedora \
+%endif
   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   %{name}-help.desktop
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
@@ -73,8 +79,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %attr(2755,root,games) %{_bindir}/%{name}
 %{_bindir}/%{name}-wrapper
 %{_datadir}/%{name}
+%if 0%{?fedora} && 0%{?fedora} < 19
+%{_datadir}/applications/fedora-%{name}.desktop
+%{_datadir}/applications/fedora-%{name}-help.desktop
+%else
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/applications/%{name}-help.desktop
+%endif
 %{_datadir}/icons/hicolor/128x128/apps/%{name}.png
 %verify(not md5 size mtime) %config(noreplace) %attr(664,root,games) %{_var}/games/%{name}.scores
 


More information about the scm-commits mailing list