]>
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 |
89420700 | 8 | Version: 0.9.29 |
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 |
89420700 | 13 | # Source0-md5: ead86d88e8b71ad99a2273bca438536c |
e0264d10 | 14 | Patch0: %{name}-info.patch |
e72faf06 JB |
15 | Patch1: %{name}-messages.patch |
16 | Patch2: %{name}-link.patch | |
35f10266 AF |
17 | URL: http://www.gnu.org/software/libmicrohttpd/ |
18 | BuildRequires: autoconf >= 2.61 | |
19 | BuildRequires: automake >= 1:1.10 | |
458781c7 | 20 | BuildRequires: gnutls-devel >= 2.8.6 |
35f10266 AF |
21 | BuildRequires: libgcrypt-devel >= 1.2.4 |
22 | BuildRequires: libtool | |
e72faf06 JB |
23 | # for microspdy |
24 | BuildRequires: openssl-devel | |
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 JB |
71 | %patch1 -p1 |
72 | %patch2 -p1 | |
35f10266 AF |
73 | |
74 | %build | |
75 | %{__libtoolize} | |
76 | %{__aclocal} -I m4 | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
80 | %configure \ | |
81 | %if %{with tests} | |
82 | --enable-curl \ | |
83 | --enable-client-side \ | |
84 | %endif | |
85 | --enable-https \ | |
7947fc2e | 86 | --disable-messages |
35f10266 AF |
87 | |
88 | %{__make} | |
89 | %if %{with tests} | |
90 | %{__make} check | |
91 | %endif | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
e72faf06 JB |
99 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/demo |
100 | ||
35f10266 AF |
101 | %clean |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %post -p /sbin/ldconfig | |
105 | %postun -p /sbin/ldconfig | |
106 | ||
107 | %post devel -p /sbin/postshell | |
108 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
109 | ||
110 | %postun devel -p /sbin/postshell | |
111 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
7947fc2e | 115 | %doc AUTHORS ChangeLog NEWS README |
e72faf06 | 116 | %attr(755,root,root) %{_bindir}/microspdy2http |
35f10266 | 117 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.* |
7947fc2e | 118 | %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.10 |
e72faf06 JB |
119 | %attr(755,root,root) %{_libdir}/libmicrospdy.so.*.*.* |
120 | %attr(755,root,root) %ghost %{_libdir}/libmicrospdy.so.0 | |
35f10266 AF |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so | |
e72faf06 | 125 | %attr(755,root,root) %{_libdir}/libmicrospdy.so |
35f10266 | 126 | %{_libdir}/libmicrohttpd.la |
e72faf06 | 127 | %{_libdir}/libmicrospdy.la |
35f10266 | 128 | %{_includedir}/microhttpd.h |
e72faf06 | 129 | %{_includedir}/microspdy.h |
458781c7 JB |
130 | %{_infodir}/libmicrohttpd.info* |
131 | %{_infodir}/libmicrohttpd-tutorial.info* | |
35f10266 AF |
132 | %{_mandir}/man3/libmicrohttpd.3* |
133 | %{_pkgconfigdir}/libmicrohttpd.pc | |
134 | ||
135 | %files static | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libmicrohttpd.a | |
e72faf06 | 138 | %{_libdir}/libmicrospdy.a |