From 1d81240fab3d5a18a141cd11907c9e7cd13a05fe Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 6 May 2021 13:27:33 +0900 Subject: [PATCH] Enable nghttp2 applications Change-Id: Ibcf013a108b1caac15321d85bebd9bad8974dc1e --- packaging/nghttp2.spec | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/packaging/nghttp2.spec b/packaging/nghttp2.spec index ce01362..2c78575 100644 --- a/packaging/nghttp2.spec +++ b/packaging/nghttp2.spec @@ -13,6 +13,10 @@ 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 +BuildRequires: asio-devel +BuildRequires: libcares-devel +BuildRequires: zlib-devel +BuildRequires: libev-devel %description @@ -25,6 +29,15 @@ Requires: %{name} = %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package tools +Summary: Tool files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description tools +The %{name}-tools package contains tool files for %{name}. + + %prep %setup -q @@ -32,13 +45,16 @@ developing applications that use %{name}. autoreconf -i %{__automake} %{__autoconf} -%configure --disable-static --disable-xmltest +%configure --disable-static --disable-xmltest --enable-asio-lib --enable-app %{__make} %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT +find %{buildroot}%{_bindir}/ -type f -not -name 'nghttpx' -delete +%{remove_docs} + %clean rm -rf $RPM_BUILD_ROOT @@ -52,9 +68,13 @@ rm -rf $RPM_BUILD_ROOT %exclude %{_libdir}/*.la %license COPYING + +%files tools +%defattr(-,root,root,-) +%{_bindir}/nghttpx + %files devel %defattr(-,root,root,-) -%doc /usr/share/doc/%{name} %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc -- 2.7.4