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