[glibc] Pull in systemd during build and use the tmpfilesdir macro.
Siddhesh Poyarekar
siddhesh at fedoraproject.org
Fri Aug 16 13:58:58 UTC 2013
commit 944ed516b07a1bc8d88c5f5b276236ea8c9f154f
Author: Siddhesh Poyarekar <siddhesh at redhat.com>
Date: Fri Aug 16 19:30:36 2013 +0530
Pull in systemd during build and use the tmpfilesdir macro.
glibc.spec | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/glibc.spec b/glibc.spec
index 82d87e1..ac1dfeb 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -237,6 +237,9 @@ BuildRequires: /bin/ps, /bin/kill, /bin/awk
BuildRequires: systemtap-sdt-devel
%endif
+# We use systemd rpm macros for nscd
+BuildRequires: systemd
+
# This is to ensure that __frame_state_for is exported by glibc
# will be compatible with egcs 1.x.y
BuildRequires: gcc >= 3.2
@@ -923,8 +926,8 @@ install -p -m 644 nis/nss $RPM_BUILD_ROOT/etc/default/nss
# This is for ncsd - in glibc 2.2
install -m 644 nscd/nscd.conf $RPM_BUILD_ROOT/etc
-mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/
-install -m 644 releng/nscd.conf %{buildroot}%{_prefix}/lib/tmpfiles.d/
+mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
+install -m 644 releng/nscd.conf %{buildroot}%{_tmpfilesdir}
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
install -m 644 releng/nscd.service releng/nscd.socket $RPM_BUILD_ROOT/lib/systemd/system
%endif
@@ -1565,7 +1568,7 @@ rm -f *.filelist*
%dir %attr(0755,root,root) /var/db/nscd
/lib/systemd/system/nscd.service
/lib/systemd/system/nscd.socket
-%{_prefix}/lib/tmpfiles.d/nscd.conf
+%{_tmpfilesdir}/nscd.conf
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/nscd.pid
%attr(0666,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/socket
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/run/nscd/passwd
@@ -1593,6 +1596,7 @@ rm -f *.filelist*
%changelog
* Fri Aug 16 2013 Siddhesh Poyarekar <siddhesh at redhat.com> - 2.18-1
- Upstream release 2.18.
+- Pull in systemd during build and use the tmpfilesdir macro.
* Wed Aug 14 2013 Carlos O'Donell <codonell at redhat.com> - 2.17.90-14
- Update spec file to use rpm prefix everywhere.
More information about the scm-commits
mailing list