]> git.pld-linux.org Git - packages/nghttp2.git/commitdiff
- new auto/th/nghttp2-0.1.0-0.20131016.1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Oct 2013 19:32:30 +0000 (21:32 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Oct 2013 19:32:30 +0000 (21:32 +0200)
nghttp2-test.patch [new file with mode: 0644]
nghttp2.spec [new file with mode: 0644]

diff --git a/nghttp2-test.patch b/nghttp2-test.patch
new file mode 100644 (file)
index 0000000..86872bc
--- /dev/null
@@ -0,0 +1,18 @@
+Let test succeed also on 32-bit builds, when sizeof(int) == sizeof(ssize_t)
+--- nghttp2-master/tests/nghttp2_session_test.c.orig   2013-10-12 10:02:37.000000000 +0200
++++ nghttp2-master/tests/nghttp2_session_test.c        2013-10-16 20:24:25.343834489 +0200
+@@ -3490,12 +3490,12 @@
+              NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
+              &sszval, sizeof(sszval)));
+-  intval = 100;
++  charval = 100;
+   CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT ==
+             nghttp2_session_set_option
+             (session,
+              NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
+-             &intval, sizeof(intval)));
++             &charval, sizeof(charval)));
+   nghttp2_session_del(session);
+ }
diff --git a/nghttp2.spec b/nghttp2.spec
new file mode 100644 (file)
index 0000000..5fb0d3b
--- /dev/null
@@ -0,0 +1,127 @@
+#
+# Conditional build:
+%bcond_without tests           # don't perform "make check"
+%bcond_without static_libs     # don't build static library
+
+Summary:       HTTP/2.0 C library
+Summary(pl.UTF-8):     Biblioteka C HTTP/2.0
+Name:          nghttp2
+Version:       0.1.0
+%define        snap    20131016
+Release:       0.%{snap}.1
+License:       MIT
+Group:         Libraries
+Source0:       https://github.com/tatsuhiro-t/nghttp2/archive/master/%{name}-%{snap}.tar.gz
+# Source0-md5: 95b817bc5fb09c75c66853fb44ce7f86
+Patch0:                %{name}-test.patch
+URL:           https://github.com/tatsuhiro-t/nghttp2
+%{?with_tests:BuildRequires:   CUnit >= 2.1}
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake
+BuildRequires: libevent-devel >= 2.0.8
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:2.2.6
+BuildRequires: libxml2-devel >= 1:2.7.7
+BuildRequires: openssl-devel >= 1.0.1
+BuildRequires: pkgconfig >= 1:0.20
+BuildRequires: python >= 1:2.6
+BuildRequires: spdylay-devel >= 1.0.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRequires: zlib-devel >= 1.2.3
+Requires:      libevent >= 2.0.8
+Requires:      libxml2 >= 1:2.7.7
+Requires:      openssl >= 1.0.1
+Requires:      spdylay >= 1.0.0
+Requires:      zlib >= 1.2.3
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is an experimental implementation of Hypertext Transfer Protocol
+version 2.0.
+
+%description -l pl.UTF-8
+Ta biblioteka jest eksperymentalną implementacją protokołu HTTP
+(Hypertext Transfer Protocol) w wersji 2.0.
+
+%package devel
+Summary:       Files needed for developing with libnghttp2
+Summary(pl.UTF-8):     Pliki niezbędne do tworzenia aplikacji z użyciem libnghttp2
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      zlib-devel >= 1.2.3
+
+%description devel
+Files needed for building applications with libnghttp2.
+
+%description devel -l pl.UTF-8
+Pliki niezbędne do tworzenia aplikacji z użyciem libnghttp2.
+
+%package static
+Summary:       Static libnghttp2 library
+Summary(pl.UTF-8):     Statyczna biblioteka libnghttp2
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libnghttp2 library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libnghttp2.
+
+%prep
+%setup -q -n %{name}-master
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       %{!?with_static_libs:--disable-static}
+
+%{__make}
+
+%if %{with tests}
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnghttp2.la
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/nghttp2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING README.rst
+%attr(755,root,root) %{_bindir}/nghttp
+%attr(755,root,root) %{_bindir}/nghttpd
+%attr(755,root,root) %{_bindir}/nghttpx
+%attr(755,root,root) %{_libdir}/libnghttp2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libnghttp2.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libnghttp2.so
+%{_includedir}/nghttp2
+%{_pkgconfigdir}/libnghttp2.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libnghttp2.a
+%endif
This page took 0.298544 seconds and 4 git commands to generate.