]> git.pld-linux.org Git - packages/libmicrohttpd.git/blob - libmicrohttpd.spec
- updated to 0.9.27
[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.27
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:  a10496b7f1b495aaf6897584da52f51b
14 Patch0:         %{name}-info.patch
15 URL:            http://www.gnu.org/software/libmicrohttpd/
16 BuildRequires:  autoconf >= 2.61
17 BuildRequires:  automake >= 1:1.10
18 BuildRequires:  gnutls-devel >= 2.8.6
19 BuildRequires:  libgcrypt-devel >= 1.2.4
20 BuildRequires:  libtool
21 BuildRequires:  texinfo
22 %if %{with tests}
23 BuildRequires:  curl-devel >= 7.16.4
24 %endif
25 Requires:       gnutls >= 2.8.6
26 Requires:       libgcrypt >= 1.2.4
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 GNU libmicrohttpd is a small C library that is supposed to make it
31 easy to run an HTTP server as part of another application.
32
33 %description -l pl.UTF-8
34 GNU libmicrohttpd jest małą biblioteką C, w założeniu umożliwiającą
35 uruchomienie serwera HTTP jako części innej aplikacji.
36
37 %package devel
38 Summary:        Header files to develop libmicrohttpd applications
39 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       gnutls-devel >= 2.8.6
43 Requires:       libgcrypt-devel >= 1.2.4
44
45 %description devel
46 Header files to develop libmicrohttpd applications.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd.
50
51 %package static
52 Summary:        Static libmicrohttpd libraries
53 Summary(pl.UTF-8):      Biblioteka statyczna libmicrohttpd
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static libmicrohttpd libraries.
59
60 %description static -l pl.UTF-8
61 Biblioteka statyczna libmicrohttpd.
62
63 %prep
64 %setup -q
65 %patch0 -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}/libmicrohttpd.info*
116 %{_infodir}/libmicrohttpd-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.106958 seconds and 3 git commands to generate.