EL5 package for Parse::StackTrace



Here's a spec file for Parse::StackTrace (mostly mailing it to
gnome-infrastructure so that will be googlable in case someone wants to
package it in the future.)

I think it should mostly conform to the Fedora/EPEL guidelines except:

 - Doesn't contain license text [missing from upstream packaging]
 - Lame %description (didn't want to write one, nothing obvious
   to steal in the upstream)

Also attached is a patch I needed to get the test suite to pass with
perl 5.8.8.

- Owen

Name:           perl-Parse-StackTrace
Version:        0.01
Release:        1%{?dist}
Summary:        Parse the text representation of a stack trace

Group:          Development/Libraries
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/Parse-StackTrace/
Source0:        http://www.cpan.org/authors/id/M/MK/MKANAT/Parse-StackTrace-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:         Parse-StackTrace-0.01-escapeat.patch

BuildArch:      noarch
BuildRequires:  perl(Module::CoreList)
BuildRequires:  perl(Module::Install)
BuildRequires:  perl(Moose)
BuildRequires:  perl(MooseX::AttributeHelpers)
BuildRequires:  perl(Exception::Class)

%description
Parse the text representation of a stack trace

%prep
%setup -q -n Parse-StackTrace-%{version}

%patch -p1 -b .escapeat

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/Parse/
%{_mandir}/man3/*.3pm*


%changelog
* Thu Jul 30 2009 Owen Taylor <otaylor redhat com> - 0.01-1
- Initial version

diff -up Parse-StackTrace-0.01/lib/Parse/StackTrace/Type/GDB/Frame.pm.escapeat Parse-StackTrace-0.01/lib/Parse/StackTrace/Type/GDB/Frame.pm
--- Parse-StackTrace-0.01/lib/Parse/StackTrace/Type/GDB/Frame.pm.escapeat	2009-07-31 00:17:25.000000000 +0000
+++ Parse-StackTrace-0.01/lib/Parse/StackTrace/Type/GDB/Frame.pm	2009-07-31 00:18:52.000000000 +0000
@@ -13,7 +13,7 @@ use constant FRAME_REGEX => qr/
    #1level    #2loc
 ^\#(\d+)\s+(?:(0x[A-Fa-f0-9]+)\s+in\s+)?
 #3func        #4libTag
-([^ \s]+)(?:@+([A-Z]+_[\d\.]+))?\s*
+([^\ \s]+)(?:\ +([A-Z]+_[\d\.]+))?\s*
   #5args                #6library
 \(([^\)]*)\)\s*(?:from\s(\S+))?
            #7file  #8line


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]