[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 |
---|
[11610] | 11 | Version: 1.31.0 |
---|
| 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} |
---|
[11294] | 35 | BuildRequires: c-ares-devel |
---|
[10932] | 36 | BuildRequires: jansson-devel |
---|
| 37 | BuildRequires: libxml2-devel |
---|
| 38 | %endif |
---|
[10358] | 39 | |
---|
| 40 | %description |
---|
| 41 | This package contains the HTTP/2 client, server and proxy programs. |
---|
| 42 | |
---|
| 43 | %description -l ja |
---|
| 44 | This package contains the HTTP/2 client, server and proxy programs. |
---|
| 45 | このパッケージにはHTTP/2クライアント・サーバ。プロキシのプログラム |
---|
| 46 | が含まれています。 |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %package -n libnghttp2 |
---|
| 50 | Summary: A library implementing the HTTP/2 protocol |
---|
| 51 | Summary(ja): HTTP/2ライブラリ |
---|
| 52 | Group: Development/Libraries |
---|
| 53 | |
---|
| 54 | %description -n libnghttp2 |
---|
| 55 | libnghttp2 is a library implementing the Hypertext Transfer Protocol |
---|
| 56 | version 2 (HTTP/2) protocol in C. |
---|
| 57 | |
---|
| 58 | %description -l ja -n libnghttp2 |
---|
| 59 | libnghttp2はHypertext Transfer Protocol version 2 (HTTP/2)をC言語で |
---|
| 60 | 実装したライブラリです。 |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %package -n libnghttp2-devel |
---|
| 64 | Summary: Files needed for building applications with libnghttp2 |
---|
| 65 | Summary(ja): libnghttp2を利用するアプリケーションをビルドするために必要なファイル |
---|
| 66 | Group: Development/Libraries |
---|
| 67 | Requires: libnghttp2%{?_isa} = %{version}-%{release} |
---|
| 68 | Requires: pkgconfig |
---|
| 69 | |
---|
| 70 | %description -n libnghttp2-devel |
---|
| 71 | The libnghttp2-devel package includes libraries and header files needed |
---|
| 72 | for building applications with libnghttp2. |
---|
| 73 | |
---|
| 74 | %description -l ja -n libnghttp2-devel |
---|
| 75 | libnghttp2-develパッケージにはlibnghttp2を利用するアプリケーション |
---|
| 76 | をビルドするために必要となるライブラリ・ヘッダファイルが含まれていま |
---|
| 77 | す。 |
---|
| 78 | |
---|
| 79 | |
---|
[10631] | 80 | %package -n compat32-libnghttp2 |
---|
| 81 | Summary: A library implementing the HTTP/2 protocol |
---|
| 82 | Summary(ja): HTTP/2ライブラリ |
---|
| 83 | Group: Development/Libraries |
---|
| 84 | |
---|
| 85 | %description -n compat32-libnghttp2 |
---|
| 86 | libnghttp2 is a library implementing the Hypertext Transfer Protocol |
---|
| 87 | version 2 (HTTP/2) protocol in C. |
---|
| 88 | |
---|
| 89 | %description -l ja -n compat32-libnghttp2 |
---|
| 90 | libnghttp2はHypertext Transfer Protocol version 2 (HTTP/2)をC言語で |
---|
| 91 | 実装したライブラリです。 |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %package -n compat32-libnghttp2-devel |
---|
| 95 | Summary: Files needed for building applications with libnghttp2 |
---|
| 96 | Summary(ja): libnghttp2を利用するアプリケーションをビルドするために必要なファイル |
---|
| 97 | Group: Development/Libraries |
---|
| 98 | Requires: compat32-libnghttp2%{?_isa} = %{version}-%{release} |
---|
| 99 | Requires: pkgconfig |
---|
| 100 | |
---|
| 101 | %description -n compat32-libnghttp2-devel |
---|
| 102 | The libnghttp2-devel package includes libraries and header files needed |
---|
| 103 | for building applications with libnghttp2. |
---|
| 104 | |
---|
| 105 | %description -l ja -n compat32-libnghttp2-devel |
---|
| 106 | libnghttp2-develパッケージにはlibnghttp2を利用するアプリケーション |
---|
| 107 | をビルドするために必要となるライブラリ・ヘッダファイルが含まれていま |
---|
| 108 | す。 |
---|
| 109 | |
---|
| 110 | |
---|
[10358] | 111 | %prep |
---|
| 112 | %setup -q |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %build |
---|
| 116 | LIBEV_CFLAGS=`pkg-config --cflags libev` |
---|
| 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 |
---|
[11610] | 217 | * Fri Mar 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.31.0-1 |
---|
| 218 | - new upstream release. |
---|
| 219 | |
---|
[11349] | 220 | * Sun Jan 07 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.29.0-2 |
---|
| 221 | - rebuilt with libboost-1.66.0. |
---|
| 222 | |
---|
[11294] | 223 | * Sun Dec 24 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.29.0-1 |
---|
| 224 | - new upstream release. |
---|
| 225 | - enabled to build apps as default. |
---|
| 226 | |
---|
[11061] | 227 | * Mon May 1 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.22.0-1 |
---|
| 228 | - new upstream release. |
---|
| 229 | |
---|
[10932] | 230 | * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.0-1 |
---|
| 231 | - new upstream release. |
---|
| 232 | - disabled to build apps as default. |
---|
| 233 | |
---|
[10851] | 234 | * Wed Dec 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.17.0-1 |
---|
| 235 | - new upstream release. |
---|
| 236 | |
---|
[10631] | 237 | * Sat Jul 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-2 |
---|
| 238 | - added compat32-* packages. |
---|
| 239 | |
---|
[10559] | 240 | * Thu Jul 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.0-1 |
---|
| 241 | - new upstream release. |
---|
| 242 | |
---|
[10358] | 243 | * Tue Jun 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.11.1-2 |
---|
| 244 | - initial build for Vne Linux. |
---|
| 245 | |
---|
| 246 | * Sun May 29 2016 Kamil Dudka <kdudka@redhat.com> 1.11.1-1 |
---|
| 247 | - update to the latest upstream release |
---|
| 248 | |
---|
| 249 | * Thu May 26 2016 Kamil Dudka <kdudka@redhat.com> 1.11.0-1 |
---|
| 250 | - update to the latest upstream release |
---|
| 251 | |
---|
| 252 | * Mon Apr 25 2016 Kamil Dudka <kdudka@redhat.com> 1.10.0-1 |
---|
| 253 | - update to the latest upstream release |
---|
| 254 | |
---|
| 255 | * Sun Apr 03 2016 Kamil Dudka <kdudka@redhat.com> 1.9.2-1 |
---|
| 256 | - update to the latest upstream release |
---|
| 257 | |
---|
| 258 | * Tue Mar 29 2016 Kamil Dudka <kdudka@redhat.com> 1.9.1-1 |
---|
| 259 | - update to the latest upstream release |
---|
| 260 | |
---|
| 261 | * Thu Feb 25 2016 Kamil Dudka <kdudka@redhat.com> 1.8.0-1 |
---|
| 262 | - update to the latest upstream release |
---|
| 263 | |
---|
| 264 | * Thu Feb 11 2016 Kamil Dudka <kdudka@redhat.com> 1.7.1-1 |
---|
| 265 | - update to the latest upstream release (fixes CVE-2016-1544) |
---|
| 266 | |
---|
| 267 | * Fri Feb 05 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-3 |
---|
| 268 | - make the package compile with gcc-6 |
---|
| 269 | |
---|
| 270 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2 |
---|
| 271 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 272 | |
---|
| 273 | * Mon Jan 25 2016 Kamil Dudka <kdudka@redhat.com> 1.7.0-1 |
---|
| 274 | - update to the latest upstream release |
---|
| 275 | |
---|
| 276 | * Fri Dec 25 2015 Kamil Dudka <kdudka@redhat.com> 1.6.0-1 |
---|
| 277 | - update to the latest upstream release (fixes CVE-2015-8659) |
---|
| 278 | |
---|
| 279 | * Thu Nov 26 2015 Kamil Dudka <kdudka@redhat.com> 1.5.0-1 |
---|
| 280 | - update to the latest upstream release |
---|
| 281 | |
---|
| 282 | * Mon Oct 26 2015 Kamil Dudka <kdudka@redhat.com> 1.4.0-1 |
---|
| 283 | - update to the latest upstream release |
---|
| 284 | |
---|
| 285 | * Thu Sep 24 2015 Kamil Dudka <kdudka@redhat.com> 1.3.4-1 |
---|
| 286 | - update to the latest upstream release |
---|
| 287 | |
---|
| 288 | * Wed Sep 23 2015 Kamil Dudka <kdudka@redhat.com> 1.3.3-1 |
---|
| 289 | - update to the latest upstream release |
---|
| 290 | |
---|
| 291 | * Wed Sep 16 2015 Kamil Dudka <kdudka@redhat.com> 1.3.2-1 |
---|
| 292 | - update to the latest upstream release |
---|
| 293 | |
---|
| 294 | * Mon Sep 14 2015 Kamil Dudka <kdudka@redhat.com> 1.3.1-1 |
---|
| 295 | - update to the latest upstream release |
---|
| 296 | |
---|
| 297 | * Mon Aug 31 2015 Kamil Dudka <kdudka@redhat.com> 1.3.0-1 |
---|
| 298 | - update to the latest upstream release |
---|
| 299 | |
---|
| 300 | * Mon Aug 17 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1 |
---|
| 301 | - update to the latest upstream release |
---|
| 302 | |
---|
| 303 | * Sun Aug 09 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1 |
---|
| 304 | - update to the latest upstream release |
---|
| 305 | |
---|
| 306 | * Wed Jul 15 2015 Kamil Dudka <kdudka@redhat.com> 1.1.1-1 |
---|
| 307 | - update to the latest upstream release |
---|
| 308 | |
---|
| 309 | * Tue Jun 30 2015 Kamil Dudka <kdudka@redhat.com> 1.0.5-1 |
---|
| 310 | - packaged for Fedora (#1237247) |
---|