Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Log-TraceMessages
perl-Log-TraceMessages.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Log-TraceMessages.spec of Package perl-Log-TraceMessages
# # spec file # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define modname Log-TraceMessages Name: perl-%{modname} Version: 1.4 Release: 0 Requires: perl-HTML-FromText BuildRequires: perl BuildRequires: perl-HTML-FromText BuildRequires: perl-macros BuildRequires: perl(Module::Install) URL: https://metacpan.org/pod/Log::TraceMessages Summary: Perl extension for trace messages used in debugging License: GPL/Artistic Group: Development/Libraries/Perl Source: %{modname}-%{version}.tar.gz Patch0: Log-TraceMessages.tmpnam.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{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 %autosetup -n %{modname}-%{version} -p1 %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make %install make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %check make test %files %defattr(-, root, root) %doc README Changes %doc %{_mandir}/man?/* %{perl_vendorlib}/Log %{perl_vendorlib}/auto/Log %{perl_vendorarch}/auto/Log %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor