]> git.pld-linux.org Git - packages/perl-Moo.git/blame - perl-Moo.spec
- up to 2.003006
[packages/perl-Moo.git] / perl-Moo.spec
CommitLineData
69eb87fe
JR
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Moo
6%include /usr/lib/rpm/macros.perl
7Summary: Moo - Minimalist Object Orientation (with Moose compatibility)
3d8042bb 8Summary(pl.UTF-8): Moo - Minimalist Object Orientation (minimalna obiektowość, zgodna z Moose)
69eb87fe 9Name: perl-Moo
78feba43 10Version: 2.003006
69eb87fe
JR
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-authors/id/H/HA/HAARG/Moo-%{version}.tar.gz
78feba43 16# Source0-md5: 53af7e7849492a8e3994ee379d12e348
656fb818 17URL: https://metacpan.org/release/Moo
69eb87fe
JR
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
656fb818 21BuildRequires: perl(Exporter) >= 5.57
8a9b0e3f 22BuildRequires: perl-Class-Method-Modifiers >= 2.11
69eb87fe 23BuildRequires: perl-Devel-GlobalDestruction >= 0.11
8a9b0e3f 24BuildRequires: perl-Module-Runtime >= 0.014
3d8042bb 25BuildRequires: perl-Role-Tiny >= 2
656fb818
JB
26BuildRequires: perl-Scalar-List-Utils
27BuildRequires: perl-Sub-Quote >= 2.003001
69eb87fe 28BuildRequires: perl-Test-Fatal >= 0.003
3d8042bb
JB
29BuildRequires: perl-Test-Simple >= 0.94
30BuildRequires: perl-strictures >= 2
69eb87fe 31%endif
3d8042bb
JB
32Requires: perl-Devel-GlobalDestruction >= 0.11
33Requires: perl-Module-Runtime >= 0.014
34Requires: perl-Role-Tiny >= 2
656fb818 35Requires: perl-Sub-Quote >= 2.003001
69eb87fe
JR
36BuildArch: noarch
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
40This module is an extremely light-weight subset of Moose optimised for
41rapid startup and "pay only for what you use".
42
43It also avoids depending on any XS modules to allow simple
44deployments. The name Moo is based on the idea that it provides almost
45-- but not quite -- two thirds of Moose.
46
47Unlike Mouse this module does not aim at full compatibility with
48Moose's surface syntax, preferring instead of provide full
49interoperability via the metaclass inflation capabilities described in
3d8042bb 50documentation.
69eb87fe 51
3d8042bb
JB
52%description -l pl.UTF-8
53Ten moduł to ekstremalnie lekki podzbiór Moose zoptymalizowany pod
54kątem szybkiego uruchamiania i "płacenia tylko za to, czego się
55używa".
69eb87fe 56
3d8042bb
JB
57Moduł ten unika także zależności od dowolnych modułów XS, co pozwala
58na proste wdrożenia. Nazwa Moo opiera się na idei, że moduł ten
59udostępnia prawie - ale nie dokładnie - dwie trzecie Moose.
60
61W przeciwieństwie do Moose, celem modułu nie jest zapewnienie pełnej
62zgodności ze składnią Moose, zamiast tego zapewniona jest pełna
63interoperacyjność poprzez możliwości inflacji metaklasy, opisane w
64dokumentacji.
69eb87fe
JR
65
66%prep
67%setup -q -n %{pdir}-%{version}
68
69%build
70%{__perl} Makefile.PL \
71 INSTALLDIRS=vendor
72%{__make}
73
74%{?with_tests:%{__make} test}
75
76%install
77rm -rf $RPM_BUILD_ROOT
78
79%{__make} pure_install \
80 DESTDIR=$RPM_BUILD_ROOT
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%files
86%defattr(644,root,root,755)
87%doc Changes README
69eb87fe 88%dir %{perl_vendorlib}/Method
69eb87fe 89%dir %{perl_vendorlib}/Method/Generate
3d8042bb
JB
90%{perl_vendorlib}/Method/Generate/Accessor.pm
91%{perl_vendorlib}/Method/Generate/BuildAll.pm
92%{perl_vendorlib}/Method/Generate/Constructor.pm
93%{perl_vendorlib}/Method/Generate/DemolishAll.pm
3d8042bb
JB
94%{perl_vendorlib}/Moo.pm
95%{perl_vendorlib}/Moo
3d8042bb
JB
96%{perl_vendorlib}/oo.pm
97%{_mandir}/man3/Moo.3pm*
98%{_mandir}/man3/Moo::Role.3pm*
3d8042bb 99%{_mandir}/man3/oo.3pm*
This page took 0.067143 seconds and 4 git commands to generate.