|
@@ -1,3 +1,5 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
%global with_munin 1
|
|
|
%{?!enable_gost: %global enable_gost 1}
|
|
|
|
|
@@ -14,7 +16,7 @@
|
|
|
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
|
|
Name: unbound
|
|
|
Version: 1.8.1
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
License: BSD
|
|
|
Url: http://www.unbound.net/
|
|
|
Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
|
|
@@ -109,6 +111,17 @@ Requires: %{name}-libs = %{version}-%{release}
|
|
|
Python modules and extensions for unbound
|
|
|
%endif
|
|
|
|
|
|
+%package -n compat32-%{name}-libs
|
|
|
+Summary: Libraries used by the unbound server and client applications
|
|
|
+Group: Applications/System
|
|
|
+Requires: %{name}-libs = %{version}-%{release}
|
|
|
+Requires(post): /sbin/ldconfig
|
|
|
+Requires(postun): /sbin/ldconfig
|
|
|
+Requires: openssl >= 0.9.8g-12
|
|
|
+
|
|
|
+%description -n compat32-%{name}-libs
|
|
|
+Contains libraries used by the unbound server and client applications
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
@@ -225,6 +238,12 @@ rm -rf ${RPM_BUILD_ROOT}
|
|
|
%attr(0644,unbound,unbound) %config(noreplace) %{_sharedstatedir}/%{name}/root.key
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/root.key
|
|
|
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}-libs
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libunbound.so.*
|
|
|
+%endif
|
|
|
+
|
|
|
%pre libs
|
|
|
getent group unbound >/dev/null || groupadd -r unbound
|
|
|
getent passwd unbound >/dev/null || \
|
|
@@ -258,7 +277,16 @@ fi
|
|
|
%postun libs
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
+%post -n compat32-%{name}-libs
|
|
|
+/sbin/ldconfig
|
|
|
+
|
|
|
+%postun -n compat32-%{name}-libs
|
|
|
+/sbin/ldconfig
|
|
|
+
|
|
|
%changelog
|
|
|
+* Fri Nov 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.1-2
|
|
|
+- added a subpackage 'compat32-unbound-libs'.
|
|
|
+
|
|
|
* Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.1-1
|
|
|
- updated to 1.8.1.
|
|
|
- rebuilt with openssl-1.1.1 and libevent-2.1.8.
|