]> git.pld-linux.org Git - packages/perl-mixin.git/blame - perl-mixin.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-mixin.git] / perl-mixin.spec
CommitLineData
a39afc23 1#
2# Conditional build:
000bd8f4 3%bcond_without tests # do not perform "make test"
a39afc23 4#
793a70cd 5%define pdir mixin
be6b8fd0 6Summary: mixin - mix-in inheritance, an alternative to multiple inheritance
714f5cb3 7Summary(pl.UTF-8): mixin - dziedziczenie "towarzyskie", alternatywa dla dziedziczenia wielokrotnego
a39afc23 8Name: perl-mixin
7a1f614d 9Version: 0.08
a39afc23 10Release: 1
7a1f614d
JB
11# same as perl
12License: GPL v1+ or Artistic
a39afc23 13Group: Development/Languages/Perl
bac3ec26 14Source0: http://www.cpan.org/modules/by-authors/id/M/MS/MSCHWERN/%{pdir}-%{version}.tar.gz
7a1f614d 15# Source0-md5: 206a7b1225600dd7555bf8ccc6057cf0
313e6a37 16URL: http://search.cpan.org/dist/mixin/
7a1f614d 17BuildRequires: perl-Module-Build >= 0.36
a39afc23 18BuildRequires: perl-devel >= 1:5.8.0
7a1f614d
JB
19%if %{with tests}
20BuildRequires: perl-Test-NoWarnings
21BuildRequires: perl-Test-Simple >= 0.40
22%endif
a39afc23 23BuildRequires: rpm-perlprov >= 4.1-13
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Mixin inheritance is an alternative to the usual multiple-inheritance
29and solves the problem of knowing which parent will be called.
30It also solves a number of tricky problems like diamond inheritence.
31
32The idea is to solve the same sets of problems which MI solves without
33the problems of MI.
34
5032a32d
JR
35%description -l pl.UTF-8
36Dziedziczenie "mixin" (towarzyskie) jest alternatywą dla zwykłego
37dziedziczenia wielokrotnego i rozwiązuje problem braku wiedzy o tym,
38który z przodków zostanie wywołany. Rozwiązuje ono również kilka
39innych podstępnych problemów, jak na przykład dziedziczenie rombowe.
be6b8fd0 40
5032a32d
JR
41Idea polega na tym, by rozwiązać problemy, które rozwiązuje
42dziedziczenie wielokrotne bez problemów dziedziczenia wielokrotnego.
a39afc23 43
44%prep
45%setup -q -n %{pdir}-%{version}
46
47%build
19a03139 48%{__perl} Build.PL \
49 installdirs=vendor
50./Build
a39afc23 51
19a03139 52%{?with_tests:./Build test}
a39afc23 53
54%install
55rm -rf $RPM_BUILD_ROOT
56
19a03139 57./Build install \
58 destdir=$RPM_BUILD_ROOT
a39afc23 59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes
7a1f614d
JB
66%{perl_vendorlib}/mixin.pm
67%{perl_vendorlib}/mixin
68%{_mandir}/man3/mixin.3pm*
69%{_mandir}/man3/mixin::with.3pm*
This page took 0.434724 seconds and 4 git commands to generate.