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