]>
Commit | Line | Data |
---|---|---|
a39afc23 | 1 | # |
2 | # Conditional build: | |
000bd8f4 | 3 | %bcond_without tests # do not perform "make test" |
a39afc23 | 4 | # |
793a70cd | 5 | %define pdir mixin |
be6b8fd0 | 6 | Summary: mixin - mix-in inheritance, an alternative to multiple inheritance |
714f5cb3 | 7 | Summary(pl.UTF-8): mixin - dziedziczenie "towarzyskie", alternatywa dla dziedziczenia wielokrotnego |
a39afc23 | 8 | Name: perl-mixin |
7a1f614d | 9 | Version: 0.08 |
a39afc23 | 10 | Release: 1 |
7a1f614d JB |
11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
a39afc23 | 13 | Group: Development/Languages/Perl |
bac3ec26 | 14 | Source0: http://www.cpan.org/modules/by-authors/id/M/MS/MSCHWERN/%{pdir}-%{version}.tar.gz |
7a1f614d | 15 | # Source0-md5: 206a7b1225600dd7555bf8ccc6057cf0 |
313e6a37 | 16 | URL: http://search.cpan.org/dist/mixin/ |
7a1f614d | 17 | BuildRequires: perl-Module-Build >= 0.36 |
a39afc23 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
7a1f614d JB |
19 | %if %{with tests} |
20 | BuildRequires: perl-Test-NoWarnings | |
21 | BuildRequires: perl-Test-Simple >= 0.40 | |
22 | %endif | |
a39afc23 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Mixin inheritance is an alternative to the usual multiple-inheritance | |
29 | and solves the problem of knowing which parent will be called. | |
30 | It also solves a number of tricky problems like diamond inheritence. | |
31 | ||
32 | The idea is to solve the same sets of problems which MI solves without | |
33 | the problems of MI. | |
34 | ||
5032a32d JR |
35 | %description -l pl.UTF-8 |
36 | Dziedziczenie "mixin" (towarzyskie) jest alternatywą dla zwykłego | |
37 | dziedziczenia wielokrotnego i rozwiązuje problem braku wiedzy o tym, | |
38 | który z przodków zostanie wywołany. Rozwiązuje ono również kilka | |
39 | innych podstępnych problemów, jak na przykład dziedziczenie rombowe. | |
be6b8fd0 | 40 | |
5032a32d JR |
41 | Idea polega na tym, by rozwiązać problemy, które rozwiązuje |
42 | dziedziczenie 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 | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
19a03139 | 57 | ./Build install \ |
58 | destdir=$RPM_BUILD_ROOT | |
a39afc23 | 59 | |
60 | %clean | |
61 | rm -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* |