Files
perl-Parse-Netstat/perl-Parse-Netstat.spec

70 lines
2.1 KiB
RPMSpec

#
# spec file for package perl-Parse-Netstat
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: perl-Parse-Netstat
Version: 0.03
Release: 0
Summary: Parse netstat output
Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHARYANTO/Parse-Netstat-%{version}.tar.gz
Url: http://search.cpan.org/dist/Parse-Netstat
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.3601
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Sub::Spec) >= 1.0.4
BuildRequires: perl(Exporter::Lite)
Requires: perl(Sub::Spec) >= 1.0.4
Requires: perl(Exporter::Lite)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
This module provides parse_netstat() to parse the output of the UNIX command
"netstat".
%prep
%setup -q -n "Parse-Netstat-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README Changes LICENSE
%dir %{perl_vendorlib}/Parse
%{perl_vendorlib}/Parse/Netstat.pm
%doc %{perl_man3dir}/Parse::Netstat.%{perl_man3ext}%{ext_man}
%changelog