OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-TraceMessages?expand=0&rev=6
102 lines
2.6 KiB
RPMSpec
102 lines
2.6 KiB
RPMSpec
%define modname Log-TraceMessages
|
|
Name: perl-%{modname}
|
|
Version: 1.4
|
|
Release: 4
|
|
Requires: perl-HTML-FromText
|
|
BuildRequires: perl perl-HTML-FromText
|
|
Summary: Perl extension for trace messages used in debugging
|
|
License: GPL/Artistic
|
|
Group: Development/Libraries/Perl
|
|
Source: %{modname}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module is a better way of putting 'hello there' trace messages in
|
|
your code. It lets you turn tracing on and off without commenting out
|
|
trace statements, and provides other useful things like HTML-ified
|
|
trace messages for CGI scripts and an easy way to trace out data
|
|
structures using Data::Dumper.
|
|
|
|
From the pod documentation:
|
|
|
|
use Log::TraceMessages qw(t d);
|
|
$Log::TraceMessages::On = 1;
|
|
t 'got to here';
|
|
t 'value of $a is ' . d($a);
|
|
{
|
|
local $Log::TraceMessages::On = 0;
|
|
t 'this message will not be printed';
|
|
}
|
|
|
|
# For a CGI program producing HTML
|
|
$Log::TraceMessages::CGI = 1;
|
|
|
|
# Or to turn on trace if there's a command-line argument '--trace'
|
|
Log::TraceMessages::check_argv();
|
|
|
|
This is free software and you may distribute it under the same terms
|
|
as perl itself. There is no warranty.
|
|
|
|
Authors:
|
|
--------
|
|
Ed Avis <ed@membled.com>
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
make
|
|
make test
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
%perl_process_packlist
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc README Changes
|
|
%doc %{_mandir}/man?/*
|
|
%{perl_vendorlib}/Log
|
|
%{perl_vendorlib}/auto/Log
|
|
%{perl_vendorarch}/auto/Log
|
|
|
|
%changelog
|
|
|
|
* Tue Jun 20 2006 - James Oakley <jfunk@funktronics.ca> - 1.4-4
|
|
- Build under buildservice
|
|
|
|
* Fri Nov 11 2005 - James Oakley <jfunk@funktronics.ca> - 1.4-ft.3
|
|
- Build for SL10
|
|
|
|
* Thu May 12 2005 - James Oakley <jfunk@funktronics.ca> - 1.4-ft.2
|
|
- Build for SL93
|
|
|
|
* Fri Nov 19 2004 - James Oakley <jfunk@funktronics.ca> - 1.4-ft.1
|
|
- Build for SL92
|
|
|
|
* Tue May 11 2004 - James Oakley <jfunk@funktronics.ca> - 1.4-2
|
|
- Build for SL91
|
|
|
|
* Thu Jan 15 2004 - James Oakley <jfunk@funktronics.ca> - 1.4-1
|
|
- Update
|
|
|
|
* Mon Nov 03 2003 - James Oakley <jfunk@funktronics.ca> - 1.3-2
|
|
- Build for SUSE 9.0
|
|
|
|
* Fri May 30 2003 - James Oakley <jfunk@funktronics.ca> - 1.3-1
|
|
- Update
|
|
- Build for SuSE 8.2
|
|
|
|
* Wed Dec 11 2002 - James Oakley <jfunk@funktronics.ca> - 1.2-1
|
|
- Update to 1.2
|
|
- Build for SuSE 8.1
|
|
|
|
* Thu May 30 2002 - James Oakley <jfunk@funktronics.ca>
|
|
- Initial build with new spec layout
|