summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-30 11:02:35 -0800
committerdavid <david@david-desktop.(none)>2014-11-21 09:41:01 +0800
commit2fca63bfaab206af8e790d756c8c8a01bece6098 (patch)
treef0cd87f4ba91d8bc43f3d3cc78709363d1da785f
parent761b193c149f125f2acd61d95b559ba89420a7af (diff)
downloadlibsoup-2fca63bfaab206af8e790d756c8c8a01bece6098.tar.gz
libsoup-2fca63bfaab206af8e790d756c8c8a01bece6098.tar.bz2
libsoup-2fca63bfaab206af8e790d756c8c8a01bece6098.zip
make gnome builds optional
-rw-r--r--packaging/libsoup.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/libsoup.spec b/packaging/libsoup.spec
index 1be9e3e7..9e7fd1c9 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