Commit 91f97f80 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

Add spec file (RPM packaging)

Note that RPM reqires version so I set it to be 0.1.

Simple way to build (until we have 'make dist' target):

	cd ..
	ln -s ioping ioping-0.1
	tar chjf ioping-0.1.tar.bz2 ioping-0.1
	rpmbuild -ta ioping-0.1.tar.bz2
Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
parent 6e14b33e
Name:ioping
Version:0.1
Release:1%{?dist}
Summary:simple disk I/O latency monitoring tool
Group:Applications/System
License:GPLv3+
URL:http://code.google.com/p/ioping
Source0:ioping-%{version}.tar.bz2
BuildRoot:%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires:gcc, make
%description
This tool lets you monitor I/O latency in real time, in a way
similar to how ping(1) does for network latency.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/ioping
%attr(644, root, root) %{_mandir}/man1/ioping.1.*
%doc
%changelog
* Mon May 30 2011 Kir Kolyshkin <kir@openvz.org> - 0.1-1
- initial packaging
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment