]>
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 |
c282e8af | 8 | Version: 0.9.73 |
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 |
c282e8af | 13 | # Source0-md5: 2b15949b1633e4fa487e08cdcc97f0e3 |
e0264d10 | 14 | Patch0: %{name}-info.patch |
35f10266 | 15 | URL: http://www.gnu.org/software/libmicrohttpd/ |
9ea36d8f | 16 | BuildRequires: autoconf >= 2.64 |
71b1fb6b | 17 | BuildRequires: automake >= 1:1.11 |
c282e8af | 18 | BuildRequires: gettext-tools >= 0.20.2 |
458781c7 | 19 | BuildRequires: gnutls-devel >= 2.8.6 |
35f10266 | 20 | BuildRequires: libgcrypt-devel >= 1.2.4 |
f6457725 | 21 | BuildRequires: libmagic-devel |
035db06f | 22 | BuildRequires: libtool >= 2:2.4.0 |
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 |
e72faf06 | 46 | Requires: openssl-devel |
35f10266 AF |
47 | |
48 | %description devel | |
49 | Header files to develop libmicrohttpd applications. | |
50 | ||
7947fc2e | 51 | %description devel -l pl.UTF-8 |
5deb6f41 | 52 | Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd. |
7947fc2e | 53 | |
35f10266 AF |
54 | %package static |
55 | Summary: Static libmicrohttpd libraries | |
56 | Summary(pl.UTF-8): Biblioteka statyczna libmicrohttpd | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static libmicrohttpd libraries. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Biblioteka statyczna libmicrohttpd. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
e0264d10 | 68 | %patch0 -p1 |
35f10266 AF |
69 | |
70 | %build | |
71 | %{__libtoolize} | |
72 | %{__aclocal} -I m4 | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
76 | %configure \ | |
77 | %if %{with tests} | |
78 | --enable-curl \ | |
79 | --enable-client-side \ | |
80 | %endif | |
81 | --enable-https \ | |
7947fc2e | 82 | --disable-messages |
35f10266 AF |
83 | |
84 | %{__make} | |
85 | %if %{with tests} | |
86 | %{__make} check | |
87 | %endif | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
337f2221 JB |
95 | # obsoleted by pkg-config |
96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmicro*.la | |
e72faf06 | 97 | |
35f10266 AF |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %post devel -p /sbin/postshell | |
105 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
106 | ||
107 | %postun devel -p /sbin/postshell | |
108 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
7947fc2e | 112 | %doc AUTHORS ChangeLog NEWS README |
35f10266 | 113 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.* |
24840d21 | 114 | %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.12 |
35f10266 AF |
115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libmicrohttpd.so | |
35f10266 | 119 | %{_includedir}/microhttpd.h |
458781c7 JB |
120 | %{_infodir}/libmicrohttpd.info* |
121 | %{_infodir}/libmicrohttpd-tutorial.info* | |
af043302 | 122 | %{_infodir}/libmicrohttpd_performance_data.png |
35f10266 AF |
123 | %{_mandir}/man3/libmicrohttpd.3* |
124 | %{_pkgconfigdir}/libmicrohttpd.pc | |
125 | ||
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libmicrohttpd.a |