]> git.pld-linux.org Git - packages/perl-Class-MethodMaker.git/blame - perl-Class-MethodMaker.spec
rebuild with perl 5.32
[packages/perl-Class-MethodMaker.git] / perl-Class-MethodMaker.spec
CommitLineData
f559608b 1#
2# Conditional build:
1c7e6db3 3%bcond_without tests # do not perform "make test"
f559608b 4#
0b31ded8 5%define pdir Class
6%define pnam MethodMaker
0fcdf037 7Summary: Class::MethodMaker - a module for creating generic methods
0b7757d3 8Summary(pl.UTF-8): Class::MethodMaker - moduł do tworzenia ogólnych metod
f559608b 9Name: perl-Class-MethodMaker
0350a15f 10Version: 2.24
42bbdafa 11Release: 4
8c033622 12# same as perl
13License: GPL v1+ or Artistic
0fcdf037 14Group: Development/Languages/Perl
a5cbc30d 15Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
0350a15f
JR
16# Source0-md5: 6fac1ed1fea8a4e42d36a4d07c8bfa09
17Patch0: build.patch
5f6db2ff 18URL: http://search.cpan.org/dist/Class-MethodMaker/
b1547c4a 19%{?with_tests:BuildRequires: perl-IPC-Run >= 0.89}
98359c59 20BuildRequires: perl-devel >= 1:5.8.0
2d8c762e 21BuildRequires: rpm-perlprov >= 4.1-13
0fcdf037 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25This module solves the problem of having to write a bazillion get/set
5f6db2ff 26methods that are all the same. The argument to 'use' is a hash whose
727df2eb
JB
27keys are the names of types of generic methods generated by
28MethodMaker and whose values tell method maker what methods to make.
29(More precisely, the keys are the names of MethodMaker methods
30(methods that write methods) and the values are the arguments to those
31methods.
32
e448ba6f
JR
33%description -l pl.UTF-8
34Ten moduł rozwiązuje problem pisania bazylionów metod get/set, które
35są wszystkie takie same. Parametrem 'use' jest hasz, którego klucze są
36nazwami typów do ogólnych metod, wygenerowanych przez MethodMakera, a
37wartości mówią modułowi, które metody utworzyć (bardziej precyzyjnie:
38klucze są nazwami metod MethodMakera (metod, które tworzą metody), a
39wartości to parametry dla tych metod).
0fcdf037 40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
0350a15f 43%patch0 -p1
de331602 44mv -f end.pod lib/Class/MethodMaker/
c4d6859a 45
46%build
0dab633d 47%{__perl} generate.PL
48%{__perl} -MExtUtils::MakeMaker -wle \
49 'WriteMakefile(NAME=>"Class::MethodMaker",
50 PL_FILES=>{}, VERSION=>"%{version}")' \
51 INSTALLDIRS=vendor
7f7cc6b1 52
0dab633d 53%{?with_tests:%{__make} test}
0fcdf037 54
55%install
56rm -rf $RPM_BUILD_ROOT
57
0dab633d 58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
0fcdf037 60
5f6db2ff
ER
61rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Class/.placeholder
62rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Class/MethodMaker/end.pod
63rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Class/cmmg.pl
64
0fcdf037 65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
cf570870 70%{perl_vendorarch}/Class/*.pm
71%dir %{perl_vendorarch}/Class/MethodMaker
72%{perl_vendorarch}/Class/MethodMaker/*.pm
73%dir %{perl_vendorarch}/auto/Class/MethodMaker
74%{perl_vendorarch}/auto/Class/MethodMaker/array
75%{perl_vendorarch}/auto/Class/MethodMaker/hash
76%{perl_vendorarch}/auto/Class/MethodMaker/scalar
77%dir %{perl_vendorarch}/auto/Class/MethodMaker/Engine
78%{perl_vendorarch}/auto/Class/MethodMaker/Engine/*.al
79%{perl_vendorarch}/auto/Class/MethodMaker/Engine/*.ix
0dab633d 80%attr(755,root,root) %{perl_vendorarch}/auto/Class/MethodMaker/*.so
0fcdf037 81%{_mandir}/man3/*
This page took 0.117347 seconds and 4 git commands to generate.