- Version bump to 0.9.34:

* Drop tls patch seems to build fine
  * Remove code for other distros we build against 13.1+ anywhere
    within obs and it just clutters the spec.
  * Explicitely name switches in configure to make sure things go
    the desired way.
  * Fix install of libmicrohttpspdy pc file.
  + Added support for TCP FASTOPEN.
  + Removed dependency on plibc for simpler compilation for W32.
  + Added configure option "--disable-pipes" to use socketpairs
    instead of pipes for signalling to child threads. Pipes are
    always disabled on W32.
  + Corrected some uses of 'int' vs. 'size_t'.
  + MHD_USE_DUAL_STACK in libmicrohttpd currently just *inhibits
    setting* the IPV6_V6ONLY socket option, but per Microsoft's
    documentation the default on Windows is that this is enabled, thus
    MHD_USE_DUAL_STACK will not work (since it leaves the
    default). libmicrohttpd should probably just unconditionally set
    IPV6_V6ONLY to the desired value when the option is available.
  + Allow Keep-Alive with HTTP 1.0 (if explicitly requested),
    and automatically set "Connection: Keep-Alive" in response
    in this case as well.
  + Adding explicit annotations to hide symbols that are not for
    export in the C code (gcc 4.0 or higher only).
  + Adding a few lines to avoid warnings from picky compilers.
- Added patches:
  * libmicrohttpd-0.9.34-spdy-pc.patch
- Dropped patches:
  * libmicrohttpd-drop-test_tls_options.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmicrohttpd?expand=0&rev=32
This commit is contained in:
Dirk Mueller 2014-04-25 10:40:05 +00:00 committed by Git OBS Bridge
parent 9a0ab82a97
commit 5248edd6e6
8 changed files with 95 additions and 115 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d9587e8497548f820650cd607daf3615ea3272435779378983032c570f1cd559
size 1104292

Binary file not shown.

View File

