/[packages]/cauldron/unbound/current/SPECS/unbound.spec
ViewVC logotype

Contents of /cauldron/unbound/current/SPECS/unbound.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 894286 - (show annotations) (download)
Thu Oct 22 20:25:44 2015 UTC (8 years, 6 months ago) by eatdirt
File size: 2828 byte(s)
imported package unbound
1 %define majornum 2
2 %define libname %mklibname %{name} %{majornum}
3 %define develname %mklibname -d %{name}
4
5 Name: unbound
6 Version: 1.5.6
7 Release: %mkrel 1
8 Summary: A validating, recursive, and caching DNS resolver
9
10 License: BSD
11 Group: Networking/Other
12 Url: https://unbound.net/
13
14 Source0: %{name}-%{version}.tar.gz
15 Source1: %{name}-tmpfiles.conf
16 Source2: %{name}.service
17
18
19 BuildRequires: bison
20 BuildRequires: doxygen
21 BuildRequires: flex
22 BuildRequires: nss-devel
23 BuildRequires: openssl-devel
24 BuildRequires: expat-devel
25 BuildRequires: event-devel
26
27 Requires(pre): rpm-helper >= %{rpmhelper_required_version}
28 Requires(post): rpm-helper >= %{rpmhelper_required_version}
29 Requires(preun): rpm-helper >= %{rpmhelper_required_version}
30 Requires(postun): rpm-helper >= %{rpmhelper_required_version}
31
32 %description
33 Unbound is a validating, recursive, and caching DNS resolver. The C
34 implementation of Unbound is developed and maintained by NLnet
35 Labs. It is based on ideas and algorithms taken from a java prototype
36 developed by Verisign labs, Nominet, Kirei and ep.net. Unbound is
37 designed as a set of modular components, so that also DNSSEC (secure
38 DNS) validation and stub-resolvers (that do not run as a server, but
39 are linked into an application) are easily possible.
40
41
42 %package -n %{libname}
43 Summary: Shared libraries for Unbound
44 Group: System/Libraries
45
46 %description -n %{libname}
47 %{summary}.
48
49
50 %package -n %{develname}
51 Summary: Development headers and libraries for Unbound
52 Group: Development/C
53 Requires: %{libname} = %{version}-%{release}
54 Provides: %{name}-devel = %{version}-%{release}
55 Provides: lib%{name}-devel = %{version}-%{release}
56
57 %description -n %{develname}
58 %{summary}.
59
60
61
62 %prep
63 %setup -q
64 %autopatch -p1
65
66 %build
67 %configure2_5x --disable-rpath \
68 --with-libevent \
69 --disable-static
70 %make
71
72 %install
73 %make_install
74 %{__install} -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
75 %{__install} -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
76
77 find %{buildroot}%{_libdir} -name *.la -delete
78
79 %pre
80 %_pre_useradd %{name} /dev/null /bin/false
81
82 %post
83 %_tmpfilescreate %{name}
84 %_post_service %{name}
85
86 %preun
87 %_preun_service %{name}
88
89 %postun
90 %_postun_userdel %{name}
91
92
93
94 %files
95 %doc README
96 %{_unitdir}/%{name}.service
97 %{_tmpfilesdir}/%{name}.conf
98 %config(noreplace) %{_sysconfdir}/%{name}/*.conf
99 %{_sbindir}/%{name}*
100 %{_mandir}/man1/%{name}*.1*
101 %{_mandir}/man5/%{name}*.5*
102 %{_mandir}/man8/%{name}*.8*
103
104
105 %files -n %{libname}
106 %{_libdir}/lib%{name}.so.%{majornum}
107 %{_libdir}/lib%{name}.so.%{majornum}.*
108
109
110 %files -n %{develname}
111 %{_includedir}/*.h
112 %{_libdir}/lib%{name}*.so
113 %{_mandir}/man3/*.3.*
114
115

  ViewVC Help
Powered by ViewVC 1.1.30