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