packaging: don't require gnome for introspection files tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/common/20141128.094650 accepted/tizen/ivi/20141209.110801 accepted/tizen/mobile/20141201.102307 submit/tizen/20141128.030230 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20141208.111111 submit/tizen_ivi/20141209.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorAlexander Kanavin <alex.kanavin@gmail.com>
Thu, 27 Mar 2014 19:16:00 +0000 (21:16 +0200)
committerdavid <david@david-desktop.(none)>
Fri, 28 Nov 2014 02:50:12 +0000 (10:50 +0800)
Bug-Tizen: TIVI-2984
Change-Id: Id75730e1b8c33f4b732d45a274032fa9725cefa8
Signed-off-by: Alexander Kanavin <alexander.kanavin@intel.com>
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/libsoup.spec

index 1c657c2..1d4f3a3 100644 (file)
@@ -1,4 +1,5 @@
 %bcond_with gnome
+%bcond_with introspection
 
 Name:           libsoup
 Version:        2.46.0
@@ -13,8 +14,10 @@ Source1001:  libsoup.manifest
 Requires:       glib-networking
 BuildRequires:  gettext-tools
 BuildRequires:  glib-networking
-%if %{with gnome}
+%if %{with introspection}
 BuildRequires:  gobject-introspection-devel
+%endif
+%if %{with gnome}
 BuildRequires:  pkgconfig(gnome-keyring-1)
 %endif
 BuildRequires:  intltool >= 0.35.0
@@ -75,9 +78,11 @@ cp %{SOURCE1001} .
 %build
 chmod +x autogen.sh
 %autogen\
+%if %{with introspection}
+    --enable-introspection \
+%endif
 %if %{with gnome}
     --with-gnome \
-    --enable-introspection \
 %else
     --without-gnome \
     --enable-sqlite=yes \
@@ -103,13 +108,15 @@ make %{?_smp_mflags}
 %license COPYING
 %{_libdir}/*.so.*
 
-%if %{with gnome}
+%if %{with introspection}
 %files -n typelib-Soup
 %manifest %{name}.manifest
 %defattr(-,root,root)
 %{_libdir}/girepository-1.0/Soup-2.4.typelib
+%if %{with gnome}
 %{_libdir}/girepository-1.0/SoupGNOME-2.4.typelib
 %endif
+%endif
 
 %files devel
 %manifest %{name}.manifest
@@ -117,8 +124,10 @@ make %{?_smp_mflags}
 %{_includedir}/libsoup-2.4
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
-%if %{with gnome}
+%if %{with introspection}
 %{_datadir}/gir-1.0/Soup-2.4.gir
+%if %{with gnome}
 %{_datadir}/gir-1.0/SoupGNOME-2.4.gir
 %{_includedir}/libsoup-gnome-2.4
 %endif
+%endif