fa2177f
%global libname MogileFS-Client
fa2177f
fa2177f
Name:           perl-%{libname}
fa2177f
Version:        1.11
fa2177f
Release:        1%{?dist}
a3b057a
Summary:        Client library for the MogileFS distributed file system
0f5147c
License:        GPL+ or Artistic
a3b057a
Group:          Development/Libraries
fa2177f
URL:            http://search.cpan.org/~bradfitz/%{libname}/
fa2177f
Source0:        http://search.cpan.org/CPAN/authors/id/D/DO/DORMANDO/%{libname}-%{version}.tar.gz
a3b057a
BuildArch:      noarch
a3b057a
a3b057a
BuildRequires:  perl(IO::WrapTie)
a3b057a
BuildRequires:  perl(LWP::UserAgent)
a3b057a
BuildRequires:  perl(ExtUtils::MakeMaker)
a3b057a
BuildRequires:  perl(Test::More)
a3b057a
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
a3b057a
a3b057a
%description
a3b057a
This module is a client library for the MogileFS distributed file system.
a3b057a
The class method 'new' creates a client object against a particular
a3b057a
mogilefs tracker and domain. This object may then be used to store and
a3b057a
retrieve content easily from MogileFS.
a3b057a
a3b057a
%prep
fa2177f
%setup -q -n %{libname}-%{version}
a3b057a
a3b057a
%build
a3b057a
%{__perl} Makefile.PL INSTALLDIRS=vendor
a3b057a
make %{?_smp_mflags}
a3b057a
a3b057a
%install
a3b057a
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
a3b057a
a3b057a
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
a3b057a
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
a3b057a
a3b057a
%{_fixperms} $RPM_BUILD_ROOT/*
a3b057a
a3b057a
%check
a3b057a
rm t/10-basics.t
a3b057a
make test
a3b057a
a3b057a
%files
a3b057a
%defattr(-,root,root,-)
a3b057a
%doc CHANGES TODO
fa2177f
%{perl_vendorlib}/MogileFS
fa2177f
%{_mandir}/man3/MogileFS::Client.*
a3b057a
a3b057a
%changelog
fa2177f
* Fri Jun 25 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.11-1
fa2177f
- Upstream released new version
fa2177f
3dc2764
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.08-6
3dc2764
- Mass rebuild with perl-5.12.0
3dc2764
807caaa
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.08-5
807caaa
- rebuild against perl 5.10.1
807caaa
52f208d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-4
52f208d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
52f208d
effe9bb
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-3
effe9bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
effe9bb
0f5147c
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.08-2
0f5147c
- rebuild for new perl
0f5147c
fe63b20
* Thu Aug 09 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.08-1
fe63b20
- Upstream released new version
fa2177f
a3b057a
* Wed Jun 20 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.07-2
a3b057a
- Incorporate suggestions from tibbs in review #240699:
a3b057a
- Remove test which does nothing without a mogilefs server
a3b057a
- Change URL to cpan site
fa2177f
a3b057a
* Sun May 20 2007 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.07-1
a3b057a
- Initial import
a3b057a