[pgtune/el5: 3/3] add buildroot and defattr, which are needed for el5
Miroslav Suchý
msuchy at fedoraproject.org
Tue Mar 6 08:44:31 UTC 2012
commit 062a729f1f1b624cc5f172fb15854f7f50dc0afa
Author: Miroslav Suchý <msuchy at redhat.com>
Date: Tue Mar 6 09:44:06 2012 +0100
add buildroot and defattr, which are needed for el5
pgtune.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pgtune.spec b/pgtune.spec
index 38701e8..d65d412 100644
--- a/pgtune.spec
+++ b/pgtune.spec
@@ -12,6 +12,7 @@ Requires: postgresql-server
BuildRequires: asciidoc
BuildRequires: libxslt
Buildarch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
pgtune takes the wimpy default postgresql.conf and expands the database server
@@ -26,6 +27,7 @@ cp %{SOURCE1} .
a2x -d manpage -f manpage pgtune.8.asciidoc
%install
+rm -rf $RPM_BUILD_ROOT
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}
@@ -36,8 +38,10 @@ mkdir -p %{buildroot}/%{_mandir}/man8
install -m 644 pgtune.8 %{buildroot}/%{_mandir}/man8
%clean
+rm -rf $RPM_BUILD_ROOT
%files
+%defattr(-,root,root,-)
%doc TODO COPYRIGHT
%doc %{_mandir}/man8/pgtune.8*
%dir %{_datadir}/%{name}
More information about the scm-commits
mailing list