]> git.pld-linux.org Git - packages/libmicrohttpd.git/blob - libmicrohttpd.spec
- updated to 0.9.25
[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.25
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:  4f3b8ccd50e7133283f2aec5cc21620f
14 Patch0:         %{name}-info.patch
15 Patch1:         %{name}-am.patch
16 Patch2:         %{name}-missing.patch
17 URL:            http://www.gnu.org/software/libmicrohttpd/
18 BuildRequires:  autoconf >= 2.61
19 BuildRequires:  automake >= 1:1.10
20 BuildRequires:  gnutls-devel >= 2.8.6
21 BuildRequires:  libgcrypt-devel >= 1.2.4
22 BuildRequires:  libtool
23 BuildRequires:  texinfo
24 %if %{with tests}
25 BuildRequires:  curl-devel >= 7.16.4
26 %endif
27 Requires:       gnutls >= 2.8.6
28 Requires:       libgcrypt >= 1.2.4
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
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ą
37 uruchomienie serwera HTTP jako części innej aplikacji.
38
39 %package devel
40 Summary:        Header files to develop libmicrohttpd applications
41 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       gnutls-devel >= 2.8.6
45 Requires:       libgcrypt-devel >= 1.2.4
46
47 %description devel
48 Header files to develop libmicrohttpd applications.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd.
52
53 %package static
54 Summary:        Static libmicrohttpd libraries
55 Summary(pl.UTF-8):      Biblioteka statyczna libmicrohttpd
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static libmicrohttpd libraries.
61
62 %description static -l pl.UTF-8
63 Biblioteka statyczna libmicrohttpd.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68 %patch1 -p1
69 %patch2 -p1
70
71 %build
72 %{__libtoolize}
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure \
78 %if %{with tests}
79         --enable-curl \
80         --enable-client-side \
81 %endif
82         --enable-https \
83         --disable-messages
84
85 %{__make}
86 %if %{with tests}
87 %{__make} check
88 %endif
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %post   devel -p /sbin/postshell
103 -/usr/sbin/fix-info-dir -c %{_infodir}
104
105 %postun devel -p /sbin/postshell
106 -/usr/sbin/fix-info-dir -c %{_infodir}
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README
111 %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.10
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libmicrohttpd.so
117 %{_libdir}/libmicrohttpd.la
118 %{_includedir}/microhttpd.h
119 %{_infodir}/libmicrohttpd.info*
120 %{_infodir}/libmicrohttpd-tutorial.info*
121 %{_mandir}/man3/libmicrohttpd.3*
122 %{_pkgconfigdir}/libmicrohttpd.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libmicrohttpd.a
This page took 0.053486 seconds and 3 git commands to generate.