--- /dev/null
+--- libmicrohttpd-0.9.28/src/microhttpd/daemon.c.orig 2013-07-19 17:32:13.000000000 +0200
++++ libmicrohttpd-0.9.28/src/microhttpd/daemon.c 2013-07-19 20:31:23.474232117 +0200
+@@ -612,9 +612,11 @@
+ break;
+ }
+ }
++#if HAVE_MESSAGES
+ #if DEBUG_CONNECT
+ MHD_DLOG (daemon, "Maximum socket in select set: %d\n", *max_fd);
+ #endif
++#endif
+ return MHD_YES;
+ }
+
+@@ -3112,9 +3114,11 @@
+ int sk_flags = fcntl (socket_fd, F_GETFL);
+ if (0 != fcntl (socket_fd, F_SETFL, sk_flags | O_NONBLOCK))
+ {
++#if HAVE_MESSAGES
+ MHD_DLOG (daemon,
+ "Failed to make listen socket non-blocking: %s\n",
+ STRERROR (errno));
++#endif
+ if (0 != CLOSE (socket_fd))
+ MHD_PANIC ("close failed\n");
+ goto free_and_fail;
Summary: Embeded HTTP server library
Summary(pl.UTF-8): Biblioteka wbudowanego serwera HTTP
Name: libmicrohttpd
-Version: 0.9.27
+Version: 0.9.28
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
-# Source0-md5: a10496b7f1b495aaf6897584da52f51b
+# Source0-md5: 16c3cb66c839c6f929677471401a5b53
Patch0: %{name}-info.patch
+Patch1: %{name}-messages.patch
+Patch2: %{name}-link.patch
URL: http://www.gnu.org/software/libmicrohttpd/
BuildRequires: autoconf >= 2.61
BuildRequires: automake >= 1:1.10
BuildRequires: gnutls-devel >= 2.8.6
BuildRequires: libgcrypt-devel >= 1.2.4
BuildRequires: libtool
+# for microspdy
+BuildRequires: openssl-devel
BuildRequires: texinfo
%if %{with tests}
BuildRequires: curl-devel >= 7.16.4
Requires: %{name} = %{version}-%{release}
Requires: gnutls-devel >= 2.8.6
Requires: libgcrypt-devel >= 1.2.4
+Requires: openssl-devel
%description devel
Header files to develop libmicrohttpd applications.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/demo
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/microspdy2http
%attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.10
+%attr(755,root,root) %{_libdir}/libmicrospdy.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmicrospdy.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libmicrohttpd.so
+%attr(755,root,root) %{_libdir}/libmicrospdy.so
%{_libdir}/libmicrohttpd.la
+%{_libdir}/libmicrospdy.la
%{_includedir}/microhttpd.h
+%{_includedir}/microspdy.h
%{_infodir}/libmicrohttpd.info*
%{_infodir}/libmicrohttpd-tutorial.info*
%{_mandir}/man3/libmicrohttpd.3*
%files static
%defattr(644,root,root,755)
%{_libdir}/libmicrohttpd.a
+%{_libdir}/libmicrospdy.a