summaryrefslogtreecommitdiff
path: root/libmicrohttpd.spec
blob: cd87d4be02d45ddf553542408d82de9b835da476 (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Name:           libmicrohttpd
Version:        1.0.1
Release:        2
Epoch:          1
Summary:        Lightweight library for embedding a webserver in applications
License:        LGPL-2.1-or-later
URL:            https://www.gnu.org/software/libmicrohttpd/
Source0:        https://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
Patch5000:      fixed-missing-websocket.inc-in-dist-files.patch

BuildRequires:  gcc make
BuildRequires:  libgcrypt-devel >= 1.2.2
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  doxygen

%description
GNU libmicrohttpd is a small C library that is supposed to make it
easy to run an HTTP server as part of another application.

%package devel
Summary:        Development files for libmicrohttpd
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description devel
Development files for libmicrohttpd

%package help
Summary:        This help package for libmicrohttpd
Requires:       %{name} = %{epoch}:%{version}-%{release}
BuildArch:      noarch
Provides:       %{name}-doc = %{epoch}:%{version}-%{release}
Obsoletes:      %{name}-doc < %{epoch}:%{version}-%{release}

%description help
The help package contains manual pages and doc files for libmicrohttpd

%prep
%autosetup -p1

%build
%configure --disable-static --with-gnutls --enable-https=yes
%make_build
make -C doc/doxygen full

%check
%make_build check

%install
%make_install
%delete_la

rm -f %{buildroot}%{_infodir}/dir

mkdir examples
cp  src/examples/*.c examples
cp doc/examples/*.c examples
chmod 644 examples/*.c
cp -R doc/doxygen/html html

%files
%license COPYING
%{_libdir}/libmicrohttpd.so.*

%files devel
%{_includedir}/microhttpd.h
%{_libdir}/libmicrohttpd.so
%{_libdir}/pkgconfig/libmicrohttpd.pc

%files help
%doc AUTHORS ChangeLog examples html README
%{_mandir}/man3/libmicrohttpd.3*
%{_infodir}/*

%changelog
* Sun Oct 20 2024 Funda Wang <fundawang@yeah.net> - 1:1.0.1-2
- cleanup spec

* Mon Jul 08 2024 xu_ping <707078654@qq.com> - 1:1.0.1-1
- Upgrade to 1.0.1
- fix some bugs
- Reduced the binary size for builds without messages by removing
  the strings with filenames used for panic reports.

* Fri Jan 12 2024 yaoxin <yao_xin001@hoperun.com> - 1:0.9.77-1
- Upgrade to 0.9.77

* Sun Oct 08 2023 wulei <wulei80@h-partners.com> - 1:0.9.75-4
- Fixed missing websocket.inc in dist files

* Mon Mar 13 2023 yaoxin <yaoxin30@h-partners.com> - 1:0.9.75-3
- Fix CVE-2023-27371

* Fri Aug 5 2022 liyanan <liyanan32@h-partners.com> - 1:0.9.75-2
- Fixed missing websocket.inc in dist files

* Fri Jan 14 2022 xigaoxinyan<xigaoxinyan@huawei.com> - 0.9.75-1
- update to 0.9.75
* Thu Aug 05 2021 caodongxia<caodongxia@huawei.com> - 0.9.59-5
- Fix libmicrohttpd-tutorial info

* Thu Nov 21 2019 wangye<wangye54@huawei.com> - 0.9.59-4
- Package init