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