Use make macros

Make spec a bit more readable, use prepared build and install macros
with all required parameters.

https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
This commit is contained in:
Petr Menšík 2021-01-12 15:04:27 +01:00
parent 38613fc1f5
commit 359f0ddb46

View File

@ -55,12 +55,11 @@ off of your LDAP server.
autoreconf -fiv
export BIND9_CFLAGS='-I /usr/include/bind9 -DHAVE_TLS -DHAVE_THREAD_LOCAL'
%configure
make %{?_smp_mflags}
%make_build
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%make_install
mkdir -m 770 -p %{buildroot}/%{_localstatedir}/named/dyndb-ldap
# Remove unwanted files
@ -120,6 +119,8 @@ sed -i.bak -e "$SEDSCRIPT" /etc/named.conf
%changelog
* Tue Jan 12 2021 Petr Menšík <pemensik@redhat.com> - 11.6-4
- Support BIND 9.16.10
- Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Thu Dec 17 2020 Alexander Bokovoy <abokovoy@redhat.com> - 11.6-3
- Both require bind and require it for pre-install script