[libpeas] Make seed optional (for rhel)
Matthias Clasen
mclasen at fedoraproject.org
Fri Mar 2 18:31:48 UTC 2012
commit 8e8f9c8d3d80392b9cec22fd8e39f04002d3b79e
Author: Matthias Clasen <mclasen at redhat.com>
Date: Fri Mar 2 13:32:02 2012 -0500
Make seed optional (for rhel)
libpeas.spec | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/libpeas.spec b/libpeas.spec
index 4520fe6..4bda642 100644
--- a/libpeas.spec
+++ b/libpeas.spec
@@ -1,6 +1,14 @@
+%if 0%{?rhel} == 0
+%global use_seed 0
+%global seed_option --disable-seed
+%else
+%global use_seed 1
+%global seed_option --enable-seed
+%endif
+
Name: libpeas
Version: 1.3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Plug-ins implementation convenience library
Group: System Environment/Libraries
@@ -13,7 +21,9 @@ BuildRequires: pygobject3-devel
BuildRequires: python-devel
BuildRequires: intltool
BuildRequires: libtool
+%if %{use_seed}
BuildRequires: seed-devel
+%endif
BuildRequires: gjs-devel
BuildRequires: vala-devel
BuildRequires: gtk-doc
@@ -43,7 +53,7 @@ that are needed to write applications that use libpeas.
%setup -q
%build
-%configure --enable-vala
+%configure --enable-vala %{seed_option}
# FIXME rpath disabling is disabled because it breaks the creation of the GIR files
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
@@ -80,7 +90,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%dir %{_libdir}/libpeas-1.0/
%dir %{_libdir}/libpeas-1.0/loaders
%{_libdir}/libpeas-1.0/loaders/libpythonloader.so
+%if %{use_seed}
%{_libdir}/libpeas-1.0/loaders/libseedloader.so
+%endif
#%{_libdir}/libpeas-1.0/loaders/libgjsloader.so
%{_libdir}/girepository-1.0/*.typelib
%{_datadir}/icons/hicolor/*/actions/libpeas-plugin.*
@@ -96,6 +108,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%{_datadir}/glade/catalogs/libpeas-gtk.xml
%changelog
+* Fri Mar 2 2012 Matthias Clasen <mclasen at redhat.com> - 1.3.0-2
+- Make seed optional for RHEL
+
* Sat Feb 25 2012 Ignacio Casal Quinteiro <icq at gnome.org> - 1.3.0-1
- Update to 1.3.0
More information about the scm-commits
mailing list