2012-10-03 11:47:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package libmicrohttpd
|
|
|
|
#
|
2019-02-11 09:16:09 +01:00
|
|
|
# Copyright (c) 2019 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-11-30 16:28:32 +01:00
|
|
|
%global sover 12
|
|
|
|
%global libname %{name}%{sover}
|
2010-07-27 15:56:42 +02:00
|
|
|
Name: libmicrohttpd
|
2019-02-11 09:16:09 +01:00
|
|
|
Version: 0.9.63
|
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
|
2018-02-26 20:40:55 +01:00
|
|
|
License: LGPL-2.1-or-later AND GPL-3.0-or-later
|
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
|
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
|
|
|
|
2017-11-30 16:28:32 +01:00
|
|
|
%package -n %{libname}
|
2013-10-03 15:36:19 +02:00
|
|
|
Summary: Small embeddable http server library
|
2018-02-26 20:40:55 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2016-04-14 21:07:46 +02:00
|
|
|
Group: System/Libraries
|
2010-02-20 18:30:23 +01:00
|
|
|
|
2017-11-30 16:28:32 +01:00
|
|
|
%description -n %{libname}
|
2013-10-03 15:36:19 +02:00
|
|
|
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
|
2018-02-26 20:40:55 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2014-04-25 12:40:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-11-30 16:28:32 +01:00
|
|
|
Requires: %{libname} = %{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
|
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
|
2017-11-30 16:28:32 +01:00
|
|
|
%make_install
|
2014-04-25 12:40:05 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2018-02-26 20:40:55 +01:00
|
|
|
rm -f %{buildroot}%{_infodir}/%{name}_performance_data.png
|
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
|
|
|
|
2017-11-30 16:28:32 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
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
|
|
|
|
2017-11-30 16:28:32 +01:00
|
|
|
%files -n %{libname}
|
2017-12-01 15:05:02 +01:00
|
|
|
%doc COPYING
|
2017-11-30 16:28:32 +01:00
|
|
|
%{_libdir}/%{name}.so.%{sover}*
|
2010-02-20 18:30:23 +01:00
|
|
|
|
|
|
|
%files devel
|
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
|