%define _use_internal_dependency_generator 0
Name: perl-BSD-Resource
Version: 1.23
Release: 6
Summary: BSD process resource limit and priority functions
License: distributable
Group: Development/Libraries
URL: http://search.cpan.org/search?mode=module&query=BSD%3a%3aResource
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: perl >= 0:5.00503
Source0: BSD-Resource-%{version}.tar.gz
%description
A module providing an interface for testing and setting process limits
and priorities.
%prep
%setup -q -n BSD-Resource-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
make
make test || /bin/true
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
make install
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
find $RPM_BUILD_ROOT/usr -type f -print | \
sed "s@^$RPM_BUILD_ROOT@@g" | \
grep -v perllocal.pod | \
grep -v "\.packlist" > BSD-Resource-%{version}-filelist
if [ "$(cat BSD-Resource-%{version}-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit -1
fi
%files -f BSD-Resource-%{version}-filelist
%defattr(-,root,root)
%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/BSD
%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/auto/BSD
%changelog
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.23-1
- update to 1.23
* Thu Jun 05 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
- rebuild
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
- automated release bump and build
* Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
- properly claim directories owned by package so they are removed when package is removed
* Wed Jan 30 2002 cturner@redhat.com
- Specfile autogenerated