2d9838f58986fb8e0793a76d768e151d12270e6e
[platform/upstream/dnsmasq.git] / packaging / dnsmasq.spec
1 Name:           dnsmasq
2 Summary:        A lightweight DNS forwarder and DHCP server
3 Version:        2.57
4 Release:        0
5 Group:          Network & Connectivity/Data Network
6 License:        GPL-2.0
7 Source0:        %{name}-%{version}.tar.gz
8 Source1001:     dnsmasq.manifest
9 BuildRequires:  cmake
10 BuildRequires:  pkgconfig(dbus-1)
11
12 %description
13 Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
14 It is designed to provide DNS and, optionally, DHCP, to a small network.
15 It can serve the names of local machines that are not in the global DNS.
16 The DHCP server integrates with the DNS server and allows machines with
17 DHCP-allocated addresses to appear in DNS with names configured either
18 in each host or in a central configuration file. Dnsmasq supports static
19 and dynamic DHCP leases and BOOTP for network booting of diskless machines.
20
21 %prep
22 %setup -q
23 cp %{SOURCE1001} .
24
25 %build
26 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
27 make %{?jobs:-j%jobs}
28
29 %post
30 mkdir -p /opt/var/lib/misc
31
32 %install
33 %make_install
34
35 %files
36 %manifest %{name}.manifest
37 %{_bindir}/dnsmasq