Name: perl-Git-Repository
Version: 1.27
Release: 1%{?dist}
Summary: Perl interface to Git repositories
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Git-Repository/
Source0: http://www.cpan.org/authors/id/B/BO/BOOK/Git-Repository-%{version}.tar.gz
# see https://rt.cpan.org/Ticket/Display.html?id=80321
Patch0: Git-Repository-t23-quiet.patch
BuildArch: noarch
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(System::Command) >= 1.05
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: git
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: git
%description
Git::Repository is a Perl interface to Git, for scripted interactions with
repositories. It's a low-level interface that allows calling any Git
command, whether porcelain or plumbing, including bidirectional commands
such as git commit-tree.
%package -n perl-Test-Git
Summary: Helper functions for test scripts using Git
%description -n perl-Test-Git
Test::Git provides a number of helpful functions when running test scripts that
require the creation and management of a Git repository.
%prep
%setup -q -n Git-Repository-%{version}
%patch0 -p 1
iconv -f iso8859-1 -t utf-8 Changes >Changes.conv \
&& touch -r Changes Changes.conv \
&& mv -f Changes.conv Changes
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
./Build test
%files
%doc Changes README
%{perl_vendorlib}/Git
%{_mandir}/man3/*
%files -n perl-Test-Git
%doc Changes README
%{perl_vendorlib}/Test
%changelog
* Sun Oct 21 2012 Iain Arnell <iarnell@gmail.com> 1.27-1
- update to latest upstream version
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 1.25-3
- Perl 5.16 rebuild
* Fri Feb 10 2012 Iain Arnell <iarnell@gmail.com> 1.25-2
- avoid file dependencies; just require git
- add Changes and README to perl-Test-Git docs
- explicit BuildRequires for dual-lifed modules
* Fri Jan 13 2012 Iain Arnell <iarnell@gmail.com> 1.25-1
- Specfile autogenerated by cpanspec 1.78.
- Separate sub-package for Test::Git