diff --git a/README.md b/README.md index 4b4cfd6..5f750b9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Class-Factory-Util +This module exports a method that is useful for factory classes. + diff --git a/perl-Class-Factory-Util.spec b/perl-Class-Factory-Util.spec new file mode 100644 index 0000000..10da750 --- /dev/null +++ b/perl-Class-Factory-Util.spec @@ -0,0 +1,55 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Class-Factory-Util +Version: 1.7 +Release: 2mamba +Summary: Class::Factory::Util - Provide utility methods for factory classes +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Factory-Util-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module exports a method that is useful for factory classes. + +%prep +%setup -q -n Class-Factory-Util-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install destdir=%{buildroot} create_packlist=0 + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/Class +%{_mandir}/man3/*.3pm.gz +%doc Changes LICENSE README + +%changelog +* Thu Aug 16 2012 Silvan Calarco 1.7-2mamba +- imported in devel + +* Mon Mar 07 2011 gil 1.7-1mamba +- package created by autospec