From 8fd8b52ffde1ffc13bcdaffdfec57e9a5d2d1442 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 25 Feb 2013 17:30:49 -0800 Subject: [PATCH] Remove --vendor from desktop-file-install for F19+ https://fedorahosted.org/fesco/ticket/1077 --- scribus-1.4.2-nonfree.patch | 21 ++++++++++++--------- scribus.spec | 12 +++++++++--- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/scribus-1.4.2-nonfree.patch b/scribus-1.4.2-nonfree.patch index 856775c..94248a2 100644 --- a/scribus-1.4.2-nonfree.patch +++ b/scribus-1.4.2-nonfree.patch @@ -1,6 +1,7 @@ -diff -up scribus-1.4.2/scribus/CMakeLists.txt.nonfree scribus-1.4.2/scribus/CMakeLists.txt ---- scribus-1.4.2/scribus/CMakeLists.txt.nonfree 2012-06-07 22:01:10.000000000 +0200 -+++ scribus-1.4.2/scribus/CMakeLists.txt 2013-01-15 18:50:11.000000000 +0100 +Index: scribus-1.4.2/scribus/CMakeLists.txt +=================================================================== +--- scribus-1.4.2.orig/scribus/CMakeLists.txt ++++ scribus-1.4.2/scribus/CMakeLists.txt @@ -2,7 +2,6 @@ IF(WIN32) ADD_DEFINITIONS(-DQT_DLL) ENDIF(WIN32) @@ -9,9 +10,10 @@ diff -up scribus-1.4.2/scribus/CMakeLists.txt.nonfree scribus-1.4.2/scribus/CMak ADD_SUBDIRECTORY(dtd) ADD_SUBDIRECTORY(manpages) ADD_SUBDIRECTORY(colormgmt) -diff -up scribus-1.4.2/scribus/helpbrowser.cpp.nonfree scribus-1.4.2/scribus/helpbrowser.cpp ---- scribus-1.4.2/scribus/helpbrowser.cpp.nonfree 2012-06-24 22:43:17.000000000 +0200 -+++ scribus-1.4.2/scribus/helpbrowser.cpp 2013-01-15 18:50:11.000000000 +0100 +Index: scribus-1.4.2/scribus/helpbrowser.cpp +=================================================================== +--- scribus-1.4.2.orig/scribus/helpbrowser.cpp ++++ scribus-1.4.2/scribus/helpbrowser.cpp @@ -716,7 +716,7 @@ QString HelpBrowser::historyFile() void HelpBrowser::displayNoHelp() @@ -21,9 +23,10 @@ diff -up scribus-1.4.2/scribus/helpbrowser.cpp.nonfree scribus-1.4.2/scribus/hel "HTML message for no documentation available to show"); textBrowser->setText(noHelpMsg); -diff -up scribus-1.4.2/scribus/profiles/CMakeLists.txt.nonfree scribus-1.4.2/scribus/profiles/CMakeLists.txt ---- scribus-1.4.2/scribus/profiles/CMakeLists.txt.nonfree 2012-01-03 22:47:01.000000000 +0100 -+++ scribus-1.4.2/scribus/profiles/CMakeLists.txt 2013-01-15 18:50:11.000000000 +0100 +Index: scribus-1.4.2/scribus/profiles/CMakeLists.txt +=================================================================== +--- scribus-1.4.2.orig/scribus/profiles/CMakeLists.txt ++++ scribus-1.4.2/scribus/profiles/CMakeLists.txt @@ -6,7 +6,5 @@ INSTALL(FILES GenericCMYK.icm GenericCMYK.txt diff --git a/scribus.spec b/scribus.spec index 7fbe51f..831d3c4 100644 --- a/scribus.spec +++ b/scribus.spec @@ -1,6 +1,6 @@ Name: scribus Version: 1.4.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: DeskTop Publishing application written in Qt @@ -111,7 +111,10 @@ find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' # install the global desktop file rm -f ${RPM_BUILD_ROOT}%{_datadir}/mimelnk/application/*scribus.desktop -desktop-file-install --vendor="fedora" \ +desktop-file-install \ +%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7) + --vendor="fedora" \ +%endif --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ scribus.desktop @@ -133,7 +136,7 @@ update-desktop-database &> /dev/null || : %doc AUTHORS ChangeLog COPYING LINKS README %{_bindir}/%{name} %{_libdir}/%{name}/ -%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/applications/*%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/pixmaps/* %{_datadir}/%{name}/ @@ -145,6 +148,9 @@ update-desktop-database &> /dev/null || : %changelog +* Mon Feb 25 2013 Toshio Kuratomi - 1.4.2-5 +- Remove --vendor from desktop-file-install for F19+ https://fedorahosted.org/fesco/ticket/1077 + * Wed Jan 30 2013 Dan HorĂ¡k - 1.4.2-4 - update for Pillow (#896301)