%define pkg_name Class-MethodMaker %define pkg_version 2.10 %define rpm_pkg_version 2.10 %define rpm_pkg_release 1.n0i.6 Summary: Create generic class methods Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/S/SC/SCHWIGON/class-methodmaker/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(Module::Build) %description This module solves the problem of having to write a bazillion get/set methods that are all the same. The argument to 'use' is a hash whose keys are the names of types of generic methods generated by MethodMaker and whose values tell method maker what methods to make. (More precisely, the keys are the names of MethodMaker methods (methods that write methods) and the values are the arguments to those methods. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %{fix_perl_path benchmark/ examples/} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc benchmark/ Changes examples/ README TODO %changelog * Tue May 22 2007 Marius Feraru - 2.10-1.n0i.6 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 2.10 * Sat Mar 04 2006 Marius Feraru - 2.08-2.n0i.5 - automatic rebuild (perl 5.8.8) * Fri Dec 30 2005 Marius Feraru 2.08-1.n0i.4 - version 2.08 * Sun Jul 24 2005 Marius Feraru 2.07-1.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:2.06-2.n0i.2 - version 2.06 * Mon Dec 27 2004 Marius Feraru 0:1.12-1.n0i.1 - version 1.12 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601