]>
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 |
9ea36d8f JB |
8 | Version: 0.9.54 |
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 |
9ea36d8f | 13 | # Source0-md5: 9ed8171c7ee8cedce86959635c1db3ae |
e0264d10 | 14 | Patch0: %{name}-info.patch |
35f10266 | 15 | URL: http://www.gnu.org/software/libmicrohttpd/ |
9ea36d8f | 16 | BuildRequires: autoconf >= 2.64 |
35f10266 | 17 | BuildRequires: automake >= 1:1.10 |
458781c7 | 18 | BuildRequires: gnutls-devel >= 2.8.6 |
35f10266 | 19 | BuildRequires: libgcrypt-devel >= 1.2.4 |
f6457725 | 20 | BuildRequires: libmagic-devel |
035db06f | 21 | BuildRequires: libtool >= 2:2.4.0 |
e0264d10 | 22 | BuildRequires: texinfo |
35f10266 | 23 | %if %{with tests} |
e0264d10 | 24 | BuildRequires: curl-devel >= 7.16.4 |
35f10266 | 25 | %endif |
458781c7 JB |
26 | Requires: gnutls >= 2.8.6 |
27 | Requires: libgcrypt >= 1.2.4 | |
35f10266 AF |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
7947fc2e | 31 | GNU libmicrohttpd is a small C library that is supposed to make it |
32 | easy to run an HTTP server as part of another application. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | GNU libmicrohttpd jest małą biblioteką C, w założeniu umożliwiającą | |
e0264d10 | 36 | uruchomienie serwera HTTP jako części innej aplikacji. |
35f10266 AF |
37 | |
38 | %package devel | |
39 | Summary: Header files to develop libmicrohttpd applications | |
5deb6f41 | 40 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd |
35f10266 AF |
41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
458781c7 | 43 | Requires: gnutls-devel >= 2.8.6 |
31c2f099 | 44 | Requires: libgcrypt-devel >= 1.2.4 |
e72faf06 | 45 | Requires: openssl-devel |
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 |
35f10266 AF |
68 | |
69 | %build | |
70 | %{__libtoolize} | |
71 | %{__aclocal} -I m4 | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure \ | |
76 | %if %{with tests} | |
77 | --enable-curl \ | |
78 | --enable-client-side \ | |
79 | %endif | |
80 | --enable-https \ | |
7947fc2e | 81 | --disable-messages |
35f10266 AF |
82 | |
83 | %{__make} | |
84 | %if %{with tests} | |
85 | %{__make} check | |
86 | %endif | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
337f2221 JB |
94 | # obsoleted by pkg-config |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmicro*.la | |
e72faf06 | 96 | |
35f10266 AF |
97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %post devel -p /sbin/postshell | |
104 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
105 | ||
106 | %postun devel -p /sbin/postshell | |
107 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
7947fc2e | 111 | %doc AUTHORS ChangeLog NEWS README |
35f10266 | 112 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.* |
24840d21 | 113 | %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.12 |
35f10266 AF |
114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so | |
35f10266 | 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 |