[10631] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[10358] | 3 | %bcond_with test |
---|
[10932] | 4 | %bcond_with app |
---|
[10358] | 5 | |
---|
[10932] | 6 | %define _unpackaged_files_terminate_build 1 |
---|
| 7 | |
---|
[10358] | 8 | Summary: Experimental HTTP/2 client, server and proxy |
---|
| 9 | Summary(ja): HTTP/2クライアント・サーバ・プロキシの実験的実装 |
---|
| 10 | Name: nghttp2 |
---|
[11061] | 11 | Version: 1.22.0 |
---|
[10851] | 12 | Release: 1%{?_dist_release} |
---|
[10358] | 13 | License: MIT |
---|
| 14 | Group: Applications/Internet |
---|
| 15 | URL: https://nghttp2.org/ |
---|
[10559] | 16 | |
---|
| 17 | Vendor: Project Vine |
---|
| 18 | Distribution: Vine Linux |
---|
[10932] | 19 | Packager: tomop |
---|
[10559] | 20 | |
---|
[10358] | 21 | Source0: https://github.com/tatsuhiro-t/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz |
---|
| 22 | |
---|
| 23 | %if %{with test} |
---|
| 24 | BuildRequires: CUnit-devel |
---|
| 25 | %endif |
---|
| 26 | BuildRequires: jemalloc-devel |
---|
| 27 | BuildRequires: libboost-devel |
---|
| 28 | BuildRequires: libboost-thread |
---|
| 29 | BuildRequires: libev-devel |
---|
| 30 | BuildRequires: openssl-devel |
---|
| 31 | BuildRequires: zlib-devel |
---|
| 32 | |
---|
[10932] | 33 | %if %{with app} |
---|
[10358] | 34 | Requires: libnghttp2 = %{version}-%{release} |
---|
[10932] | 35 | BuildRequires: jansson-devel |
---|
| 36 | BuildRequires: libxml2-devel |
---|
| 37 | %endif |
---|
[10358] | 38 | |
---|
| 39 | %description |
---|
| 40 | This package contains the HTTP/2 client, server and proxy programs. |
---|
| 41 | |
---|
| 42 | %description -l ja |
---|
| 43 | This package contains the HTTP/2 client, server and proxy programs. |
---|
| 44 | このパッケージにはHTTP/2クライアント・サーバ。プロキシのプログラム |
---|
| 45 | が含まれています。 |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %package -n libnghttp2 |
---|
| 49 | Summary: A library implementing the HTTP/2 protocol |
---|
| 50 | Summary(ja): HTTP/2ライブラリ |
---|
| 51 | Group: Development/Libraries |
---|
| 52 | |
---|
| 53 | %description -n libnghttp2 |
---|
| 54 | libnghttp2 is a library implementing the Hypertext Transfer Protocol |
---|
| 55 | version 2 (HTTP/2) protocol in C. |
---|
| 56 | |
---|
| 57 | %description -l ja -n libnghttp2 |
---|
| 58 | libnghttp2はHypertext Transfer Protocol version 2 (HTTP/2)をC言語で |
---|
| 59 | 実装したライブラリです。 |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %package -n libnghttp2-devel |
---|
| 63 | Summary: Files needed for building applications with libnghttp2 |
---|
| 64 | Summary(ja): libnghttp2を利用するアプリケーションをビルドするために必要なファイル |
---|
| 65 | Group: Development/Libraries |
---|
| 66 | Requires: libnghttp2%{?_isa} = %{version}-%{release} |
---|
| 67 | Requires: pkgconfig |
---|
| 68 | |
---|
| 69 | %description -n libnghttp2-devel |
---|
| 70 | The libnghttp2-devel package includes libraries and header files needed |
---|
| 71 | for building applications with libnghttp2. |
---|
| 72 | |
---|
| 73 | %description -l ja -n libnghttp2-devel |
---|
| 74 | libnghttp2-develパッケージにはlibnghttp2を利用するアプリケーション |
---|
| 75 | をビルドするために必要となるライブラリ・ヘッダファイルが含まれていま |
---|
| 76 | す。 |
---|
| 77 | |
---|
| 78 | |
---|
[10631] | 79 | %package -n compat32-libnghttp2 |
---|
| 80 | Summary: A library implementing the HTTP/2 protocol |
---|
| 81 | Summary(ja): HTTP/2ライブラリ |
---|
| 82 | Group: Development/Libraries |
---|
| 83 | |
---|
| 84 | %description -n compat32-libnghttp2 |
---|
| 85 | libnghttp2 is a library implementing the Hypertext Transfer Protocol |
---|
| 86 | version 2 (HTTP/2) protocol in C. |
---|
| 87 | |
---|
| 88 | %description -l ja -n compat32-libnghttp2 |
---|
| 89 | libnghttp2はHypertext Transfer Protocol version 2 (HTTP/2)をC言語で |
---|
| 90 | 実装したライブラリです。 |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %package -n compat32-libnghttp2-devel |
---|
| 94 | Summary: Files needed for building applications with libnghttp2 |
---|
| 95 | Summary(ja): libnghttp2を利用するアプリケーションをビルドするために必要なファイル |
---|
| 96 | Group: Development/Libraries |
---|
| 97 | Requires: compat32-libnghttp2%{?_isa} = %{version}-%{release} |
---|
| 98 | Requires: pkgconfig |
---|
| 99 | |
---|
| 100 | %description -n compat32-libnghttp2-devel |
---|
| 101 | The libnghttp2-devel package includes libraries and header files needed |
---|
| 102 | for building applications with libnghttp2. |
---|
| 103 | |
---|
| 104 | %description -l ja -n compat32-libnghttp2-devel |
---|
| 105 | libnghttp2-develパッケージにはlibnghttp2を利用するアプリケーション |
---|
| 106 | をビルドするために必要となるライブラリ・ヘッダファイルが含まれていま |
---|
| 107 | す。 |
---|
| 108 | |
---|
| 109 | |
---|
[10358] | 110 | %prep |
---|
| 111 | %setup -q |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | %build |
---|
| 115 | LIBEV_CFLAGS=`pkg-config --cflags libev` |
---|
| 116 | CFLAGS="%{optflags} -fPIC $LIBEV_CFLAGS" \ |
---|
| 117 | CXXFLAGS="%{optflags} -fPIC $LIBEV_CFLAGS" \ |
---|
| 118 | %configure \ |
---|
[10932] | 119 | %if %{with app} |
---|
[10358] | 120 | --enable-app \ |
---|
[10932] | 121 | %endif |
---|
| 122 | --enable-asio-lib \ |
---|
[10358] | 123 | --with-pic \ |
---|
| 124 | --with-boost \ |
---|
| 125 | --with-boost-asio \ |
---|
| 126 | --with-boost-system \ |
---|
| 127 | --with-boost-thread \ |
---|
| 128 | --disable-python-bindings \ |
---|
| 129 | --disable-static \ |
---|
| 130 | --without-libxml2 \ |
---|
| 131 | --without-spdylay |
---|
| 132 | |
---|
| 133 | # avoid using rpath |
---|
| 134 | sed -i libtool \ |
---|
| 135 | -e 's/^runpath_var=.*/runpath_var=/' \ |
---|
| 136 | -e 's/^hardcode_libdir_flag_spec=".*"$/hardcode_libdir_flag_spec=""/' |
---|
| 137 | |
---|
| 138 | make %{?_smp_mflags} V=1 |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | %install |
---|
| 142 | %make_install |
---|
| 143 | |
---|
| 144 | # not needed on Fedora/RHEL |
---|
[10932] | 145 | rm -f %{buildroot}%{_libdir}/libnghttp2*.la |
---|
[10358] | 146 | |
---|
| 147 | # will be installed via %%doc |
---|
[10932] | 148 | rm -f "%{buildroot}%{_datadir}/doc/nghttp2/README.rst" |
---|
[10358] | 149 | |
---|
[10932] | 150 | %if ! %{with app} |
---|
| 151 | rm -f %{buildroot}%{_mandir}/man1/* |
---|
| 152 | %endif |
---|
| 153 | |
---|
| 154 | |
---|
[10631] | 155 | %post -n libnghttp2 |
---|
| 156 | /sbin/ldconfig |
---|
[10358] | 157 | |
---|
[10631] | 158 | %postun -n libnghttp2 |
---|
| 159 | /sbin/ldconfig |
---|
[10358] | 160 | |
---|
[10631] | 161 | %post -n compat32-libnghttp2 |
---|
| 162 | /sbin/ldconfig |
---|
[10358] | 163 | |
---|
[10631] | 164 | %postun -n compat32-libnghttp2 |
---|
| 165 | /sbin/ldconfig |
---|
| 166 | |
---|
| 167 | |
---|
[10358] | 168 | %check |
---|
| 169 | %if %{with test} |
---|
| 170 | # test the just built library instead of the system one, without using rpath |
---|
[10932] | 171 | export "LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH" |
---|
[10358] | 172 | make %{?_smp_mflags} check |
---|
| 173 | %endif |
---|
| 174 | |
---|
[10932] | 175 | %if %{with app} |
---|
[10358] | 176 | %files |
---|
| 177 | %{_bindir}/h2load |
---|
| 178 | %{_bindir}/nghttp |
---|
| 179 | %{_bindir}/nghttpd |
---|
| 180 | %{_bindir}/nghttpx |
---|
| 181 | %{_datadir}/nghttp2 |
---|
| 182 | %{_mandir}/man1/h2load.1* |
---|
| 183 | %{_mandir}/man1/nghttp.1* |
---|
| 184 | %{_mandir}/man1/nghttpd.1* |
---|
| 185 | %{_mandir}/man1/nghttpx.1* |
---|
[10932] | 186 | %endif |
---|
[10358] | 187 | |
---|
| 188 | %files -n libnghttp2 |
---|
| 189 | %{_libdir}/libnghttp2*.so.* |
---|
[10932] | 190 | %{_datadir}/%{name}/fetch-ocsp-response |
---|
[10358] | 191 | %{!?_licensedir:%global license %%doc} |
---|
| 192 | %license COPYING |
---|
| 193 | |
---|
| 194 | %files -n libnghttp2-devel |
---|
| 195 | %{_includedir}/nghttp2 |
---|
| 196 | %{_libdir}/pkgconfig/libnghttp2*.pc |
---|
| 197 | %{_libdir}/libnghttp2*.so |
---|
| 198 | %doc README.rst |
---|
| 199 | |
---|
[10631] | 200 | %if %{build_compat32} |
---|
| 201 | %files -n compat32-libnghttp2 |
---|
| 202 | %{_libdir}/libnghttp2*.so.* |
---|
| 203 | %{!?_licensedir:%global license %%doc} |
---|
| 204 | %license COPYING |
---|
[10358] | 205 | |
---|
[10631] | 206 | %files -n compat32-libnghttp2-devel |
---|
| 207 | %{_includedir}/nghttp2 |
---|
| 208 | %{_libdir}/pkgconfig/libnghttp2*.pc |
---|
| 209 | %{_libdir}/libnghttp2*.so |
---|
| 210 | %doc README.rst |
---|
| 211 | %endif |
---|
| 212 | |
---|
[10358] | 213 | %changelog |
---|
[11061] | 214 | * Mon May 1 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.22.0-1 |
---|
| 215 | - new upstream release. |
---|
| 216 | |
---|
[10932] | 217 | * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.0-1 |
---|
| 218 | - new upstream release. |
---|
| 219 | - disabled to build apps as default. |
---|
| 220 | |
---|
[10851] | 221 | * Wed Dec 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.17.0-1 |
---|
| 222 | - new upstream release. |
---|
| 223 | |
---|
[10631] | 224 | * Sat Jul 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-2 |
---|
| 225 | - added compat32-* packages. |
---|
| 226 | |
---|
[10559] | 227 | * Thu Jul 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-1 |
---|
| 228 | - new upstream release. |
---|
| 229 | |
---|
[10358] | 230 | * Tue Jun 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.11.1-2 |
---|
| 231 | - initial build for Vne Linux. |
---|
| 232 | |
---|
| 233 | * Sun May 29 2016 Kamil Dudka <kdudka@redhat.com> 1.11.1-1 |
---|
| 234 | - update to the latest upstream release |
---|
| 235 | |
---|
| 236 | * Thu May 26 2016 Kamil Dudka <kdudka@redhat.com> 1.11.0-1 |
---|
| 237 | - update to the latest upstream release |
---|
| 238 | |
---|
| 239 | * Mon Apr 25 2016 Kamil Dudka <kdudka@redhat.com> 1.10.0-1 |
---|
| 240 | - update to the latest upstream release |
---|
| 241 | |
---|
| 242 | * Sun Apr 03 2016 Kamil Dudka <kdudka@redhat.com> 1.9.2-1 |
---|
| 243 | - update to the latest upstream release |
---|
| 244 | |
---|
| 245 | * Tue Mar 29 2016 Kamil Dudka <kdudka@redhat.com> 1.9.1-1 |
---|
| 246 | - update to the latest upstream release |
---|
| 247 | |
---|
| 248 | * Thu Feb 25 2016 Kamil Dudka <kdudka@redhat.com> 1.8.0-1 |
---|
| 249 | - update to the latest upstream release |
---|
| 250 | |
---|
| 251 | * Thu Feb 11 2016 Kamil Dudka <kdudka@redhat.com> 1.7.1-1 |
---|
| 252 | - update to the latest upstream release (fixes CVE-2016-1544) |
---|
| 253 | |
---|
| 254 | * Fri Feb 05 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-3 |
---|
| 255 | - make the package compile with gcc-6 |
---|
| 256 | |
---|
| 257 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2 |
---|
| 258 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 259 | |
---|
| 260 | * Mon Jan 25 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-1 |
---|
| 261 | - update to the latest upstream release |
---|
| 262 | |
---|
| 263 | * Fri Dec 25 2015 Kamil Dudka <kdudka@redhat.com> 1.6.0-1 |
---|
| 264 | - update to the latest upstream release (fixes CVE-2015-8659) |
---|
| 265 | |
---|
| 266 | * Thu Nov 26 2015 Kamil Dudka <kdudka@redhat.com> 1.5.0-1 |
---|
| 267 | - update to the latest upstream release |
---|
| 268 | |
---|
| 269 | * Mon Oct 26 2015 Kamil Dudka <kdudka@redhat.com> 1.4.0-1 |
---|
| 270 | - update to the latest upstream release |
---|
| 271 | |
---|
| 272 | * Thu Sep 24 2015 Kamil Dudka <kdudka@redhat.com> 1.3.4-1 |
---|
| 273 | - update to the latest upstream release |
---|
| 274 | |
---|
| 275 | * Wed Sep 23 2015 Kamil Dudka <kdudka@redhat.com> 1.3.3-1 |
---|
| 276 | - update to the latest upstream release |
---|
| 277 | |
---|
| 278 | * Wed Sep 16 2015 Kamil Dudka <kdudka@redhat.com> 1.3.2-1 |
---|
| 279 | - update to the latest upstream release |
---|
| 280 | |
---|
| 281 | * Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 1.3.1-1 |
---|
| 282 | - update to the latest upstream release |
---|
| 283 | |
---|
| 284 | * Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> 1.3.0-1 |
---|
| 285 | - update to the latest upstream release |
---|
| 286 | |
---|
| 287 | * Mon Aug 17 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1 |
---|
| 288 | - update to the latest upstream release |
---|
| 289 | |
---|
| 290 | * Sun Aug 09 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1 |
---|
| 291 | - update to the latest upstream release |
---|
| 292 | |
---|
| 293 | * Wed Jul 15 2015 Kamil Dudka <kdudka@redhat.com> 1.1.1-1 |
---|
| 294 | - update to the latest upstream release |
---|
| 295 | |
---|
| 296 | * Tue Jun 30 2015 Kamil Dudka <kdudka@redhat.com> 1.0.5-1 |
---|
| 297 | - packaged for Fedora (#1237247) |
---|