[grilo/rpm] Add support for openSUSE



commit da11b3d4bf974ffe9c2143b4734413346007613e
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Wed Apr 4 11:14:01 2012 +0200

    Add support for openSUSE

 grilo.spec.in |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/grilo.spec.in b/grilo.spec.in
index ec31852..b07ff61 100644
--- a/grilo.spec.in
+++ b/grilo.spec.in
@@ -8,7 +8,7 @@ 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
+%if (0%{?fedora} == 15 || 0%{?suse_version})
 %define vapidir %{_datadir}/vala-0.12/vapi
 %else
 %define vapidir %{_datadir}/vala-0.14/vapi
@@ -16,7 +16,12 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gnome-common
 BuildRequires:  vala-devel >= 0.7.2
+%if 0%{?suse_version}
+BuildRequires:  vala >= 0.7.2
+BuildRequires:  libvala-0_12-devel
+%else
 BuildRequires:  vala-tools >= 0.7.2
+%endif
 BuildRequires:  gtk-doc
 BuildRequires:  gobject-introspection-devel >= 0.9.0
 BuildRequires:  libxml2-devel
@@ -79,6 +84,8 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/grilo-simple-playlist
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root,-)
@@ -104,6 +111,10 @@ rm -rf $RPM_BUILD_ROOT
 %files vala
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING NEWS README TODO
+%if 0%{?suse_version}
+%dir %{vapidir}/..
+%dir %{vapidir}
+%endif
 %{vapidir}/*
 
 %changelog



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