commit 8b3aad667ac328115c6ccc6be1e365be322fea00 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Mon Jan 27 16:23:20 2014 +0100 Import .gitignore | 1 + perl-Log-Report.spec | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 138 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..21d2487 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Log-Report-0.998.tar.gz diff --git a/perl-Log-Report.spec b/perl-Log-Report.spec new file mode 100644 index 0000000..0f10d7b --- /dev/null +++ b/perl-Log-Report.spec @@ -0,0 +1,136 @@ +Name: perl-Log-Report +Version: 0.998 +Release: 1%{?dist} +Summary: Report a problem with exceptions and translation support +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Log-Report/ +Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/Log-Report-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(constant) +BuildRequires: perl(Devel::GlobalDestruction) >= 0.09 +BuildRequires: perl(Encode) >= 2.00 +BuildRequires: perl(Exporter) +# Fcntl not used at tests +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Spec) +# Getopt::Long not used at tests +BuildRequires: perl(IO::File) +BuildRequires: perl(List::Util) +BuildRequires: perl(locale) +# Locale::gettext not used at tests +BuildRequires: perl(Log::Dispatch) >= 2.00 +BuildRequires: perl(Log::Log4perl) +BuildRequires: perl(overload) +BuildRequires: perl(POSIX) +BuildRequires: perl(PPI) +BuildRequires: perl(strict) +BuildRequires: perl(Sys::Syslog) >= 0.27 +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +# Win32::TieRegistry used only from Log::Report::Win32Locale which we drop +# Tests: +BuildRequires: perl(Carp) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +BuildRequires: perl(lib) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) >= 0.86 +BuildRequires: perl(utf8) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Devel::GlobalDestruction) >= 0.09 +Requires: perl(Encode) >= 2.00 +Requires: perl(Sys::Syslog) >= 0.27 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Devel::GlobalDestruction|Encode|Sys::Syslog)\\)$ + +%description +Handling messages directed to users can be a hassle, certainly when the same +software is used for command-line and in a graphical interfaces (you may not +know how it is used), or has to cope with internationalization; these modules +try to simplify this. + +%package Dispatcher-Log4perl +Summary: Log::Log4perl back-end for Log::Report +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl-Log-Report = %{?epoch:%epoch:}%{version}-%{release} + +%description Dispatcher-Log4perl +This is an optional Log::Log4perl back-end for Log::Report logging framework. + +%package Dispatcher-LogDispatch +Summary: Log::Dispatch back-end for Log::Report +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl-Log-Report = %{?epoch:%epoch:}%{version}-%{release} + +%description Dispatcher-LogDispatch +This is an optional Log::Dispatch back-end for Log::Report logging framework. + +%package Extract +Summary: Collect translatable strings for Log::Report +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl-Log-Report = %{?epoch:%epoch:}%{version}-%{release} + +%description Extract +Log::Report logging framework supports localizing messages. This package +provides tools for collecting translatable strings from Perl code that uses +the Log::Report framework. + + +%prep +%setup -q -n Log-Report-%{version} +# Remove Win32 specific code requiring Win32 specific modules +rm lib/Log/Report/Win32Locale.p* +sed -i -e '\|^lib/Log/Report/Win32Locale.p|d' MANIFEST +# Correct shebang +sed -i -e '/^#!/ c#!%{__perl}' bin/xgettext-perl + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc ChangeLog README +%{perl_vendorlib}/* +%exclude %{perl_vendorlib}/Log/Report/Dispatcher/Log4perl.* +%exclude %{perl_vendorlib}/Log/Report/Dispatcher/LogDispatch.* +%exclude %{perl_vendorlib}/Log/Report/Extract.* +%exclude %{perl_vendorlib}/Log/Report/Extract +%{_mandir}/man3/* +%exclude %{_mandir}/man3/Log::Report::Dispatcher::Log4perl.* +%exclude %{_mandir}/man3/Log::Report::Dispatcher::LogDispatch.* +%exclude %{_mandir}/man3/Log::Report::Extract.* +%exclude %{_mandir}/man3/Log::Report::Extract::* + +%files Dispatcher-Log4perl +%{perl_vendorlib}/Log/Report/Dispatcher/Log4perl.* +%{_mandir}/man3/Log::Report::Dispatcher::Log4perl.* + +%files Dispatcher-LogDispatch +%{perl_vendorlib}/Log/Report/Dispatcher/LogDispatch.* +%{_mandir}/man3/Log::Report::Dispatcher::LogDispatch.* + +%files Extract +%{_bindir}/* +%{perl_vendorlib}/Log/Report/Extract.* +%{perl_vendorlib}/Log/Report/Extract +%{_mandir}/man3/Log::Report::Extract.* +%{_mandir}/man3/Log::Report::Extract::* + +%changelog +* Wed Nov 20 2013 Petr Pisar <ppisar@xxxxxxxxxx> 0.998-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..f15db57 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +045036c9a8f064bde959604d69972af0 Log-Report-0.998.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel