Make seed optional (for rhel)
This commit is contained in:
parent
abe3649553
commit
8e8f9c8d3d
19
libpeas.spec
19
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@redhat.com> - 1.3.0-2
|
||||
- Make seed optional for RHEL
|
||||
|
||||
* Sat Feb 25 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.3.0-1
|
||||
- Update to 1.3.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user