-export CPPFLAGS="$(pkg-config --cflags nss) -DHAVE_PK11_CREATEGENERICOBJECT"
-
-%reconfigure --without-nss \
- --without-gnutls \
- --with-openssl \
- --disable-ipv6 \
- --with-ca-path=/etc/ssl/certs \
- --with-libidn \
- --with-lber-lib=lber \
- --enable-manual \
- --enable-versioned-symbols \
- --enable-ares \
- --enable-debug \
- --enable-curldebug \
- --disable-static
+
+export CPPFLAGS="-DHAVE_PK11_CREATEGENERICOBJECT"
+
+%if "%{?tizen_profile_name}" == "tv"
+CFLAGS+=" -DTIZEN_TV_EXT"
+%reconfigure --without-nss --without-gnutls --with-openssl --disable-ipv6 \
+%else
+%reconfigure --without-nss --without-gnutls --with-openssl --enable-ipv6 \
+%endif
+--with-ca-path=/etc/ssl/certs \
+--with-libidn \
+--with-lber-lib=lber \
+--enable-manual --enable-versioned-symbols --enable-ares --enable-debug --enable-curldebug \
+--disable-static \
+--with-nghttp2 \
+
+#--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt