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