[ndjbdns/f17] Added BuildRoot and %clean section to spec file
Simone Caronni
slaanesh at fedoraproject.org
Mon Jan 21 12:44:22 UTC 2013
commit 552ffc1cef86b6872c68afaaa592dc0446a73d4a
Author: Simone Caronni <negativo17 at gmail.com>
Date: Mon Jan 21 13:43:15 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