/
libmicrohttpd.spec
86 lines (73 loc) · 2.58 KB
/
libmicrohttpd.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
%define sname microhttpd
%define major 12
%define libname %mklibname %{sname} %major
%define devname %mklibname -d %{sname}
%global optflags %{optflags} -Oz
%define _disable_rebuild_configure 1
Summary: Small C library to run an HTTP server
Name: libmicrohttpd
Version: 1.0.1
Release: 1
License: GPLv2+
Group: System/Libraries
Url: http://gnunet.org/libmicrohttpd/
Source0: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: pkgconfig(zlib)
BuildRequires: gettext-devel
BuildRequires: texinfo
%description
libmicrohttpd is a small C library that is supposed to make it easy to
run an HTTP server as part of another application. Key features that
distinguish libmicrohttpd from other projects are:
* C library: fast and small
* API is simple, expressive and fully reentrant
* Implementation is (largely) http 1.1 compliant
* HTTP server can listen on multiple ports
* Support for IPv6
* Creates binary of only 22k (for now)
* Three different threading models
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++ application,
check it out.
%package -n %{libname}
Summary: Small C library to run an HTTP server
Group: System/Libraries
Provides: %{mklibname microspdy 0} = 0.9.47
Obsoletes: %{mklibname microspdy 0} < 0.9.47
Obsoletes: microspdy2http < 0.9.47
%description -n %{libname}
libmicrohttpd is a small C library that is supposed to make it easy to
run an HTTP server as part of another application.
%package -n %{devname}
Summary: Development files for %{libname}
Group: System/Libraries
Provides: %{name}-devel = %{version}-%{release}
Requires: %{libname} = %{version}-%{release}
Provides: %{mklibname microspdy -d} = 0.9.47
Obsoletes: %{mklibname microspdy -d} < 0.9.47
%description -n %{devname}
Development files for %{libname}.
%prep
%autosetup -p1
%build
%configure --disable-static
%make_build
%install
%make_install
%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%files -n %{devname}
%doc AUTHORS NEWS README
%{_includedir}/%{sname}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%doc %{_infodir}/*
%doc %{_mandir}/man3/%{name}.3*