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