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