[ndjbdns/el6] Added BuildRoot and %clean section to spec file
Simone Caronni
slaanesh at fedoraproject.org
Mon Jan 21 12:37:23 UTC 2013
commit ea9a5af83a1d944b47b248fd3ee8c1e655ce520d
Author: Simone Caronni <negativo17 at gmail.com>
Date: Mon Jan 21 13:33:54 2013 +0100
Added BuildRoot and %clean section to spec file
ndjbdns.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ndjbdns.spec b/ndjbdns.spec
index ad50711..583531d 100644
--- a/ndjbdns.spec
+++ b/ndjbdns.spec
@@ -8,6 +8,8 @@ License: GPLv2+
URL: http://pjp.dgplug.org/djbdns/
Source0: http://pjp.dgplug.org/djbdns/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
%if 0%{?fedora} || 0%{?rhel} >= 7
BuildRequires: systemd-units
%endif
@@ -68,6 +70,10 @@ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/
mv ndjbdns.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/ndjbdns
%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
%post
More information about the scm-commits
mailing list