spec: add gir files into dev package 34/80434/4 accepted/tizen/common/20160720.173241 accepted/tizen/ivi/20160720.055433 accepted/tizen/mobile/20160720.055342 accepted/tizen/tv/20160720.055356 accepted/tizen/wearable/20160720.055412 submit/tizen/20160720.022424
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 18 Jul 2016 05:23:02 +0000 (14:23 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Tue, 19 Jul 2016 06:12:36 +0000 (15:12 +0900)
In order to build gupnp plugin modules such as GUPnP-AV & GUPnP-DLNA,
gir file (i.e. Gobject introspection repository) is necessary in dev
package.

Change-Id: Iffe2f146d8292e5b9d8b4bafed207ec316a938f2
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/gupnp.spec

index 13ba251..7f06dc6 100644 (file)
@@ -1,3 +1,9 @@
+%if "%{profile}" == "ivi"
+%define intro yes
+%else
+%define intro no
+%endif
+
 Name: gupnp
 Summary:    GUPnP is an framework for creating UPnP devices & control points
 Version:    0.20.5
@@ -13,13 +19,15 @@ BuildRequires:  pkgconfig(gssdp-1.0)
 BuildRequires:  pkgconfig(libsoup-2.4)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(uuid)
-#BuildRequires:  gobject-introspection-devel
-#BuildRequires:  vala
+%if "%{profile}" == "ivi"
+BuildRequires:  gobject-introspection-devel
+BuildRequires:  vala
+%endif
 
 
 %description
-GUPnP is an object-oriented open source framework for creating UPnP 
-devices and control points, written in C using GObject and libsoup. 
+GUPnP is an object-oriented open source framework for creating UPnP
+devices and control points, written in C using GObject and libsoup.
 The GUPnP API is intended to be easy to use, efficient and flexible.
 
 %package devel
@@ -33,16 +41,16 @@ Files for development with gupnp.
 
 %prep
 %setup -q -n %{name}-%{version}
-  
-%build  
-%configure --prefix=/usr --with-context-manager=network-manager
-  
-make %{?jobs:-j%jobs}  
-  
-%install  
-rm -rf %{buildroot}  
+
+%build
+%configure --prefix=/usr --with-context-manager=network-manager --enable-introspection=%{intro}
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
 %make_install
-rm -rf %{buildroot}/usr/share/
+rm -rf %{buildroot}/usr/share/gtk-doc
 mkdir -p %{buildroot}/usr/share/license
 cp COPYING %{buildroot}/usr/share/license/%{name}
 
@@ -66,4 +74,9 @@ rm -rf %{buildroot}
 #/usr/lib/*.a
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*
-
+%if "%{profile}" == "ivi"
+%{_datadir}/gir-1.0/GUPnP-1.0.gir
+%{_libdir}/girepository-1.0/GUPnP-1.0.typelib
+%{_datadir}/vala/vapi/gupnp-1.0.deps
+%{_datadir}/vala/vapi/gupnp-1.0.vapi
+%endif