From: Seonah Moon Date: Thu, 27 May 2021 04:31:38 +0000 (+0900) Subject: Disable applications on TV X-Git-Tag: submit/tizen_base/20210603.075104^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4aaecfeb6dfb3fef354cfdff8a2942a04f7f323;p=platform%2Fupstream%2Fnghttp2.git Disable applications on TV Change-Id: I4a11a440659edb3cab63cc34d42e3d075787f8c9 --- 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,-)