Maintained by: NLnet Labs

[Unbound-users] SPEC file for building RPMs

Patrick Vande Walle
Wed May 21 11:38:35 CEST 2008


I have been using Unbound over the last two hours ;-). Seems to work great.

I had trouble building the RPM on RHEL5/CentOS5 with the stock spec file
included in the tarball.

Below is a diff. The differences are basically:

- Update the version number
- Used the default config file from the tarball, rather than a non-existent
external one
- Remove the "--disable-static" option from configure, as it would break
the compilation. 

Congratulations for this first relaaese. Keep up the good work !

Best regards,

Patrick Vande Walle

--- unbound.spec.orig   2008-04-25 17:47:59.000000000 +0200
+++ unbound.spec        2008-05-20 22:27:13.000000000 +0200
@@ -1,11 +1,11 @@
 Summary: Validating, recursive, and caching DNS resolver
 Name: unbound
-Version: 0.12
+Version: 1.0.0
 Release: 1%{?dist}
 License: BSD
-Source1: unbound.init
+#Source1: unbound.init
 Group: System Environment/Daemons
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: flex, openssl-devel
@@ -32,17 +32,18 @@
 # This is a build using libldns builtin version, the resulting binaries
 # do not require libldns and this package does not have version
 # Could be smaller using a dependency on libldns (use --with-ldns=).
-%configure --enable-debug
--with-conf-file=%{_localstatedir}/%{name}/unbound.conf --disable-static
+%configure  --with-conf-file=%{_localstatedir}/%{name}/unbound.conf 

-%{__make} %{?_smp_mflags}
+#%{__make} %{?_smp_mflags}

 rm -rf %{buildroot}
 %{__make} DESTDIR=%{buildroot} install
 install -d 0700 %{buildroot}%{_localstatedir}/%{name}
 install -d 0755 %{buildroot}%{_initrddir}
-install -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/unbound
+install -m 0755 contrib/unbound.init  %{buildroot}%{_initrddir}/unbound
 # add symbolic link from /etc/unbound.conf -> /var/unbound/unbound.conf
 ln -s %{_localstatedir}/unbound/unbound.conf
 # remove static library from install (fedora packaging guidelines)