Remove check for libsystemd-daemon from ypbind-systemdso.patch (RHBZ#1396893).

- Add check for systemd/sd-daemon.h to ypbind-systemdso.patch.
- Spec file cosmetics.
- Add %license tag.
This commit is contained in:
Ralf Corsépius 2016-11-23 18:49:33 +01:00
parent a6f05e6222
commit 215d292297
2 changed files with 17 additions and 12 deletions

View File

@ -1,16 +1,14 @@
diff -ru a/configure.ac b/configure.ac
--- a/configure.ac 2014-10-21 17:37:20.526628827 +0200
+++ b/configure.ac 2014-10-21 17:51:39.649362686 +0200
@@ -44,7 +44,8 @@
diff -Naur ypbind-mt-1.38.orig/configure.ac ypbind-mt-1.38/configure.ac
--- ypbind-mt-1.38.orig/configure.ac 2014-10-20 12:20:33.000000000 +0200
+++ ypbind-mt-1.38/configure.ac 2016-11-23 18:15:58.473713436 +0100
@@ -44,6 +44,7 @@
AC_CHECK_LIB(socket, bind)
AC_CHECK_LIB(pthread, pthread_create)
-PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209], [USE_SD_NOTIFY=1], [USE_SD_NOTIFY=0])
+PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209] [libsystemd-daemon >= 209], [USE_SD_NOTIFY=1], [USE_SD_NOTIFY=0])
+
+AC_CHECK_HEADERS([systemd/sd-daemon.h])
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209], [USE_SD_NOTIFY=1], [USE_SD_NOTIFY=0])
AC_SUBST(USE_SD_NOTIFY)
AC_ARG_ENABLE([dbus-nm],
@@ -105,7 +106,7 @@
AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test x$enable_man != xno)

View File

@ -2,7 +2,7 @@ Summary: The NIS daemon which binds NIS clients to an NIS domain
Name: ypbind
Epoch: 3
Version: 1.38
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source0: http://www.linux-nis.org/download/ypbind-mt/ypbind-mt-%{version}.tar.bz2
@ -98,17 +98,24 @@ install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/ypbind-post-waitbind
%{_sysconfdir}/dhcp/dhclient.d/*
%config(noreplace) %{_sysconfdir}/yp.conf
%dir %{_localstatedir}/yp/binding
%doc README NEWS COPYING
%doc README NEWS
%license COPYING
%changelog
* Wed Nov 23 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 3:1.38-7
- Remove check for libsystemd-daemon from ypbind-systemdso.patch (RHBZ#1396893).
- Add check for systemd/sd-daemon.h to ypbind-systemdso.patch.
- Spec file cosmetics.
- Add %license tag.
* Mon Nov 07 2016 Petr Kubat <pkubat@redhat.com> - 3:1.38-6
- Add runtime depenedncy on nss_nis
- Add runtime dependency on nss_nis
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3:1.38-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Jan 25 2016 Matej Muzila <mmuzila@redhat.com> 3:1.38-4
- Do not resstart ypbind on dhcp renew if nis domain or nis servers
- Do not restart ypbind on dhcp renew if nis domain or nis servers
haven't changed
Resolves: rhbz#1301708