diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-26 19:58:00 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-04-26 15:38:06 -0700 |
commit | 75e44533cfcf26e69207433dfe0cead82d9bd38a (patch) | |
tree | 8beae3ae31984ba664434f953973d6467c180323 | |
parent | d0b5ff4c53c2b392bae221876123037304993631 (diff) | |
download | libsoup-75e44533cfcf26e69207433dfe0cead82d9bd38a.tar.gz libsoup-75e44533cfcf26e69207433dfe0cead82d9bd38a.tar.bz2 libsoup-75e44533cfcf26e69207433dfe0cead82d9bd38a.zip |
require gnome-common
-rw-r--r-- | packaging/libsoup.spec | 28 |
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 |