From 48fb77c13403158bc84018df085280dd53548944 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 6 Mar 2013 15:20:59 -0800 Subject: [PATCH] Remove vendor prefix from desktop files in F19+ https://fedorahosted.org/fesco/ticket/1077 --- PySolFC.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/PySolFC.spec b/PySolFC.spec index 985464c..c7ecdf8 100644 --- a/PySolFC.spec +++ b/PySolFC.spec @@ -5,7 +5,7 @@ Name: PySolFC Version: 2.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A collection of solitare card games Group: Amusements/Games License: GPLv2+ @@ -48,7 +48,11 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT # install desktop file -desktop-file-install --vendor="fedora" --delete-original \ +desktop-file-install \ +%if 0%{?fedora} && 0%{?fedora} < 19 + --vendor="fedora" \ +%endif + --delete-original \ --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \ $RPM_BUILD_ROOT/%{_datadir}/applications/pysol.desktop @@ -72,10 +76,13 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/%{name}/* %{_datadir}/pixmaps/* %{_datadir}/icons/*.png -%{_datadir}/applications/fedora-*.desktop +%{_datadir}/applications/*.desktop %changelog +* Wed Mar 6 2013 Toshio Kuratomi - 2.0-8 +- Remove vendor prefix from desktop files in F19+ https://fedorahosted.org/fesco/ticket/1077 + * Wed Jan 30 2013 Toshio Kuratomi 2.0-7 - Build with a patch so we can use python-pillow instead of python-imaging