jwrdegoede pushed to KoboDeluxe (f22). "Add an appdata file"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Jun 3 19:07:43 UTC 2015


From ac6dd736d1c20572d7c3301237f6e0c61fed2668 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede at redhat.com>
Date: Wed, 3 Jun 2015 20:27:52 +0200
Subject: Add an appdata file


diff --git a/KoboDeluxe.spec b/KoboDeluxe.spec
index 03d922b..cf6157f 100644
--- a/KoboDeluxe.spec
+++ b/KoboDeluxe.spec
@@ -12,7 +12,7 @@ Source3:        %{name}.appdata.xml
 Patch1:         KoboDeluxe-defaults.patch
 Patch2:         KoboDeluxe-0.5.1-avoid-unistd-pipe-collision.patch
 Patch3:         KoboDeluxe-0.5.1-gcc44.patch
-BuildRequires:  SDL_image-devel desktop-file-utils
+BuildRequires:  SDL_image-devel desktop-file-utils libappstream-glib
 Requires:       hicolor-icon-theme
 Requires(pre):  shadow-utils
 
@@ -46,8 +46,9 @@ iconv -f ISO2022JP -t UTF8 README.xkobo.jp > tmp; mv tmp README.xkobo.jp
 make %{?_smp_mflags}
 # Workaround for GCC-5 optimization bug causing segfaults
 # https://bugzilla.redhat.com/show_bug.cgi?id=1227807
+CFLAGS="$(echo $RPM_OPT_FLAGS | sed s/-O2/-O/)"
 touch sound/a_midicon.c
-make CFLAGS="-g -O -Wall -I/usr/include/SDL"
+make CFLAGS="$CFLAGS -I/usr/include/SDL"
 
 
 %install
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/KoboDeluxe.git/commit/?h=f22&id=ac6dd736d1c20572d7c3301237f6e0c61fed2668


More information about the scm-commits mailing list