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