perl-BSD-Resource/perl-BSD-Resource.spec

109 lines
3.2 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-BSD-Resource
Version: 1.2911
Release: 2mamba
Summary: BSD::Resource - implements BSD process resource limit functions
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://www.cpan.org/authors/id/J/JH/JHI/BSD-Resource-%{version}.tar.gz
License: GPL, Artistic
Requires(post):%{__install_info}
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
%description
This Perl extension implements the BSD process resource limit functions
getrusage() getrlimit() setrlimit()
and the BSD process priority functions. These are available also via
core Perl but here we do more tricks so that the PRIO_* are available.
getpriority() setpriority()
Also is provided
times()
which provides the same functionality as the one in core Perl, only
with better time resolution.
%prep
%setup -q -n BSD-Resource-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 1.2911-2mamba
- rebuilt with perl 5.36.0
* Fri Oct 27 2017 Automatic Build System <autodist@mambasoft.it> 1.2911-1mamba
- automatic update by autodist
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2909-2mamba
- rebuilt with perl 5.24
* Thu Feb 11 2016 Automatic Build System <autodist@mambasoft.it> 1.2909-1mamba
- automatic update by autodist
* Sat Nov 07 2015 Automatic Build System <autodist@mambasoft.it> 1.2908-1mamba
- automatic update by autodist
* Mon Aug 12 2013 Automatic Build System <autodist@mambasoft.it> 1.2907-1mamba
- automatic update by autodist
* Wed Jun 26 2013 Automatic Build System <autodist@mambasoft.it> 1.2905-1mamba
- automatic version update by autodist
* Wed Nov 07 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2904-2mamba
- perl 5.16 mass rebuild
* Tue Apr 13 2010 Automatic Build System <autodist@mambasoft.it> 1.2904-1mamba
- automatic update by autodist
* Tue Apr 14 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2903-1mamba
- automatic update by autodist
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2902-1mamba
- automatic update by autodist
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.28-2mamba
- automatic rebuild by autodist
* Thu Nov 15 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.28-1mamba
- package created by autospec