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