Dominique Leuenberger 2016-06-13 19:50:47 +00:00 committed by Git OBS Bridge
commit d184ab4e77
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Jun 7 17:04:12 UTC 2016 - fbui@suse.com
- Do not rely on systemd.pc to find out where systemd unit dir is located (bsc#983167)
systemd.pc is part of systemd main package now. Instead of
build-requiring systemd, import systemd-rpm-macros which has the
%{_unitdir} definition and much less dependencies than systemd and
use it when configuring rpcbind so it won't try to find the unit dir
by using pkg-config.
Also replace BR libsystemd-daemon by libsystemd since the former is
obsolete and is replaced by the later.
-------------------------------------------------------------------
Mon Mar 14 14:48:36 CET 2016 - kukuk@suse.de

View File

@ -31,8 +31,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtirpc-devel >= 1.0.1
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: tcpd-devel
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(libsystemd)
PreReq: %fillup_prereq
Requires(pre): /usr/sbin/useradd
Patch1: 0001-systemd-unit-files.patch
@ -87,7 +88,8 @@ export LDFLAGS="-pie -Wl,-z,relro,-z,now"
--enable-warmstarts \
--disable-debug \
--with-statedir=%{_localstatedir}/lib/rpcbind \
--with-rpcuser=rpc
--with-rpcuser=rpc \
--with-systemdsystemunitdir=%{_unitdir}
%{__make} %{?jobs:-j%jobs}
%{__cc} -I/usr/include/tirpc -pie -fpie -fwhole-program -Wl,-z,relro,-z,now %{optflags} pmap_set.c -o pmap_set -ltirpc