From b4aaecfeb6dfb3fef354cfdff8a2942a04f7f323 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 27 May 2021 13:31:38 +0900 Subject: [PATCH] Disable applications on TV Change-Id: I4a11a440659edb3cab63cc34d42e3d075787f8c9 --- packaging/nghttp2.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packaging/nghttp2.spec b/packaging/nghttp2.spec index e9abcd0..eca6728 100644 --- a/packaging/nghttp2.spec +++ b/packaging/nghttp2.spec @@ -13,10 +13,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig >= 0.20, zlib >= 1.2.3, gcc, gcc-c++, make BuildRequires: libopenssl1.1-devel BuildRequires: libxml2-devel +%if "%{tizen_profile_name}" != "tv" BuildRequires: boost-devel BuildRequires: libcares-devel BuildRequires: zlib-devel BuildRequires: libev-devel +%endif %description @@ -29,6 +31,7 @@ Requires: %{name} = %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%if "%{tizen_profile_name}" != "tv" %package tools Summary: Tool files for %{name} Group: Development/Libraries @@ -36,6 +39,7 @@ Requires: %{name} = %{version}-%{release} %description tools The %{name}-tools package contains tool files for %{name}. +%endif %prep @@ -45,7 +49,13 @@ The %{name}-tools package contains tool files for %{name}. autoreconf -i %{__automake} %{__autoconf} -%configure --disable-static --disable-xmltest --enable-asio-lib --enable-app +%configure \ +%if "%{tizen_profile_name}" != "tv" + --enable-asio-lib \ + --enable-app \ +%endif + --disable-xmltest \ + --disable-static %{__make} %{?_smp_mflags} %install @@ -68,10 +78,11 @@ rm -rf $RPM_BUILD_ROOT %exclude %{_libdir}/*.la %license COPYING - +%if "%{tizen_profile_name}" != "tv" %files tools %defattr(-,root,root,-) %{_bindir}/nghttpx +%endif %files devel %defattr(-,root,root,-) -- 2.7.4