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