[grilo/rpm] Add support for Fedora 15



commit d99d669b630a904e71d10f75104596f20ac3b4de
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Wed Apr 4 09:55:53 2012 +0200

    Add support for Fedora 15

 grilo.spec.in |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/grilo.spec.in b/grilo.spec.in
index 8eccc8e..ec31852 100644
--- a/grilo.spec.in
+++ b/grilo.spec.in
@@ -8,6 +8,12 @@ License:        LGPLv2+
 Source0:        http://ftp.gnome.org/pub/GNOME/sources/grilo/0.1/grilo-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+%if 0%{?fedora} == 15
+%define vapidir %{_datadir}/vala-0.12/vapi
+%else
+%define vapidir %{_datadir}/vala-0.14/vapi
+%endif
+
 BuildRequires:  gnome-common
 BuildRequires:  vala-devel >= 0.7.2
 BuildRequires:  vala-tools >= 0.7.2
@@ -15,7 +21,6 @@ BuildRequires:  gtk-doc
 BuildRequires:  gobject-introspection-devel >= 0.9.0
 BuildRequires:  libxml2-devel
 BuildRequires:  libsoup-devel
-#Requires:
 
 %description
 Grilo is a framework that provides access to different sources of
@@ -99,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 %files vala
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING NEWS README TODO
-%{_datadir}/vala-0.14/vapi/*
+%{vapidir}/*
 
 %changelog
 * Fri Dec 09 2011 Juan A. Suarez Romero <jasuarez igalia com> - 0.1.18-1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]