[ssh-installkeys/el6: 2/2] Adapt for EPEL6
Christopher Meng
cicku at fedoraproject.org
Fri Jun 14 13:44:52 UTC 2013
commit 6581a46e17db590c4deb37446f215a0f062805fc
Author: Christopher Meng <rpm at cicku.me>
Date: Fri Jun 14 21:44:15 2013 +0800
Adapt for EPEL6
ssh-installkeys.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ssh-installkeys.spec b/ssh-installkeys.spec
index 7e9a9af..1435915 100644
--- a/ssh-installkeys.spec
+++ b/ssh-installkeys.spec
@@ -9,6 +9,7 @@ Source0: http://www.catb.org/~esr/ssh-installkeys/%{name}-%{version}.t
BuildArch: noarch
BuildRequires: xmlto
Requires: python
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
This script tries to export ssh public keys to a specified site. It will
@@ -24,10 +25,15 @@ anything.
make %{?_smp_mflags}
%install
+rm -rf %{buildroot}
install -p -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -p -D -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+%clean
+rm -rf %{buildroot}
+
%files
+%defattr(-,root,root)
%doc COPYING README
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}
More information about the scm-commits
mailing list