Author: iarnell
Update of /cvs/pkgs/rpms/perl-Config-GitLike/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv27971/devel
Modified Files:
.cvsignore sources
Added Files:
0001-Extend-attributes-from-parent-to-avoid-warnings.patch
0002-silence-uninitialized-warnings.patch
perl-Config-GitLike.spec
Log Message:
initial import
0001-Extend-attributes-from-parent-to-avoid-warnings.patch:
Git.pm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- NEW FILE 0001-Extend-attributes-from-parent-to-avoid-warnings.patch ---
From 0b2012c0787c1e1bcec294f5e67550bfcebe1c8e Mon Sep 17 00:00:00 2001
From: Thomas Sibley <tom(a)zulutango.org>
Date: Mon, 7 Jun 2010 10:33:45 -0400
Subject: Extend attributes from parent to avoid warnings
---
lib/Config/GitLike/Git.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Config/GitLike/Git.pm b/lib/Config/GitLike/Git.pm
index f2dd546..f68ad8d 100644
--- a/lib/Config/GitLike/Git.pm
+++ b/lib/Config/GitLike/Git.pm
@@ -5,11 +5,11 @@ use warnings;
extends 'Config::GitLike';
-has 'confname' => (
+has '+confname' => (
default => 'gitconfig',
);
-has 'compatible' => (
+has '+compatible' => (
default => 1,
);
--
1.7.0.1
0002-silence-uninitialized-warnings.patch:
GitLike.pm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
--- NEW FILE 0002-silence-uninitialized-warnings.patch ---
From 8591f1f8271c250517ab8bf66ad7fc97acf717a6 Mon Sep 17 00:00:00 2001
From: Iain Arnell <iarnell(a)gmail.com>
Date: Sun, 27 Jun 2010 11:46:33 +0200
Subject: silence uninitialized warnings
---
lib/Config/GitLike.pm | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index 25d5bec..cbc5e38 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -714,9 +714,13 @@ sub group_set {
my %args = %{$args_hash};
my ($section, $subsection, $name) = _split_key($args{key});
- my $key = join( '.',
- grep { defined } (lc $section, $subsection, lc $name),
- );
+ my $key;
+ {
+ no warnings 'uninitialized';
+ $key = join( '.',
+ grep { defined } (lc $section, $subsection, lc $name),
+ );
+ }
$args{multiple} = $self->is_multiple($key)
unless defined $args{multiple};
--
1.7.0.1
--- NEW FILE perl-Config-GitLike.spec ---
Name: perl-Config-GitLike
Version: 1.04
Release: 1%{?dist}
Summary: Git-compatible config file parsing
License: GPL+ or Artistic
Group: Development/Libraries
URL:
http://search.cpan.org/dist/Config-GitLike/
Source0:
http://www.cpan.org/authors/id/A/AL/ALEXMV/Config-GitLike-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.8.0
BuildRequires: perl(Any::Moose)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
#
http://github.com/bestpractical/config-gitlike/commit/0b2012c0787c1e1bcec...
Patch0: 0001-Extend-attributes-from-parent-to-avoid-warnings.patch
#
https://rt.cpan.org/Ticket/Display.html?id=58865
Patch1: 0002-silence-uninitialized-warnings.patch
%{?perl_default_filter}
%description
This module handles interaction with configuration files of the style used
by the version control system Git. It can both parse and modify these
files, as well as create entirely new ones.
%prep
%setup -q -n Config-GitLike-%{version}
%patch0 -p 1
%patch1 -p 1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$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 \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat Jun 26 2010 Iain Arnell <iarnell(a)gmail.com> 1.04-1
- Specfile autogenerated by cpanspec 1.78.
- Add patches to silence warnings
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Config-GitLike/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 27 Jun 2010 16:56:02 -0000 1.1
+++ .cvsignore 28 Jun 2010 03:32:01 -0000 1.2
@@ -0,0 +1 @@
+Config-GitLike-1.04.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Config-GitLike/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 27 Jun 2010 16:56:02 -0000 1.1
+++ sources 28 Jun 2010 03:32:01 -0000 1.2
@@ -0,0 +1 @@
+d307ae3fafd12aedba1033e7f7498a9c Config-GitLike-1.04.tar.gz