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