67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
|
||
|
Name: perl-Devel-StackTrace
|
||
|
Epoch: 1
|
||
|
Version: 1.31
|
||
|
Release: 1mamba
|
||
|
Summary: Devel::StackTrace - Simple objects to deal with stack traces
|
||
|
Group: System/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/DR/DROLSKY/Devel-StackTrace-%{version}.tar.gz
|
||
|
License: GPL, Artistic
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: perl-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: perl >= %perl_major_ver
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Simple objects to deal with stack traces.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Devel-StackTrace-%{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
|
||
|
* Wed Feb 12 2014 Automatic Build System <autodist@mambasoft.it> 1.31-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Thu Mar 21 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.30-1mamba
|
||
|
- update to 1.30
|
||
|
|
||
|
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1902-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Fri Nov 09 2007 Aleph0 <aleph0@openmamba.org> 1.15-1mamba
|
||
|
- package created by autospec
|