From 6f3bb6324dac99237edd00a60f8172b4ca3652a140df23ee420eba6cd53c08e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Wed, 18 Mar 2015 13:18:53 +0000 Subject: [PATCH] Accepting request 291286 from home:Zaitor:branches:GNOME:Apps Fix build on older versions of oS OBS-URL: https://build.opensuse.org/request/show/291286 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gtranslator?expand=0&rev=58 --- gtranslator.changes | 5 +++++ gtranslator.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gtranslator.changes b/gtranslator.changes index 3c2d888..3263751 100644 --- a/gtranslator.changes +++ b/gtranslator.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 18 12:05:35 UTC 2015 - zaitor@opensuse.org + +- Own appdata dir on older versions of openSUSE. + ------------------------------------------------------------------- Mon Mar 16 09:34:18 UTC 2015 - dimstar@opensuse.org diff --git a/gtranslator.spec b/gtranslator.spec index d02b6be..84d36df 100644 --- a/gtranslator.spec +++ b/gtranslator.spec @@ -108,6 +108,10 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/%{name}/ +# own dir on older version of openSUSE +%if 0%{?suse_version} < 1320 +%dir %{_datadir}/appdata/ +%endif %{_datadir}/appdata/gtranslator.appdata.xml %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/*.gschema.xml