|
@@ -1,10 +1,12 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
%bcond_with test
|
|
|
|
|
|
Summary: Experimental HTTP/2 client, server and proxy
|
|
|
Summary(ja): HTTP/2クライアント・サーバ・プロキシの実験的実装
|
|
|
Name: nghttp2
|
|
|
Version: 1.12.0
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
License: MIT
|
|
|
Group: Applications/Internet
|
|
|
URL: https://nghttp2.org/
|
|
@@ -66,6 +68,37 @@ for building applications with libnghttp2.
|
|
|
す。
|
|
|
|
|
|
|
|
|
+%package -n compat32-libnghttp2
|
|
|
+Summary: A library implementing the HTTP/2 protocol
|
|
|
+Summary(ja): HTTP/2ライブラリ
|
|
|
+Group: Development/Libraries
|
|
|
+
|
|
|
+%description -n compat32-libnghttp2
|
|
|
+libnghttp2 is a library implementing the Hypertext Transfer Protocol
|
|
|
+version 2 (HTTP/2) protocol in C.
|
|
|
+
|
|
|
+%description -l ja -n compat32-libnghttp2
|
|
|
+ libnghttp2はHypertext Transfer Protocol version 2 (HTTP/2)をC言語で
|
|
|
+実装したライブラリです。
|
|
|
+
|
|
|
+
|
|
|
+%package -n compat32-libnghttp2-devel
|
|
|
+Summary: Files needed for building applications with libnghttp2
|
|
|
+Summary(ja): libnghttp2を利用するアプリケーションをビルドするために必要なファイル
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: compat32-libnghttp2%{?_isa} = %{version}-%{release}
|
|
|
+Requires: pkgconfig
|
|
|
+
|
|
|
+%description -n compat32-libnghttp2-devel
|
|
|
+The libnghttp2-devel package includes libraries and header files needed
|
|
|
+for building applications with libnghttp2.
|
|
|
+
|
|
|
+%description -l ja -n compat32-libnghttp2-devel
|
|
|
+ libnghttp2-develパッケージにはlibnghttp2を利用するアプリケーション
|
|
|
+をビルドするために必要となるライブラリ・ヘッダファイルが含まれていま
|
|
|
+す。
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
@@ -104,9 +137,17 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libnghttp2*.la
|
|
|
# will be installed via %%doc
|
|
|
rm -f "$RPM_BUILD_ROOT%{_datadir}/doc/nghttp2/README.rst"
|
|
|
|
|
|
-%post -n libnghttp2 -p /sbin/ldconfig
|
|
|
+%post -n libnghttp2
|
|
|
+/sbin/ldconfig
|
|
|
+
|
|
|
+%postun -n libnghttp2
|
|
|
+/sbin/ldconfig
|
|
|
|
|
|
-%postun -n libnghttp2 -p /sbin/ldconfig
|
|
|
+%post -n compat32-libnghttp2
|
|
|
+/sbin/ldconfig
|
|
|
+
|
|
|
+%postun -n compat32-libnghttp2
|
|
|
+/sbin/ldconfig
|
|
|
|
|
|
|
|
|
%check
|
|
@@ -138,8 +179,23 @@ make %{?_smp_mflags} check
|
|
|
%{_libdir}/libnghttp2*.so
|
|
|
%doc README.rst
|
|
|
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-libnghttp2
|
|
|
+%{_libdir}/libnghttp2*.so.*
|
|
|
+%{!?_licensedir:%global license %%doc}
|
|
|
+%license COPYING
|
|
|
+
|
|
|
+%files -n compat32-libnghttp2-devel
|
|
|
+%{_includedir}/nghttp2
|
|
|
+%{_libdir}/pkgconfig/libnghttp2*.pc
|
|
|
+%{_libdir}/libnghttp2*.so
|
|
|
+%doc README.rst
|
|
|
+%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Jul 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-2
|
|
|
+- added compat32-* packages.
|
|
|
+
|
|
|
* Thu Jul 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-1
|
|
|
- new upstream release.
|
|
|
|