Group :: Development/Perl
RPM: perl-Class-MethodMaker
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define module_name Class-MethodMaker
Name: perl-%module_name
Version: 2.06
Release: alt1
Summary: %module_name module for perl
Summary(ru_RU.UTF8): Модуль %module_name для Perl
License: GPL or Artistic
Group: Development/Perl
URL: http://search.cpan.org/dist/%module_name
Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Class/%module_name-%version.tar.bz2
AutoReqProv: yes, perl
BuildRequires: perl-Module-Build perl-Storable perl-devel
%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.
%description -l ru_RU.UTF8
Этот модуль избавляет от необходимости описывать множество
одинаковых методов get/set. Аргументом 'use' является
хэш-массив, ключи которого соответствуют именам простых методов,
генерируемых модулем MethodMaker, а значения сообщают methodmaker-у,
какие методы требуются. (Точнее, ключи являются именами методов
MethodMaker (методы создания методов), а значения ключей -
аргументы этих методов.
%prep
%setup -q -n %module_name-%version
%build
CFLAGS="$RPM_OPT_FLAGS" %__perl Makefile.PL INSTALLDIRS=vendor
make
make test
%perl_vendor_build
%install
%perl_vendor_install
%files
%doc README TODO Changes
%perl_vendorarch/Class
%perl_vendorarch/auto/Class
%_mandir/*/*
%changelog
…
Full changelog you can see here
Name: perl-%module_name
Version: 2.06
Release: alt1
Summary: %module_name module for perl
Summary(ru_RU.UTF8): Модуль %module_name для Perl
License: GPL or Artistic
Group: Development/Perl
URL: http://search.cpan.org/dist/%module_name
Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Class/%module_name-%version.tar.bz2
AutoReqProv: yes, perl
BuildRequires: perl-Module-Build perl-Storable perl-devel
%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.
%description -l ru_RU.UTF8
Этот модуль избавляет от необходимости описывать множество
одинаковых методов get/set. Аргументом 'use' является
хэш-массив, ключи которого соответствуют именам простых методов,
генерируемых модулем MethodMaker, а значения сообщают methodmaker-у,
какие методы требуются. (Точнее, ключи являются именами методов
MethodMaker (методы создания методов), а значения ключей -
аргументы этих методов.
%prep
%setup -q -n %module_name-%version
%build
CFLAGS="$RPM_OPT_FLAGS" %__perl Makefile.PL INSTALLDIRS=vendor
make
make test
%perl_vendor_build
%install
%perl_vendor_install
%files
%doc README TODO Changes
%perl_vendorarch/Class
%perl_vendorarch/auto/Class
%_mandir/*/*
%changelog
…
Full changelog you can see here