67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
Name: iops
|
|
Version: 0.006
|
|
Release: 0
|
|
Summary: Show process I/O operations
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JJ/JJORE/App-Iops-%{version}.tar.gz
|
|
Source99: iops-rpmlintrc
|
|
URL: http://search.cpan.org/dist/App-Iops
|
|
Group: Development/Libraries/Perl
|
|
License: GPL-2.0+ or Artistic-1.0
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: perl-macros
|
|
BuildRequires: make
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: strace
|
|
Requires: strace
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Summarize a process's I/O operations in real time.
|
|
|
|
%prep
|
|
%setup -q -n "App-Iops-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?_smp_flags}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc LICENSE
|
|
%{_bindir}/iops
|
|
%doc %{_mandir}/man1/iops.1*
|
|
%dir %{perl_vendorlib}/App
|
|
%{perl_vendorlib}/App/Iops.pm
|
|
%doc %{perl_man3dir}/App::Iops.%{perl_man3ext}%{ext_man}
|
|
|
|
%changelog
|