]>
Commit | Line | Data |
---|---|---|
7399f618 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
293dcedd ER |
4 | |
5 | %define pdir Class | |
6 | %define pnam MOP | |
7399f618 | 7 | Summary: Class::MOP - A Meta Object Protocol for Perl 5 |
121a32ef | 8 | Summary(pl.UTF-8): Class::MOP - protokół metaobiektów (Meta Object Protocol) dla Perla 5 |
7399f618 | 9 | Name: perl-Class-MOP |
c01c5b69 | 10 | Version: 1.12 |
d1251299 | 11 | Release: 9 |
7399f618 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
c01c5b69 JB |
15 | Source0: http://www.cpan.org/modules/by-module/Class/FLORA/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: 685edbc1f388362f48ec67701b67acf6 | |
7399f618 | 17 | URL: http://search.cpan.org/dist/Class-MOP/ |
c01c5b69 | 18 | BuildRequires: perl-devel >= 1:5.8.1 |
7399f618 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
c01c5b69 JB |
21 | BuildRequires: perl-Algorithm-C3 |
22 | BuildRequires: perl-Data-OptList | |
edede3aa | 23 | BuildRequires: perl-Devel-GlobalDestruction |
c01c5b69 | 24 | BuildRequires: perl-List-MoreUtils >= 0.12 |
7399f618 | 25 | BuildRequires: perl-MRO-Compat >= 0.05 |
c01c5b69 JB |
26 | BuildRequires: perl-Module-Info |
27 | BuildRequires: perl-Package-DeprecationManager >= 0.10 | |
28 | BuildRequires: perl-Package-Stash >= 0.13 | |
c01c5b69 JB |
29 | BuildRequires: perl-Sub-Name >= 0.04 |
30 | BuildRequires: perl-Task-Weaken | |
7399f618 | 31 | BuildRequires: perl-Test-Exception >= 0.21 |
c01c5b69 JB |
32 | BuildRequires: perl-Test-Fatal >= 0.001 |
33 | BuildRequires: perl-Test-LeakTrace | |
34 | BuildRequires: perl-Test-NoTabs | |
35 | BuildRequires: perl-Test-Output | |
36 | BuildRequires: perl-Test-Requires >= 0.05 | |
37 | BuildRequires: perl-Test-Simple >= 0.88 | |
38 | BuildRequires: perl-Test-Spelling | |
f63dca95 | 39 | BuildRequires: perl-Try-Tiny |
7399f618 | 40 | %endif |
5bf7a4cd JB |
41 | Requires: perl-Sub-Identify >= 0.03 |
42 | Requires: perl-Sub-Name >= 0.02 | |
572644e4 | 43 | Conflicts: perl-Moose < 0:0.72 |
7399f618 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
293dcedd ER |
47 | Class::MOP is a fully functioning meta object protocol for the Perl 5 |
48 | object system. It makes no attempt to change the behavior or | |
7399f618 | 49 | characteristics of the Perl 5 object system, only to create a protocol |
50 | for its manipulation and introspection. | |
51 | ||
293dcedd ER |
52 | That said, it does attempt to create the tools for building a rich set |
53 | of extensions to the Perl 5 object system. Every attempt has been made | |
54 | for these tools to keep to the spirit of the Perl 5 object system that | |
55 | we all know and love. | |
7399f618 | 56 | |
121a32ef JB |
57 | %description -l pl.UTF-8 |
58 | Class::MOP to w pełni funkcjonalny protokół metaobiektów dla systemu | |
59 | obiektowego Perla 5. Nie próbuje zmieniać zachowania czy | |
60 | charakterystyki systemu obiektowego Perla 5, a jedynie tworzy protokół | |
61 | do własnych operacji i obserwacji. | |
62 | ||
63 | Oznacza to, że klasa ta nie tworzy narzędzi do budowania bogatego | |
64 | zbioru rozszerzeń do systemu obiektowego Perla 5 - dołożono wszelkich | |
65 | starań, aby utrzymać te narzędzia w duchu znanego i lubianego systemu | |
66 | obiektowego Perla 5. | |
7399f618 | 67 | |
68 | %prep | |
69 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
70 | ||
71 | %build | |
72 | %{__perl} Makefile.PL \ | |
73 | INSTALLDIRS=vendor | |
74 | %{__make} \ | |
75 | CC="%{__cc}" \ | |
76 | OPTIMIZE="%{rpmcflags}" | |
77 | ||
78 | %{?with_tests:%{__make} test} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} pure_install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
87 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc Changes | |
5bf7a4cd JB |
95 | %{perl_vendorarch}/metaclass.pm |
96 | %{perl_vendorarch}/Class/MOP.pm | |
7399f618 | 97 | %{perl_vendorarch}/Class/MOP |
98 | %dir %{perl_vendorarch}/auto/Class/MOP | |
5bf7a4cd JB |
99 | %attr(755,root,root) %{perl_vendorarch}/auto/Class/MOP/MOP.so |
100 | %{_mandir}/man3/Class::MOP*.3pm* | |
101 | %{_mandir}/man3/metaclass.3pm* | |
7399f618 | 102 | %{_examplesdir}/%{name}-%{version} |