127 lines
3.9 KiB
RPMSpec
127 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Log-Log4perl (Version 1.07)
|
|
#
|
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: perl-Log-Log4perl
|
|
License: Artistic License
|
|
Group: Development/Libraries/Perl
|
|
#Requires:
|
|
Autoreqprov: on
|
|
Summary: Log4j implementation for Perl
|
|
Version: 1.07
|
|
Release: 1
|
|
Source: Log-Log4perl-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Log4j implementation for Perl
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Mike Schilli <m@perlmeister.com>
|
|
Kevin Goess <cpan@goess.org>
|
|
|
|
%prep
|
|
%setup -n Log-Log4perl-%{version}
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%build
|
|
perl Makefile.PL
|
|
make
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%install
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
%if %suse_version > 820
|
|
make DESTDIR=$RPM_BUILD_ROOT \
|
|
INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
|
|
install_vendor
|
|
%perl_process_packlist
|
|
%else
|
|
install -d $RPM_BUILD_ROOT/%{perl_archlib}
|
|
make PREFIX=$RPM_BUILD_ROOT/usr \
|
|
INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
|
|
install
|
|
install -d $RPM_BUILD_ROOT/var/adm/perl-modules
|
|
cat $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod | sed "s@$RPM_BUILD_ROOT@@g" > $RPM_BUILD_ROOT/var/adm/perl-modules/%{name}
|
|
cd $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Log/Log4perl
|
|
sed "s@$RPM_BUILD_ROOT@@g" < .packlist | sort -u > .packlist.tmp
|
|
mv .packlist.tmp .packlist
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%if %suse_version > 820
|
|
%dir %{perl_vendorlib}/Log
|
|
%{perl_vendorlib}/Log/*
|
|
%dir %{perl_vendorarch}/auto/Log
|
|
%dir %{perl_vendorarch}/auto/Log/Log4perl
|
|
%{perl_vendorarch}/auto/Log/Log4perl/.packlist
|
|
/var/adm/perl-modules/%{name}
|
|
%else
|
|
%dir %{perl_sitelib}/Log
|
|
%{perl_sitelib}/Log/*
|
|
%{perl_sitearch}/auto/Log/Log4perl/.packlist
|
|
%endif
|
|
%doc Changes LICENSE MANIFEST README eg xml
|
|
%doc %{_mandir}/man3/*
|
|
|
|
%changelog -n perl-Log-Log4perl
|
|
* Wed Oct 25 2006 - ug@suse.de
|
|
- version update from 1.02 to 1.07
|
|
- minor bugfixes
|
|
- documentation enhanced
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Tue Jan 03 2006 - ug@suse.de
|
|
- version update from 1.01 to 1.02
|
|
* Mon Dec 12 2005 - ug@suse.de
|
|
- version update from 0.52 to 1.01
|
|
* Wed Sep 28 2005 - dmueller@suse.de
|
|
- add norootforbuild
|
|
* Wed Jul 13 2005 - ug@suse.de
|
|
- version update from 0.51 to 0.52
|
|
- DateFormat.pm fix for 3-letter month abbreviations
|
|
- shortcut to simulate Apache's log format
|
|
- better error message when a logger is defined
|
|
twice in a config.
|
|
* Fri Jan 21 2005 - ug@suse.de
|
|
- version update from 0.47 to 0.51
|
|
- Added umask option to file appender
|
|
- Added remove_appender() and eradicate_appender() method
|
|
- Added a generic buffered composite appender, L4p::Appender::Buffer
|
|
- Added ':resurrect' source filter
|
|
- Added 'appender_by_name()
|
|
- Added convenience function appender_thresholds_adjust()
|
|
- Added ScreenANSIColor appender to colorize messages
|
|
- New interface for custom config parsers.
|
|
- tons of fixes
|
|
* Fri Aug 20 2004 - ug@suse.de
|
|
- version update from 0.42 to 0.47
|
|
- added filename() method to L4P::Appender::File
|
|
- added RRDs appender Log::Log4perl::Appender::RRDs
|
|
- Added a cleanup() function to Logger.pm
|
|
- make the socket appender more forgiving. New option
|
|
"silent_recovery" will silently ignore errors
|
|
- added Log::Log4perl::infiltrate_lwp() to make LWP::UserAgent
|
|
play in the L4p framework upon request
|
|
- tons of fixes
|
|
* Fri Feb 27 2004 - ug@suse.de
|
|
- version update from 0.36 to 0.42
|
|
* Mon Aug 25 2003 - ro@suse.de
|
|
- remove man3 dir from filelist (already in filesystem.rpm)
|
|
* Mon Aug 25 2003 - ro@suse.de
|
|
- removed noarch: perl modules always have arch in the path
|
|
* Mon Aug 25 2003 - ug@suse.de
|
|
- initial package
|