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