File perl-BSD-Resource.spec of Package perl-BSD-Resource
#
# spec file for package perl-BSD-Resource (Version 1.2904)
#
# Copyright (c) 2010 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-BSD-Resource
Version: 1.2904
Release: 5
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic
Url: http://cpan.org/modules/by-module/BSD
Summary: BSD::Resource Perl Module
Source: BSD-Resource-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%description
BSD::Resource is a class implementing access to process resource limit
and priority functions (e.g. getrusage, setrlimit, etc).
Authors:
--------
Jarkko Hietaniemi <jhi@iki.fi>
%prep
%setup -q -n BSD-Resource-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}
%check
# The testsuite tries to set a nice level of (current_nice_level + 1) -
# and checks for the same, so running the testsuite with nice 19 will
# fail, because renice(20) will yield a nice level of 19 instead.
%ifnarch %arm
make test
%endif
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/BSD
%{perl_vendorarch}/BSD
%changelog