2024-01-06 09:38:53 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Sub-Uplevel
|
|
|
|
Epoch: 1
|
2024-01-06 09:38:53 +01:00
|
|
|
Version: 0.2600
|
2024-01-06 09:38:53 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Sub::Uplevel - Apparently run a function in a higher stack frame
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
|
|
URL: http://www.cpan.org
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-%{version}.tar.gz
|
|
|
|
License: GPL
|
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Like Tcl's uplevel() function, but not quite so dangerous. The idea is just to fool caller(). All the really naughty bits of Tcl's uplevel() are avoided.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Sub-Uplevel-%{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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:38:53 +01:00
|
|
|
* Mon Aug 29 2016 Automatic Build System <autodist@mambasoft.it> 0.2600-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:38:53 +01:00
|
|
|
* Mon Feb 23 2015 Automatic Build System <autodist@mambasoft.it> 0.25-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:38:53 +01:00
|
|
|
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 0.24-1mamba
|
|
|
|
- update to 0.24
|
|
|
|
|
|
|
|
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2002-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 0.18-1mamba
|
|
|
|
- update to 0.18
|
|
|
|
|
|
|
|
* Mon Jan 24 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.09-1qilnx
|
|
|
|
- package created by autospec
|