File MogileFS-Client.spec of Package mogfs

#
# spec file for package perl-MogileFS-Client (Version 1.08)
#
# norootforbuild

%define tarname       MogileFS-Client

Name:           MogileFS-Client
Version:        1.08
Release:        0
Requires:       perl = %{perl_version}
Group:          Development/Libraries/Perl
License:        Artistic License; GPL v2 or later
URL:            http://www.danga.com/mogilefs/
Summary:        Client library for the MogileFS distributed file system.
Source:         MogileFS-Client.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  perl-IO-stringy
#BuildRequires:  perl(IO::WrapTie) >= 2.102
BuildRequires:  perl(LWP::Simple)
BuildRequires:  perl(fields)
BuildRequires:  perl(Test::More)
## Solve IO::WrapTie alternatives
#BuildRequires:  perl-libwww-perl
#Requires:  perl(IO::WrapTie) >= 2.102
Requires:  perl(LWP::Simple)
Requires:  perl(fields)
Requires:  perl(Test::More)
# Solve IO::WrapTie alternatives
Requires:  perl-IO-stringy
Requires:  perl-libwww-perl

%description
This module is a client library for the MogileFS distributed file system. The
class method 'new' creates a client object against a particular mogilefs tracker
and domain. This object may then be used to store and retrieve content easily
from MogileFS.

Authors:
--------
    Brad Fitzpatrick <brad@danga.com>
    Brad Whitaker <whitaker@danga.com>
    Mark Smith <marksmith@danga.com>

%prep
%setup -q -n %{tarname}-%{version}

%build
perl Makefile.PL
make
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc TODO
%doc %{_mandir}/man?/*
%{perl_vendorlib}/MogileFS
%{perl_vendorarch}/auto/MogileFS
/var/adm/perl-modules/*

%changelog
* Thu Jan 15 2009 badmofu
- New package