]> git.pld-linux.org Git - packages/libmicrohttpd.git/blob - libmicrohttpd.spec
- updated to 0.9.60
[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.60
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:  d80ab89764651a375dc838ebd6633331
14 Patch0:         %{name}-info.patch
15 URL:            http://www.gnu.org/software/libmicrohttpd/
16 BuildRequires:  autoconf >= 2.64
17 BuildRequires:  automake >= 1:1.10
18 BuildRequires:  gnutls-devel >= 2.8.6
19 BuildRequires:  libgcrypt-devel >= 1.2.4
20 BuildRequires:  libmagic-devel
21 BuildRequires:  libtool >= 2:2.4.0
22 BuildRequires:  texinfo
23 %if %{with tests}
24 BuildRequires:  curl-devel >= 7.16.4
25 %endif
26 Requires:       gnutls >= 2.8.6
27 Requires:       libgcrypt >= 1.2.4
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 GNU libmicrohttpd is a small C library that is supposed to make it
32 easy to run an HTTP server as part of another application.
33
34 %description -l pl.UTF-8
35 GNU libmicrohttpd jest małą biblioteką C, w założeniu umożliwiającą
36 uruchomienie serwera HTTP jako części innej aplikacji.
37
38 %package devel
39 Summary:        Header files to develop libmicrohttpd applications
40 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających libmicrohttpd
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       gnutls-devel >= 2.8.6
44 Requires:       libgcrypt-devel >= 1.2.4
45 Requires:       openssl-devel
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
69 %build
70 %{__libtoolize}
71 %{__aclocal} -I m4
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 %configure \
76 %if %{with tests}
77         --enable-curl \
78         --enable-client-side \
79 %endif
80         --enable-https \
81         --disable-messages
82
83 %{__make}
84 %if %{with tests}
85 %{__make} check
86 %endif
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmicro*.la
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %post   devel -p /sbin/postshell
104 -/usr/sbin/fix-info-dir -c %{_infodir}
105
106 %postun devel -p /sbin/postshell
107 -/usr/sbin/fix-info-dir -c %{_infodir}
108
109 %files
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog NEWS README
112 %attr(755,root,root) %{_libdir}/libmicrohttpd.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libmicrohttpd.so.12
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libmicrohttpd.so
118 %{_includedir}/microhttpd.h
119 %{_infodir}/libmicrohttpd.info*
120 %{_infodir}/libmicrohttpd-tutorial.info*
121 %{_infodir}/libmicrohttpd_performance_data.png
122 %{_mandir}/man3/libmicrohttpd.3*
123 %{_pkgconfigdir}/libmicrohttpd.pc
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libmicrohttpd.a
This page took 0.116057 seconds and 4 git commands to generate.