]>
Commit | Line | Data |
---|---|---|
ca75cd40 | 1 | # |
2 | Summary: Recursive, validating DNS server | |
3 | Name: unbound | |
b04f2b9c | 4 | Version: 1.4.15 |
ca75cd40 | 5 | Release: 1 |
6 | License: BSD | |
7 | Group: Applications | |
8 | Source0: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz | |
b04f2b9c | 9 | # Source0-md5: 99173a6548e0e2ec9bfac7a5d025f79e |
cda91157 | 10 | Source1: %{name}.init |
ca75cd40 | 11 | URL: http://unbound.net/ |
511c7cae | 12 | BuildRequires: ldns-devel >= 1.6.9 |
5ec53429 | 13 | BuildRequires: libevent-devel |
ca75cd40 | 14 | BuildRequires: rpmbuild(macros) >= 1.228 |
15 | Requires(post,preun): /sbin/chkconfig | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Unbound is a validating, recursive, and caching DNS resolver. | |
20 | ||
21 | The C implementation of Unbound is developed and maintained by NLnet | |
22 | Labs. It is based on ideas and algorithms taken from a java prototype | |
23 | developed by Verisign labs, Nominet, Kirei and ep.net. | |
24 | ||
25 | Unbound is designed as a set of modular components, so that also | |
26 | DNSSEC (secure DNS) validation and stub-resolvers (that do not run as | |
27 | a server, but are linked into an application) are easily possible. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for unbound library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki unbound | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for unbound library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki unbound. | |
40 | ||
41 | %package static | |
42 | Summary: Static unbound library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka unbound | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static unbound library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka unbound. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %build | |
511c7cae | 57 | %configure |
ca75cd40 | 58 | %{__make} |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
cda91157 | 62 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
63 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
ca75cd40 | 64 | |
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
ca75cd40 | 71 | %post |
cda91157 | 72 | /sbin/ldconfig |
73 | ||
74 | %postun | |
75 | /sbin/ldconfig | |
ca75cd40 | 76 | /sbin/chkconfig --add %{name} |
77 | %service %{name} restart | |
78 | ||
79 | %preun | |
80 | if [ "$1" = "0" ]; then | |
81 | %service -q %{name} stop | |
82 | /sbin/chkconfig --del %{name} | |
83 | fi | |
ca75cd40 | 84 | |
85 | %files | |
86 | %defattr(644,root,root,755) | |
5ec53429 | 87 | %doc doc/Changelog doc/CREDITS doc/control_proto_spec.txt |
88 | %doc doc/example.conf doc/README doc/FEATURES doc/ietf67-design-02.odp | |
89 | %doc doc/ietf67-design-02.pdf doc/requirements.txt doc/TODO | |
cda91157 | 90 | %attr(754,root,root) /etc/rc.d/init.d/unbound |
783ab43a | 91 | %dir %{_sysconfdir}/%{name} |
92 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/unbound.conf | |
ca75cd40 | 93 | %attr(755,root,root) %{_libdir}/libunbound.so.*.*.* |
b04f2b9c | 94 | %attr(755,root,root) %ghost %{_libdir}/libunbound.so.3 |
ca75cd40 | 95 | %attr(755,root,root) %{_sbindir}/unbound |
511c7cae | 96 | %attr(755,root,root) %{_sbindir}/unbound-anchor |
ca75cd40 | 97 | %attr(755,root,root) %{_sbindir}/unbound-checkconf |
5ec53429 | 98 | %attr(755,root,root) %{_sbindir}/unbound-control* |
ca75cd40 | 99 | %attr(755,root,root) %{_sbindir}/unbound-host |
100 | %{_mandir}/man1/unbound-host.1* | |
101 | %{_mandir}/man5/unbound.conf.5* | |
102 | %{_mandir}/man8/unbound-checkconf.8* | |
103 | %{_mandir}/man8/unbound.8* | |
511c7cae | 104 | %{_mandir}/man8/unbound-anchor.8* |
5ec53429 | 105 | %{_mandir}/man8/unbound-control.8* |
ca75cd40 | 106 | |
107 | %files devel | |
cda91157 | 108 | %defattr(644,root,root,755) |
ca75cd40 | 109 | %{_includedir}/unbound.h |
110 | %{_libdir}/libunbound.la | |
111 | %{_libdir}/libunbound.so | |
112 | %{_mandir}/man3/libunbound.3* | |
113 | ||
114 | %files static | |
cda91157 | 115 | %defattr(644,root,root,755) |
ca75cd40 | 116 | %{_libdir}/libunbound.a |