diff --git a/.cvsignore b/.cvsignore index e69de29..9cf9142 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +MogileFS-Client-1.07.tar.gz diff --git a/Makefile b/Makefile index aea03cb..9513ef0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -# Makefile for source rpm: perl-MogileFS-client +# Makefile for source rpm: perl-MogileFS-Client # $Id$ -NAME := perl-MogileFS-client +NAME := perl-MogileFS-Client SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common diff --git a/perl-MogileFS-Client.spec b/perl-MogileFS-Client.spec new file mode 100644 index 0000000..e7c9db0 --- /dev/null +++ b/perl-MogileFS-Client.spec @@ -0,0 +1,61 @@ +Name: perl-MogileFS-Client +Version: 1.07 +Release: 2%{?dist} +Summary: Client library for the MogileFS distributed file system +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/~bradfitz/MogileFS-Client/ +Source0: http://www.cpan.org/authors/id/B/BR/BRADFITZ/MogileFS-Client-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: perl(IO::WrapTie) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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. + +%prep +%setup -q -n MogileFS-Client-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$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 +rm t/10-basics.t +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGES TODO +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jun 20 2007 Ruben Kerkhof 1.07-2 +- Incorporate suggestions from tibbs in review #240699: +- Remove test which does nothing without a mogilefs server +- Change URL to cpan site +* Sun May 20 2007 Ruben Kerkhof 1.07-1 +- Initial import + diff --git a/sources b/sources index e69de29..0daddd1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e53f76c7db26c7f8ac0628d3e35de1b2 MogileFS-Client-1.07.tar.gz