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