summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-26 19:58:00 -0800
committerdavid <david@david-desktop.(none)>2014-11-21 09:41:01 +0800
commit2db85e85f54bb7bc189bbdf0263ff08cec5e0f6f (patch)
tree8ac9286d443d4ddb3ea22a414b9a9bf4485e9237
parentae9670c3822649f0880419ca8089c0d6ac343cfc (diff)
downloadlibsoup-2db85e85f54bb7bc189bbdf0263ff08cec5e0f6f.tar.gz
libsoup-2db85e85f54bb7bc189bbdf0263ff08cec5e0f6f.tar.bz2
libsoup-2db85e85f54bb7bc189bbdf0263ff08cec5e0f6f.zip
require gnome-common
-rw-r--r--packaging/libsoup.spec28
1 files changed, 20 insertions, 8 deletions
diff --git a/packaging/libsoup.spec b/packaging/libsoup.spec
index b83e1c41..51a29ec2 100644
--- a/packaging/libsoup.spec
+++ b/packaging/libsoup.spec
@@ -1,12 +1,15 @@
+%define enable_gnome 0
+
Name: libsoup
Version: 2.40.1
-Release: 0
+Release: 2.1
License: LGPL-2.1+
Summary: HTTP client/server library for GNOME
Url: http://www.gnome.org
Group: Development/Libraries/GNOME
Source: http://download.gnome.org/sources/libsoup/2.40/%{name}-%{version}.tar.xz
Source99: baselibs.conf
+# Patches auto-generated by git-buildpackage:
BuildRequires: gettext-tools
BuildRequires: glib-networking
BuildRequires: gobject-introspection-devel
@@ -14,6 +17,7 @@ BuildRequires: gtk-doc
BuildRequires: intltool >= 0.35.0
BuildRequires: sqlite3-devel
BuildRequires: pkgconfig(glib-2.0) >= 2.31.7
+BuildRequires: gnome-common
BuildRequires: pkgconfig(libxml-2.0)
%description
@@ -62,11 +66,16 @@ Features:
%setup -q
%build
-%autogen
-%configure\
+%autogen\
--disable-static \
- --enable-introspection \
- --without-gnome --enable-sqllite=yes --disable-tls-check
+%if 0%{!enable_gnome}
+ --with-gnome \
+%else
+ --without-gnome \
+ --enable-sqllite=yes \
+ --disable-tls-check \
+%endif
+ --enable-introspection
make %{?_smp_mflags}
%install
@@ -82,20 +91,23 @@ make %{?_smp_mflags}
%files
%defattr(-, root, root)
-%license COPYING
+%license COPYING
%{_libdir}/*.so.*
%files -n typelib-Soup
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Soup-2.4.typelib
+%if 0%{!enable_gnome}
%{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib
+%endif
%files devel
%defattr(-,root,root)
%{_includedir}/libsoup-2.4
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
-%{_includedir}/libsoup-gnome-2.4
-%{_datadir}/gtk-doc/html/libsoup-2.4
%{_datadir}/gir-1.0/Soup-2.4.gir
+%if 0%{!enable_gnome}
%{_datadir}/gir-1.0/SoupGNOME-2.4.gir
+%{_includedir}/libsoup-gnome-2.4
+%endif