@ -0,0 +1,21 @@
diff -urN libmicrohttpd-0.9.34/configure.ac libmicrohttpd-0.9.34-spdy-pc/configure.ac
--- libmicrohttpd-0.9.34/configure.ac 2014-02-24 23:13:03.000000000 +0100
+++ libmicrohttpd-0.9.34-spdy-pc/configure.ac 2014-03-13 16:47:58.733989222 +0100
@@ -640,6 +640,7 @@
AC_CONFIG_FILES([
libmicrohttpd.pc
+libmicrospdy.pc
Makefile
contrib/Makefile
doc/Makefile
diff -urN libmicrohttpd-0.9.34/Makefile.am libmicrohttpd-0.9.34-spdy-pc/Makefile.am
--- libmicrohttpd-0.9.34/Makefile.am 2013-05-05 20:48:18.000000000 +0200
+++ libmicrohttpd-0.9.34-spdy-pc/Makefile.am 2014-03-13 16:35:04.883473986 +0100
@@ -3,5 +3,5 @@
EXTRA_DIST = acinclude.m4 libmicrohttpd.pc.in libmicrospdy.pc.in
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libmicrohttpd.pc
+pkgconfig_DATA = libmicrohttpd.pc libmicrospdy.pc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29a2bfd4fd2ddf60c756b8c283291a134898e3cc143843be421a040be1b25a88
size 1141536

Binary file not shown.

View File

@ -1,46 +0,0 @@
From: Michal Vyskocil <mvyskocil@suse.com>
Subject: Drop test_tls_options
test_tls_options fails in OBS, but not in local build. So lets skip it from OBS
builds.
/usr/bin/make check-TESTS
make[5]: Entering directory `/home/abuild/rpmbuild/BUILD/libmicrohttpd-0.9.27/src/testcurl/https'
curl version: libcurl/7.30.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.25 libssh2/1.4.3
The following handshake should fail (and print an error message)...
curl_easy_perform failed: `SSL connect error'
Fatal error in GNU libmicrohttpd daemon.c:2717: Failed to join a thread
/bin/sh: line 5: 15991 Aborted ${dir}$tst
FAIL: test_tls_options
Index: libmicrohttpd-0.9.33/src/testcurl/https/Makefile.am
===================================================================
--- libmicrohttpd-0.9.33.orig/src/testcurl/https/Makefile.am
+++ libmicrohttpd-0.9.33/src/testcurl/https/Makefile.am
@@ -30,10 +30,8 @@ check_PROGRAMS = \
EXTRA_DIST = cert.pem key.pem tls_test_keys.h tls_test_common.h
TESTS = \
- test_tls_options \
test_https_multi_daemon \
test_https_get \
- test_https_sni \
test_https_get_select \
test_https_get_parallel \
test_https_get_parallel_threads \
Index: libmicrohttpd-0.9.33/src/testcurl/https/Makefile.in
===================================================================
--- libmicrohttpd-0.9.33.orig/src/testcurl/https/Makefile.in
+++ libmicrohttpd-0.9.33/src/testcurl/https/Makefile.in
@@ -58,8 +58,8 @@ check_PROGRAMS = test_tls_options$(EXEEX
test_https_get_parallel_threads$(EXEEXT) \
test_https_session_info$(EXEEXT) test_https_time_out$(EXEEXT) \
test_empty_response$(EXEEXT)
-TESTS = test_tls_options$(EXEEXT) test_https_multi_daemon$(EXEEXT) \
- test_https_get$(EXEEXT) test_https_sni$(EXEEXT) \
+TESTS = test_https_multi_daemon$(EXEEXT) \
+ test_https_get$(EXEEXT) \
test_https_get_select$(EXEEXT) \
test_https_get_parallel$(EXEEXT) \
test_https_get_parallel_threads$(EXEEXT) \

View File

@ -4,6 +4,40 @@ Thu Apr 24 07:32:10 UTC 2014 - dmueller@suse.com
- remove dependency on gpg-offline, source validator already - remove dependency on gpg-offline, source validator already
does that does that
-------------------------------------------------------------------
Mon Apr 21 06:44:06 UTC 2014 - tchvatal@suse.com
- Version bump to 0.9.34:
* Drop tls patch seems to build fine
* Remove code for other distros we build against 13.1+ anywhere
within obs and it just clutters the spec.
* Explicitely name switches in configure to make sure things go
the desired way.
* Fix install of libmicrohttpspdy pc file.
+ Added support for TCP FASTOPEN.
+ Removed dependency on plibc for simpler compilation for W32.
+ Added configure option "--disable-pipes" to use socketpairs
instead of pipes for signalling to child threads. Pipes are
always disabled on W32.
+ Corrected some uses of 'int' vs. 'size_t'.
+ MHD_USE_DUAL_STACK in libmicrohttpd currently just *inhibits
setting* the IPV6_V6ONLY socket option, but per Microsoft's
documentation the default on Windows is that this is enabled, thus
MHD_USE_DUAL_STACK will not work (since it leaves the
default). libmicrohttpd should probably just unconditionally set
IPV6_V6ONLY to the desired value when the option is available.
+ Allow Keep-Alive with HTTP 1.0 (if explicitly requested),
and automatically set "Connection: Keep-Alive" in response
in this case as well.
+ Adding explicit annotations to hide symbols that are not for
export in the C code (gcc 4.0 or higher only).
+ Adding a few lines to avoid warnings from picky compilers.
- Added patches:
* libmicrohttpd-0.9.34-spdy-pc.patch
- Dropped patches:
* libmicrohttpd-drop-test_tls_options.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 4 12:42:30 UTC 2014 - coolo@suse.com Tue Mar 4 12:42:30 UTC 2014 - coolo@suse.com

View File

@ -19,32 +19,29 @@
%global libmicrohttpd libmicrohttpd10 %global libmicrohttpd libmicrohttpd10
%global libmicrospdy libmicrospdy0 %global libmicrospdy libmicrospdy0
Name: libmicrohttpd Name: libmicrohttpd
Version: 0.9.33 Version: 0.9.34
Release: 0 Release: 0
Summary: Small Embeddable HTTP Server Library Summary: Small Embeddable HTTP Server Library
License: LGPL-2.1+ License: LGPL-2.1+
Group: Productivity/Networking/Web/Servers Group: Productivity/Networking/Web/Servers
Url: http://gnunet.org/libmicrohttpd/ Url: http://gnunet.org/libmicrohttpd/
Source0: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz Source0: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz
Source1: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz.sig Source1: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz.sig
Source2: libmicrohttpd.keyring Source2: libmicrohttpd.keyring
#PATCH-FIX-OPENSUSE: test_tls_options fails when running in OBS, so lets drop that one # PATCH-FIX-UPSTREAM: install spdy pc file, from Fedora and already upstream applied
Patch0: libmicrohttpd-drop-test_tls_options.patch Patch0: libmicrohttpd-0.9.34-spdy-pc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build # Autotools only due to above patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
BuildRequires: libgcrypt-devel >= 1.2.4 BuildRequires: libgcrypt-devel >= 1.2.4
BuildRequires: libtasn1-devel
%if 0%{?suse_version}
BuildRequires: libgnutls-devel BuildRequires: libgnutls-devel
BuildRequires: libopenssl-devel BuildRequires: libtasn1-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pkg-config BuildRequires: pkg-config
%else BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gnutls-devel
BuildRequires: pkgconfig
%endif
%description %description
GNU libmicrohttpd is a small C library that is supposed to make it easy to run GNU libmicrohttpd is a small C library that is supposed to make it easy to run
@ -73,7 +70,6 @@ if you want to be able to serve simple WWW pages from within your C or C++
application, check it out. application, check it out.
%package -n %{libmicrohttpd} %package -n %{libmicrohttpd}
Summary: Small embeddable http server library Summary: Small embeddable http server library
Group: System/libraries Group: System/libraries
@ -81,7 +77,6 @@ Group: System/libraries
Shared library for %{name} (%{summary}). Shared library for %{name} (%{summary}).
%package -n %{libmicrospdy} %package -n %{libmicrospdy}
Summary: Small embeddable http server library Summary: Small embeddable http server library
Group: System/libraries Group: System/libraries
@ -94,20 +89,20 @@ and implementation of SPDY server. libmicrospdy currently only implements
partially version 3 of SPDY. partially version 3 of SPDY.
%package devel %package devel
Summary: Small Embeddable HTTP Server Library
Group: Development/Libraries/C and C++
Requires: %{libmicrohttpd} = %{version} Requires: %{libmicrohttpd} = %{version}
Requires(post): info Requires(post): info
Requires(postun): info Requires(postun): info
Summary: Small Embeddable HTTP Server Library
Group: Development/Libraries/C and C++
%description devel %description devel
Headers, pkg-config files, so link and other development files for %{name} Headers, pkg-config files, so link and other development files for %{name}
(%{summary}). (%{summary}).
%package -n libmicrospdy-devel %package -n libmicrospdy-devel
Requires: %{libmicrospdy} = %{version}
Summary: Small Embeddable HTTP Server Library Summary: Small Embeddable HTTP Server Library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{libmicrospdy} = %{version}
%description -n libmicrospdy-devel %description -n libmicrospdy-devel
Headers for libmicrospdy (%{summary}). Headers for libmicrospdy (%{summary}).
@ -124,23 +119,26 @@ localhost.
%prep %prep
%setup -q %setup -q
#XXX: test fail inside OBS only
%if 0%{?opensuse_bs}
%patch0 -p1 %patch0 -p1
%endif autoreconf -vi
%build %build
%configure --disable-static \ %configure \
--enable-curl --enable-bauth --enable-dauth \
%__make %{?_smp_mflags} --enable-epoll \
--enable-messages --enable-postprocessor \
--enable-https --enable-gnutls \
--disable-static \
--enable-curl \
--enable-spdy
make %{?_smp_mflags}
%install %install
make install DESTDIR="%buildroot" make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -name "*.la" -delete find %{buildroot} -type f -name "*.la" -delete -print
%check %check
%__make -d -j1 check make -d -j1 check
%post -n %{libmicrohttpd} -p /sbin/ldconfig %post -n %{libmicrohttpd} -p /sbin/ldconfig
@ -151,36 +149,13 @@ find %{buildroot} -name "*.la" -delete
%postun -n %{libmicrospdy} -p /sbin/ldconfig %postun -n %{libmicrospdy} -p /sbin/ldconfig
%post devel %post devel
%if 0%{?fedora_version}
/sbin/install-info --info-dir=%{_infodir} --info-file=%{_infodir}/microhttpd.info%{ext_info}
/sbin/install-info --info-dir=%{_infodir} --info-file=%{_infodir}/microhttpd-tutorial.info%{ext_info}
%endif
%if 0%{?mandriva_version}
%_install_info libmicrohttpd.info
%_install_info libmicrohttpd-tutorial.info
%endif
%if 0%{?suse_version}
%install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info%{ext_info} %install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info%{ext_info}
%install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd-tutorial.info%{ext_info} %install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd-tutorial.info%{ext_info}
%endif
%postun devel %postun devel
%if 0%{?fedora_version} || 0%{?scientificlinux_version} || 0%{?centos_version}
/sbin/install-info --delete --info-dir=%{_infodir} --info-file=%{_infodir}/microhttpd.info%{ext_info}
/sbin/install-info --delete --info-dir=%{_infodir} --info-file=%{_infodir}/microhttpd-tutorial.info%{ext_info}
%endif
%if 0%{?mandriva_version}
%_remove_install_info libmicrohttpd.info
%_remove_install_info libmicrohttpd-tutorial.info
%endif
%if 0%{?suse_version}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info%{ext_info} %install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd-tutorial.info%{ext_info} %install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd-tutorial.info%{ext_info}
%endif
%files -n %{libmicrohttpd} %files -n %{libmicrohttpd}
%defattr(-,root,root) %defattr(-,root,root)
@ -203,14 +178,10 @@ find %{buildroot} -name "*.la" -delete
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/microspdy.h %{_includedir}/microspdy.h
%{_libdir}/libmicrospdy.so %{_libdir}/libmicrospdy.so
%{_libdir}/pkgconfig/libmicrospdy.pc
%files -n microspdy2http %files -n microspdy2http
%defattr(-,root,root) %defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/microspdy2http %attr(0755,root,root) %{_bindir}/microspdy2http
# Do NOT delete this cause I need it for Fedora & Mandriva too!
%if 0%{?fedora_version} || 0%{?scientificlinux_version} || 0%{?centos_version}
%exclude %{_infodir}/dir
%endif
%changelog %changelog