1 | Summary: Lightweight library for embedding a webserver in applications |
---|
2 | Name: libmicrohttpd |
---|
3 | Version: 0.9.39 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | Group: System Environment/Libraries |
---|
6 | License: LGPLv2+ |
---|
7 | URL: http://www.gnu.org/software/libmicrohttpd/ |
---|
8 | |
---|
9 | Source0: ftp://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz |
---|
10 | |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | BuildRequires: autoconf, automake, libtool |
---|
13 | BuildRequires: curl-devel |
---|
14 | BuildRequires: gnutls-devel |
---|
15 | BuildRequires: libgcrypt-devel |
---|
16 | BuildRequires: openssl-devel |
---|
17 | BuildRequires: zlib-devel |
---|
18 | BuildRequires: graphviz |
---|
19 | BuildRequires: doxygen |
---|
20 | |
---|
21 | Requires(post): info |
---|
22 | Requires(preun): info |
---|
23 | |
---|
24 | %description |
---|
25 | GNU libmicrohttpd is a small C library that is supposed to make it |
---|
26 | easy to run an HTTP server as part of another application. |
---|
27 | Key features that distinguish libmicrohttpd from other projects are: |
---|
28 | |
---|
29 | * C library: fast and small |
---|
30 | * API is simple, expressive and fully reentrant |
---|
31 | * Implementation is http 1.1 compliant |
---|
32 | * HTTP server can listen on multiple ports |
---|
33 | * Support for IPv6 |
---|
34 | * Support for incremental processing of POST data |
---|
35 | * Creates binary of only 25k (for now) |
---|
36 | * Three different threading models |
---|
37 | |
---|
38 | %package devel |
---|
39 | Summary: Development files for libmicrohttpd |
---|
40 | Summary(ja): libmicrohttpd の開発用ファイル |
---|
41 | Group: Development/Libraries |
---|
42 | Requires: %{name} = %{version}-%{release} |
---|
43 | |
---|
44 | %description devel |
---|
45 | Development files for libmicrohttpd |
---|
46 | |
---|
47 | %package doc |
---|
48 | Summary: Documentation for libmicrohttpd |
---|
49 | Summary(ja): libmicrohttpd のドキュメント |
---|
50 | Group: Documentation |
---|
51 | Buildarch: noarch |
---|
52 | Requires: %{name} = %{version}-%{release} |
---|
53 | |
---|
54 | %description doc |
---|
55 | Doxygen documentation for libmicrohttpd and some example source code |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q |
---|
59 | |
---|
60 | %build |
---|
61 | %configure --disable-static --with-gnutls |
---|
62 | make %{?_smp_mflags} |
---|
63 | make full -C doc/doxygen |
---|
64 | |
---|
65 | |
---|
66 | # Disabled for now due to problems reported at |
---|
67 | # https://gnunet.org/bugs/view.php?id=1619 |
---|
68 | #check |
---|
69 | #make check %{?_smp_mflags} |
---|
70 | |
---|
71 | %install |
---|
72 | rm -rf %{buildroot} |
---|
73 | make install DESTDIR=%{buildroot} |
---|
74 | |
---|
75 | rm -f %{buildroot}%{_libdir}/libmicrohttpd.la |
---|
76 | rm -f %{buildroot}%{_libdir}/libmicrospdy.la |
---|
77 | rm -f %{buildroot}%{_infodir}/dir |
---|
78 | |
---|
79 | # Install some examples in /usr/share/doc/libmicrohttpd-${version}/examples |
---|
80 | rm -rf examples |
---|
81 | mkdir -p examples |
---|
82 | install -m 644 src/examples/*.c examples |
---|
83 | |
---|
84 | # Install the doxygen documentation in /usr/share/doc/libmicrohttpd-${version}/html |
---|
85 | rm -rf html |
---|
86 | cp -R doc/doxygen/html . |
---|
87 | |
---|
88 | %clean |
---|
89 | rm -rf %{buildroot} |
---|
90 | |
---|
91 | %post -p /sbin/ldconfig |
---|
92 | %postun -p /sbin/ldconfig |
---|
93 | |
---|
94 | %post doc |
---|
95 | /sbin/install-info %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || : |
---|
96 | /sbin/install-info %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || : |
---|
97 | |
---|
98 | %preun doc |
---|
99 | if [ $1 = 0 ] ; then |
---|
100 | /sbin/install-info --delete %{_infodir}/libmicrohttpd.info.gz %{_infodir}/dir || : |
---|
101 | /sbin/install-info --delete %{_infodir}/libmicrohttpd-tutorial.info.gz %{_infodir}/dir || : |
---|
102 | fi |
---|
103 | |
---|
104 | %files |
---|
105 | %defattr(-,root,root,-) |
---|
106 | %doc COPYING |
---|
107 | %{_bindir}/microspdy2http |
---|
108 | %{_libdir}/libmicro*.so.* |
---|
109 | |
---|
110 | %files devel |
---|
111 | %defattr(-,root,root,-) |
---|
112 | %{_includedir}/micro*.h |
---|
113 | %{_libdir}/libmicro*.so |
---|
114 | %{_libdir}/pkgconfig/libmicro*.pc |
---|
115 | |
---|
116 | %files doc |
---|
117 | %doc AUTHORS README ChangeLog |
---|
118 | %doc examples |
---|
119 | %doc html |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %{_mandir}/man3/libmicrohttpd.3.gz |
---|
122 | %{_infodir}/libmicrohttpd.info.gz |
---|
123 | %{_infodir}/libmicrohttpd-tutorial.info.gz |
---|
124 | |
---|
125 | %changelog |
---|
126 | * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.39-2 |
---|
127 | - rebuild with openssl-1.0.2 |
---|
128 | |
---|
129 | * Mon Jan 12 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.39-1 |
---|
130 | - updated to 0.9.39 |
---|
131 | - built with libgcrypt 1.6.0 and gnutls 3.2.20 |
---|
132 | |
---|
133 | * Mon Jan 17 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9.2-1 |
---|
134 | - initial build for Vine Linux based on fedora development |
---|
135 | |
---|
136 | * Tue Nov 16 2010 Tim Niemueller <tim@niemueller.de> - 0.9.2-3 |
---|
137 | - Add missing BR gnutls-devel and libgcrypt-devel |
---|
138 | - Added patch to fix test apps (NSS instead of GnuTLS/OpenSSL curl, |
---|
139 | implicit DSO linking) |
---|
140 | - Disable test cases for now due to false errors, reported upstream |
---|
141 | |
---|
142 | * Tue Nov 16 2010 Tim Niemueller <tim@niemueller.de> - 0.9.2-2 |
---|
143 | - Re-enable HTTPS, configure flags had unexpected result |
---|
144 | |
---|
145 | * Sun Nov 7 2010 Tim Niemueller <tim@niemueller.de> - 0.9.2-1 |
---|
146 | - Update to 0.9.2 |
---|
147 | |
---|
148 | * Sun Jun 4 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.4.6-1 |
---|
149 | - Update to 0.4.6 |
---|
150 | |
---|
151 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2 |
---|
152 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
153 | |
---|
154 | * Tue Jul 21 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.4.2-1 |
---|
155 | - Update to version 0.4.2 |
---|
156 | - Drop upstreamed patch |
---|
157 | |
---|
158 | * Fri Feb 27 2009 Erik van Pienbroek <info@nntpgrab.nl> - 0.4.0a-1 |
---|
159 | - Update to version 0.4.0a |
---|
160 | - Drop upstreamed patch |
---|
161 | - Added a new patch to fix a 64bit issue |
---|
162 | - The -devel package now contains a pkgconfig file |
---|
163 | - The configure script is now run with '--enable-messages --enable-https' |
---|
164 | - Made the -doc subpackage noarch (F11+) |
---|
165 | |
---|
166 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2 |
---|
167 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
168 | |
---|
169 | * Sat Feb 14 2009 Erik van Pienbroek <info@nntpgrab.nl> - 0.4.0-1 |
---|
170 | - Update to version 0.4.0 |
---|
171 | - This version introduces a API bump (which is required for |
---|
172 | supporting large files on 32bit environments) |
---|
173 | - The license issues we had with version 0.3.1 of this package (as |
---|
174 | discussed in #457924) are resolved in this version. The license |
---|
175 | of this package is now changed to LGPLv2+ |
---|
176 | - Added a patch to fix two testcases on 64bit environments (upstream bug #1454) |
---|
177 | |
---|
178 | * Sat Sep 6 2008 Erik van Pienbroek <info@nntpgrab.nl> - 0.3.1-3 |
---|
179 | - Changed license to GPLv3+ and added some comments |
---|
180 | regarding the license issues with this package |
---|
181 | |
---|
182 | * Sun Aug 10 2008 Erik van Pienbroek <info@nntpgrab.nl> - 0.3.1-2 |
---|
183 | - Changed license to LGPLv2+ |
---|
184 | - Moved the COPYING file to the main package |
---|
185 | |
---|
186 | * Tue Aug 5 2008 Erik van Pienbroek <info@nntpgrab.nl> - 0.3.1-1 |
---|
187 | - Initial release |
---|
188 | |
---|