]> git.pld-linux.org Git - packages/perl-Class-MOP.git/blame - perl-Class-MOP.spec
- release 9
[packages/perl-Class-MOP.git] / perl-Class-MOP.spec
CommitLineData
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 7Summary: Class::MOP - A Meta Object Protocol for Perl 5
121a32ef 8Summary(pl.UTF-8): Class::MOP - protokół metaobiektów (Meta Object Protocol) dla Perla 5
7399f618 9Name: perl-Class-MOP
c01c5b69 10Version: 1.12
d1251299 11Release: 9
7399f618 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
c01c5b69
JB
15Source0: http://www.cpan.org/modules/by-module/Class/FLORA/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 685edbc1f388362f48ec67701b67acf6
7399f618 17URL: http://search.cpan.org/dist/Class-MOP/
c01c5b69 18BuildRequires: perl-devel >= 1:5.8.1
7399f618 19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
c01c5b69
JB
21BuildRequires: perl-Algorithm-C3
22BuildRequires: perl-Data-OptList
edede3aa 23BuildRequires: perl-Devel-GlobalDestruction
c01c5b69 24BuildRequires: perl-List-MoreUtils >= 0.12
7399f618 25BuildRequires: perl-MRO-Compat >= 0.05
c01c5b69
JB
26BuildRequires: perl-Module-Info
27BuildRequires: perl-Package-DeprecationManager >= 0.10
28BuildRequires: perl-Package-Stash >= 0.13
c01c5b69
JB
29BuildRequires: perl-Sub-Name >= 0.04
30BuildRequires: perl-Task-Weaken
7399f618 31BuildRequires: perl-Test-Exception >= 0.21
c01c5b69
JB
32BuildRequires: perl-Test-Fatal >= 0.001
33BuildRequires: perl-Test-LeakTrace
34BuildRequires: perl-Test-NoTabs
35BuildRequires: perl-Test-Output
36BuildRequires: perl-Test-Requires >= 0.05
37BuildRequires: perl-Test-Simple >= 0.88
38BuildRequires: perl-Test-Spelling
f63dca95 39BuildRequires: perl-Try-Tiny
7399f618 40%endif
5bf7a4cd
JB
41Requires: perl-Sub-Identify >= 0.03
42Requires: perl-Sub-Name >= 0.02
572644e4 43Conflicts: perl-Moose < 0:0.72
7399f618 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
293dcedd
ER
47Class::MOP is a fully functioning meta object protocol for the Perl 5
48object system. It makes no attempt to change the behavior or
7399f618 49characteristics of the Perl 5 object system, only to create a protocol
50for its manipulation and introspection.
51
293dcedd
ER
52That said, it does attempt to create the tools for building a rich set
53of extensions to the Perl 5 object system. Every attempt has been made
54for these tools to keep to the spirit of the Perl 5 object system that
55we all know and love.
7399f618 56
121a32ef
JB
57%description -l pl.UTF-8
58Class::MOP to w pełni funkcjonalny protokół metaobiektów dla systemu
59obiektowego Perla 5. Nie próbuje zmieniać zachowania czy
60charakterystyki systemu obiektowego Perla 5, a jedynie tworzy protokół
61do własnych operacji i obserwacji.
62
63Oznacza to, że klasa ta nie tworzy narzędzi do budowania bogatego
64zbioru rozszerzeń do systemu obiektowego Perla 5 - dołożono wszelkich
65starań, aby utrzymać te narzędzia w duchu znanego i lubianego systemu
66obiektowego 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
81rm -rf $RPM_BUILD_ROOT
82
83%{__make} pure_install \
84 DESTDIR=$RPM_BUILD_ROOT
85
86install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
87cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
88
89%clean
90rm -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}
This page took 0.076611 seconds and 4 git commands to generate.