]> git.pld-linux.org Git - packages/libmicrohttpd.git/blob - libmicrohttpd.spec
aa018e39a2b26cab0f0a659edb8bd6048d174186
[packages/libmicrohttpd.git] / libmicrohttpd.spec
1 #
2 # Conditional build
3 %bcond_with     tests   # perform "make check"
4 #
5 Summary:        Embeded HTTP server library
6 Summary(pl.UTF-8):      Biblioteka wbudowanego serwera HTTP
7 Name:           libmicrohttpd
8 Version:        0.9.20
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
13 # Source0-md5:  ede6ad4a07a8a0794c42e4ef356ee27c
14 Patch0:         %{name}-info.patch
15 Patch1:         %{name}-missing-files.patch
16 URL:            http://www.gnu.org/software/libmicrohttpd/
17 BuildRequires:  autoconf >= 2.61
18 BuildRequires:  automake >= 1:1.10
19 BuildRequires:  gnutls-devel
20 BuildRequires:  libgcrypt-devel >= 1.2.4
21 BuildRequires:  libtool
22 BuildRequires:  texinfo
23 %if %{with tests}
24 BuildRequires:  curl-devel >= 7.16.4
25 %endif
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 GNU libmicrohttpd is a small C library that is supposed to make it
30 easy to run an HTTP server as part of another application.
31
32 %description -l pl.UTF-8
33 GNU libmicrohttpd jest małą biblioteką C, w założeniu umożliwiającą
34 uruchomienie serwera HTTP jako części innej aplikacji.
35
36 %package devel
37 Summary:        Header files to develop libmicrohttpd applications
38 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       gnutls-devel
42 Requires:       libgcrypt-devel >= 1.2.4
43
44 %description devel
45 Header files to develop libmicrohttpd applications.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd.
49
50 %package static
51 Summary:        Static libmicrohttpd libraries
52 Summary(pl.UTF-8):      Biblioteka statyczna libmicrohttpd
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static libmicrohttpd libraries.
58
59 %description static -l pl.UTF-8
60 Biblioteka statyczna libmicrohttpd.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65 %patch1 -p1
66
67 %build
68 %{__libtoolize}
69 %{__aclocal} -I m4
70 %{__autoconf}
71 %{__autoheader}
72 %{__automake}
73 %configure \
74 %if %{with tests}
75         --enable-curl \
76         --enable-client-side \
77 %endif
78         --enable-https \
79         --disable-messages
80
81 %{__make}
82 %if %{with tests}
83 %{__make} check
84 %endif
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %post   devel -p /sbin/postshell
99 -/usr/sbin/fix-info-dir -c %{_infodir}
100
101 %postun devel -p /sbin/postshell
102 -/usr/sbin/fix-info-dir -c %{_infodir}
103
104 %files
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog NEWS README
107 %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.10
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libmicrohttpd.so
113 %{_libdir}/libmicrohttpd.la
114 %{_includedir}/microhttpd.h
115 %{_infodir}/microhttpd.info*
116 %{_infodir}/microhttpd-tutorial.info*
117 %{_mandir}/man3/libmicrohttpd.3*
118 %{_pkgconfigdir}/libmicrohttpd.pc
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libmicrohttpd.a
This page took 0.048988 seconds and 2 git commands to generate.