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