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