Accepting request 266520 from home:jengelh:branches:network

- Explicitly BuildRequire systemd-rpm-macros since it is used
  for lwresd %post etc. Then drop pre-12.x material.
  Remove configure.in.diff2.

OBS-URL: https://build.opensuse.org/request/show/266520
OBS-URL: https://build.opensuse.org/package/show/network/bind?expand=0&rev=160
This commit is contained in:
Andrey Karepin 2015-01-11 16:14:25 +00:00 committed by Git OBS Bridge
parent ce7779f753
commit 43ba3368ef
3 changed files with 8 additions and 30 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Dec 12 02:28:36 UTC 2014 - jengelh@inai.de
- Explicitly BuildRequire systemd-rpm-macros since it is used
for lwresd %post etc. Then drop pre-12.x material.
Remove configure.in.diff2.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 11 13:03:30 UTC 2014 - jengelh@inai.de Thu Dec 11 13:03:30 UTC 2014 - jengelh@inai.de

View File

@ -41,7 +41,6 @@ Patch4: perl-path.diff
Patch51: pie_compile.diff Patch51: pie_compile.diff
Patch52: named-bootconf.diff Patch52: named-bootconf.diff
Patch53: bind-sdb-ldap.patch Patch53: bind-sdb-ldap.patch
Patch100: configure.in.diff2
Patch101: runidn.diff Patch101: runidn.diff
BuildRequires: krb5-devel BuildRequires: krb5-devel
BuildRequires: libcap BuildRequires: libcap
@ -53,6 +52,7 @@ BuildRequires: openldap2-devel
BuildRequires: openssl BuildRequires: openssl
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: python-base BuildRequires: python-base
BuildRequires: systemd-rpm-macros
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
Provides: bind8 Provides: bind8
Provides: bind9 Provides: bind9
@ -66,15 +66,11 @@ Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd /usr/sbin/usermod
Url: http://isc.org/sw/bind/ Url: http://isc.org/sw/bind/
Source60: dlz-schema.txt Source60: dlz-schema.txt
%if %ul_version >= 1
%define VENDOR UL
%else
%if "%{_vendor}" == "suse" %if "%{_vendor}" == "suse"
%define VENDOR SUSE %define VENDOR SUSE
%else %else
%define VENDOR %_vendor %define VENDOR %_vendor
%endif %endif
%endif
# Defines for user and group add # Defines for user and group add
%define NAMED_UID 44 %define NAMED_UID 44
%define NAMED_UID_NAME named %define NAMED_UID_NAME named
@ -319,9 +315,7 @@ Summary: BIND documentation
Group: Documentation/Other Group: Documentation/Other
Version: %rpm_vers Version: %rpm_vers
Release: 0 Release: 0
%if 0%{?suse_version} >= 1120
BuildArch: noarch BuildArch: noarch
%endif
%description doc %description doc
Documentation of the Berkeley Internet Name Domain (BIND) Domain Name Documentation of the Berkeley Internet Name Domain (BIND) Domain Name
@ -336,9 +330,7 @@ Release: 0
Requires: %{name}-chrootenv Requires: %{name}-chrootenv
Provides: dns_daemon Provides: dns_daemon
Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd
%if %suse_version > 1131
PreReq: sysvinit(network) sysvinit(syslog) PreReq: sysvinit(network) sysvinit(syslog)
%endif
%description lwresd %description lwresd
Bind-lwresd provides resolution services to local clients using a Bind-lwresd provides resolution services to local clients using a
@ -372,14 +364,9 @@ Name Domain (BIND) DNS server is found in the package named bind.
%patch1 -p1 %patch1 -p1
%patch4 -p0 %patch4 -p0
#%patch50 #%patch50
%if 0%{?suse_version} >= 1000
%patch51 %patch51
%endif
%patch52 %patch52
%patch53 %patch53
%if 0%{?suse_version} <= 1010
%patch100 -p1
%endif
%patch101 -p1 %patch101 -p1
# modify settings of some files regarding to OS version and vendor # modify settings of some files regarding to OS version and vendor
function replaceStrings() function replaceStrings()
@ -493,7 +480,6 @@ mkdir -p \
%{__make} DESTDIR=${RPM_BUILD_ROOT} install %{__make} DESTDIR=${RPM_BUILD_ROOT} install
pushd contrib/idn/idnkit-1.0-src pushd contrib/idn/idnkit-1.0-src
%{__make} DESTDIR=${RPM_BUILD_ROOT} install %{__make} DESTDIR=${RPM_BUILD_ROOT} install
popd
# remove useless .la files # remove useless .la files
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libidnkit.la rm -f ${RPM_BUILD_ROOT}/%{_lib}/libidnkit.la
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libidnkitlite.la rm -f ${RPM_BUILD_ROOT}/%{_lib}/libidnkitlite.la
@ -940,10 +926,8 @@ fi
%{_bindir}/genDDNSkey %{_bindir}/genDDNSkey
%{_sbindir}/arpaname %{_sbindir}/arpaname
%{_sbindir}/ddns-confgen %{_sbindir}/ddns-confgen
%if 0%{?suse_version} > 1110
%{_sbindir}/dnssec-checkds %{_sbindir}/dnssec-checkds
%{_sbindir}/dnssec-coverage %{_sbindir}/dnssec-coverage
%endif
%{_sbindir}/dnssec-dsfromkey %{_sbindir}/dnssec-dsfromkey
%{_sbindir}/dnssec-importkey %{_sbindir}/dnssec-importkey
%{_sbindir}/dnssec-keyfromlabel %{_sbindir}/dnssec-keyfromlabel
@ -970,10 +954,8 @@ fi
%{_mandir}/man1/nsupdate.1.gz %{_mandir}/man1/nsupdate.1.gz
%{_mandir}/man5/rndc.conf.5.gz %{_mandir}/man5/rndc.conf.5.gz
%{_mandir}/man8/ddns-confgen.8.gz %{_mandir}/man8/ddns-confgen.8.gz
%if 0%{?suse_version} > 1110
%{_mandir}/man8/dnssec-checkds.8.gz %{_mandir}/man8/dnssec-checkds.8.gz
%{_mandir}/man8/dnssec-coverage.8.gz %{_mandir}/man8/dnssec-coverage.8.gz
%endif
%{_mandir}/man8/dnssec-dsfromkey.8.gz %{_mandir}/man8/dnssec-dsfromkey.8.gz
%{_mandir}/man8/dnssec-importkey.8.gz %{_mandir}/man8/dnssec-importkey.8.gz
%{_mandir}/man8/dnssec-keyfromlabel.8.gz %{_mandir}/man8/dnssec-keyfromlabel.8.gz

View File

@ -1,11 +0,0 @@
--- a/configure.in
+++ a/configure.in 2011/04/21 13:34:11
@@ -280,7 +280,7 @@
AC_C_INLINE
AC_C_VOLATILE
AC_CHECK_FUNC(sysctlbyname, AC_DEFINE(HAVE_SYSCTLBYNAME))
-AC_C_FLEXIBLE_ARRAY_MEMBER
+#AC_C_FLEXIBLE_ARRAY_MEMBER
#
# UnixWare 7.1.1 with the feature supplement to the UDK compiler