]>
Commit | Line | Data |
---|---|---|
7947fc2e | 1 | # |
2 | # Conditional build | |
e0264d10 | 3 | %bcond_with tests # perform "make check" |
7947fc2e | 4 | # |
35f10266 | 5 | Summary: Embeded HTTP server library |
7947fc2e | 6 | Summary(pl.UTF-8): Biblioteka wbudowanego serwera HTTP |
35f10266 | 7 | Name: libmicrohttpd |
dc4b9d69 | 8 | Version: 0.9.30 |
4e0db8b0 | 9 | Release: 1 |
82e599ef | 10 | License: LGPL v2.1+ |
35f10266 | 11 | Group: Libraries |
7947fc2e | 12 | Source0: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz |
dc4b9d69 | 13 | # Source0-md5: ddd583165a80121adc9f3072e67297d0 |
e0264d10 | 14 | Patch0: %{name}-info.patch |
dc4b9d69 | 15 | Patch1: %{name}-link.patch |
35f10266 AF |
16 | URL: http://www.gnu.org/software/libmicrohttpd/ |
17 | BuildRequires: autoconf >= 2.61 | |
18 | BuildRequires: automake >= 1:1.10 | |
458781c7 | 19 | BuildRequires: gnutls-devel >= 2.8.6 |
35f10266 AF |
20 | BuildRequires: libgcrypt-devel >= 1.2.4 |
21 | BuildRequires: libtool | |
e72faf06 JB |
22 | # for microspdy |
23 | BuildRequires: openssl-devel | |
e0264d10 | 24 | BuildRequires: texinfo |
35f10266 | 25 | %if %{with tests} |
e0264d10 | 26 | BuildRequires: curl-devel >= 7.16.4 |
35f10266 | 27 | %endif |
458781c7 JB |
28 | Requires: gnutls >= 2.8.6 |
29 | Requires: libgcrypt >= 1.2.4 | |
35f10266 AF |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
7947fc2e | 33 | GNU libmicrohttpd is a small C library that is supposed to make it |
34 | easy to run an HTTP server as part of another application. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | GNU libmicrohttpd jest małą biblioteką C, w założeniu umożliwiającą | |
e0264d10 | 38 | uruchomienie serwera HTTP jako części innej aplikacji. |
35f10266 AF |
39 | |
40 | %package devel | |
41 | Summary: Header files to develop libmicrohttpd applications | |
5deb6f41 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd |
35f10266 AF |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
458781c7 | 45 | Requires: gnutls-devel >= 2.8.6 |
31c2f099 | 46 | Requires: libgcrypt-devel >= 1.2.4 |
e72faf06 | 47 | Requires: openssl-devel |
35f10266 AF |
48 | |
49 | %description devel | |
50 | Header files to develop libmicrohttpd applications. | |
51 | ||
7947fc2e | 52 | %description devel -l pl.UTF-8 |
5deb6f41 | 53 | Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd. |
7947fc2e | 54 | |
35f10266 AF |
55 | %package static |
56 | Summary: Static libmicrohttpd libraries | |
57 | Summary(pl.UTF-8): Biblioteka statyczna libmicrohttpd | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static libmicrohttpd libraries. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Biblioteka statyczna libmicrohttpd. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
e0264d10 | 69 | %patch0 -p1 |
e72faf06 | 70 | %patch1 -p1 |
35f10266 AF |
71 | |
72 | %build | |
73 | %{__libtoolize} | |
74 | %{__aclocal} -I m4 | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | %if %{with tests} | |
80 | --enable-curl \ | |
81 | --enable-client-side \ | |
82 | %endif | |
83 | --enable-https \ | |
7947fc2e | 84 | --disable-messages |
35f10266 AF |
85 | |
86 | %{__make} | |
87 | %if %{with tests} | |
88 | %{__make} check | |
89 | %endif | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
e72faf06 JB |
97 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/demo |
98 | ||
35f10266 AF |
99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %post devel -p /sbin/postshell | |
106 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
107 | ||
108 | %postun devel -p /sbin/postshell | |
109 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
7947fc2e | 113 | %doc AUTHORS ChangeLog NEWS README |
e72faf06 | 114 | %attr(755,root,root) %{_bindir}/microspdy2http |
35f10266 | 115 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.* |
7947fc2e | 116 | %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.10 |
e72faf06 JB |
117 | %attr(755,root,root) %{_libdir}/libmicrospdy.so.*.*.* |
118 | %attr(755,root,root) %ghost %{_libdir}/libmicrospdy.so.0 | |
35f10266 AF |
119 | |
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
122 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so | |
e72faf06 | 123 | %attr(755,root,root) %{_libdir}/libmicrospdy.so |
35f10266 | 124 | %{_libdir}/libmicrohttpd.la |
e72faf06 | 125 | %{_libdir}/libmicrospdy.la |
35f10266 | 126 | %{_includedir}/microhttpd.h |
e72faf06 | 127 | %{_includedir}/microspdy.h |
458781c7 JB |
128 | %{_infodir}/libmicrohttpd.info* |
129 | %{_infodir}/libmicrohttpd-tutorial.info* | |
35f10266 AF |
130 | %{_mandir}/man3/libmicrohttpd.3* |
131 | %{_pkgconfigdir}/libmicrohttpd.pc | |
132 | ||
133 | %files static | |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/libmicrohttpd.a | |
e72faf06 | 136 | %{_libdir}/libmicrospdy.a |