2012-10-03 11:47:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package libmicrohttpd
|
|
|
|
#
|
2017-03-08 14:17:50 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-10-03 11:47:01 +02:00
|
|
|
# Copyright (c) 2010,2011,2012 Stephan Kleine
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-11-16 17:07:59 +01:00
|
|
|
%global libmicrohttpd libmicrohttpd12
|
2010-07-27 15:56:42 +02:00
|
|
|
Name: libmicrohttpd
|
2017-05-29 11:37:44 +02:00
|
|
|
Version: 0.9.55
|
2012-10-03 11:47:01 +02:00
|
|
|
Release: 0
|
2013-06-06 08:50:50 +02:00
|
|
|
Summary: Small Embeddable HTTP Server Library
|
2017-05-15 13:57:40 +02:00
|
|
|
# Some internal tests are licenced as GPL-3.0+ - they are only used in
|
|
|
|
# check phase and not shipped further
|
|
|
|
License: LGPL-2.1+ and GPL-3.0+
|
2013-06-06 08:50:50 +02:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
2015-10-03 16:39:51 +02:00
|
|
|
Url: https://www.gnu.org/software/libmicrohttpd/
|
2017-04-18 12:55:44 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{name}&download=1#/%{name}.keyring
|
2014-04-28 09:24:27 +02:00
|
|
|
# PATCH-WORKAROUND-OPENSUSE: the threads have a problem deadlocking (in OBS)
|
|
|
|
Patch1: disable-stalling-test.patch
|
2014-05-08 16:01:03 +02:00
|
|
|
Patch2: libmicrohttpd_test_data.patch
|
2015-12-05 10:40:35 +01:00
|
|
|
BuildRequires: curl
|
|
|
|
BuildRequires: file-devel
|
2010-07-27 15:56:42 +02:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.2.4
|
2014-04-25 12:40:05 +02:00
|
|
|
BuildRequires: libtool
|
2015-12-05 10:40:35 +01:00
|
|
|
BuildRequires: makeinfo
|
2014-04-25 12:40:05 +02:00
|
|
|
BuildRequires: openssl-devel
|
2016-06-03 10:37:38 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-12-20 15:47:22 +01:00
|
|
|
BuildRequires: socat
|
2016-04-14 21:07:46 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libtasn1)
|
2010-07-27 15:56:42 +02:00
|
|
|
|
2010-02-20 18:30:23 +01:00
|
|
|
%description
|
2014-04-25 12:40:05 +02:00
|
|
|
GNU libmicrohttpd is a small C library that is supposed to make it easy to run
|
|
|
|
an HTTP server as part of another application. GNU libmicrohttpd is free software
|
|
|
|
and part of the GNU project. Key features that distinguish libmicrohttpd from
|
2010-07-27 15:56:42 +02:00
|
|
|
other projects are:
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
* C library: fast and small
|
|
|
|
* API is simple, expressive and fully reentrant
|
|
|
|
* Implementation is http 1.1 compliant
|
|
|
|
* HTTP server can listen on multiple ports
|
|
|
|
* Support for IPv6
|
|
|
|
* Support for incremental processing of POST data
|
|
|
|
* Creates binary of only 30k (without TLS/SSL support)
|
|
|
|
* Three different threading models
|
2014-04-25 12:40:05 +02:00
|
|
|
* Supported platforms include GNU/Linux, FreeBSD, OpenBSD, NetBSD, OS X, W32,
|
2010-07-27 15:56:42 +02:00
|
|
|
Symbian and z/OS
|
2010-02-20 18:30:23 +01:00
|
|
|
* Optional support for SSL3 and TLS (requires libgcrypt)
|
|
|
|
|
2014-04-25 12:40:05 +02:00
|
|
|
libmicrohttpd was started because the author needed an easy way to add a concurrent
|
|
|
|
HTTP server to other projects. Existing alternatives were either non-free, not
|
|
|
|
reentrant, standalone, of terrible code quality or a combination thereof. Do not
|
|
|
|
use libmicrohttpd if you are looking for a standalone http server, there are many
|
|
|
|
other projects out there that provide that kind of functionality already. However,
|
|
|
|
if you want to be able to serve simple WWW pages from within your C or C++
|
2010-07-27 15:56:42 +02:00
|
|
|
application, check it out.
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2013-10-03 15:36:19 +02:00
|
|
|
%package -n %{libmicrohttpd}
|
|
|
|
Summary: Small embeddable http server library
|
2017-05-15 13:57:40 +02:00
|
|
|
License: LGPL-2.1+
|
2016-04-14 21:07:46 +02:00
|
|
|
Group: System/Libraries
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2013-10-03 15:36:19 +02:00
|
|
|
%description -n %{libmicrohttpd}
|
|
|
|
Shared library for %{name} (%{summary}).
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
%package devel
|
2014-04-25 12:40:05 +02:00
|
|
|
Summary: Small Embeddable HTTP Server Library
|
2017-05-15 13:57:40 +02:00
|
|
|
License: LGPL-2.1+
|
2014-04-25 12:40:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-10-03 15:36:19 +02:00
|
|
|
Requires: %{libmicrohttpd} = %{version}
|
2016-06-03 10:37:38 +02:00
|
|
|
Requires: pkgconfig
|
2016-04-14 21:07:46 +02:00
|
|
|
Requires: pkgconfig(gnutls)
|
2013-06-06 08:50:50 +02:00
|
|
|
Requires(post): info
|
2015-04-13 14:18:25 +02:00
|
|
|
Requires(preun): info
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
%description devel
|
2013-10-03 15:36:19 +02:00
|
|
|
Headers, pkg-config files, so link and other development files for %{name}
|
|
|
|
(%{summary}).
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-04-14 21:07:46 +02:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2013-06-06 10:16:27 +02:00
|
|
|
|
2010-02-20 18:30:23 +01:00
|
|
|
%build
|
2014-04-25 12:40:05 +02:00
|
|
|
%configure \
|
2015-11-16 17:07:59 +01:00
|
|
|
--enable-bauth \
|
|
|
|
--enable-dauth \
|
|
|
|
--enable-epoll \
|
|
|
|
--enable-messages \
|
2015-09-19 08:07:44 +02:00
|
|
|
--enable-postprocessor \
|
2015-11-16 17:07:59 +01:00
|
|
|
--enable-https \
|
|
|
|
--disable-static \
|
|
|
|
--disable-examples \
|
|
|
|
--enable-curl
|
2014-04-25 12:40:05 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
%install
|
2016-04-14 21:07:46 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2014-04-25 12:40:05 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2013-05-16 09:49:21 +02:00
|
|
|
%check
|
2015-12-05 10:40:35 +01:00
|
|
|
# Paralel execution of tests fail
|
2017-03-08 14:17:50 +01:00
|
|
|
# Tests randomly fail so keep them in log for inspection rather than for valid
|
|
|
|
# verification of anything.
|
|
|
|
make -j1 check || :
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2013-10-03 15:36:19 +02:00
|
|
|
%post -n %{libmicrohttpd} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libmicrohttpd} -p /sbin/ldconfig
|
2016-12-12 12:09:27 +01:00
|
|
|
|
2010-02-20 18:30:23 +01:00
|
|
|
%post devel
|
2010-03-15 09:57:24 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info%{ext_info}
|
2010-10-22 16:35:08 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd-tutorial.info%{ext_info}
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2015-04-13 14:18:25 +02:00
|
|
|
%preun devel
|
2010-03-15 09:57:24 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info%{ext_info}
|
2010-10-22 16:35:08 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd-tutorial.info%{ext_info}
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2013-10-03 15:36:19 +02:00
|
|
|
%files -n %{libmicrohttpd}
|
2010-02-20 18:30:23 +01:00
|
|
|
%defattr(-,root,root)
|
2013-10-03 15:36:19 +02:00
|
|
|
%{_libdir}/%{name}.so.*
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-09-28 16:12:37 +02:00
|
|
|
%doc ChangeLog
|
2010-02-20 18:30:23 +01:00
|
|
|
%{_includedir}/microhttpd.h
|
2013-05-16 09:49:21 +02:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2016-04-14 21:07:46 +02:00
|
|
|
%{_infodir}/%{name}*.info%{ext_info}
|
|
|
|
%{_mandir}/man3/%{name}.3%{ext_man}
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2012-09-28 16:12:37 +02:00
|
|
|
%changelog
|