From 2fca63bfaab206af8e790d756c8c8a01bece6098 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 30 Nov 2012 11:02:35 -0800 Subject: [PATCH] make gnome builds optional --- packaging/libsoup.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packaging/libsoup.spec b/packaging/libsoup.spec index 1be9e3e..9e7fd1c 100644 --- a/packaging/libsoup.spec +++ b/packaging/libsoup.spec @@ -1,4 +1,4 @@ -%define enable_gnome 0 +%bcond_with gnome Name: libsoup Version: 2.40.1 @@ -12,7 +12,7 @@ Source99: baselibs.conf # Patches auto-generated by git-buildpackage: BuildRequires: gettext-tools BuildRequires: glib-networking -%if 0%{?enable_gnome} +%if %{with gnome} BuildRequires: gobject-introspection-devel %endif BuildRequires: intltool >= 0.35.0 @@ -68,7 +68,7 @@ Features: %build %autogen\ -%if 0%{!enable_gnome} +%if %{with gnome} --with-gnome \ --enable-introspection %else @@ -97,7 +97,7 @@ make %{?_smp_mflags} %files -n typelib-Soup %defattr(-,root,root) -%if 0%{!enable_gnome} +%if %{with gnome} %{_libdir}/girepository-1.0/Soup-2.4.typelib %{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib %endif @@ -107,7 +107,7 @@ make %{?_smp_mflags} %{_includedir}/libsoup-2.4 %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc -%if 0%{!enable_gnome} +%if %{with gnome} %{_datadir}/gir-1.0/Soup-2.4.gir %{_datadir}/gir-1.0/SoupGNOME-2.4.gir %{_includedir}/libsoup-gnome-2.4 -- 2.7.4