]>
Commit | Line | Data |
---|---|---|
7d87d62d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
17817452 | 4 | |
bd976cc2 | 5 | %define pdir Class |
6 | %define pnam Inner | |
a003a75a | 7 | Summary: Class::Inner - a perlish implementation of Java-like inner classes |
f35abbf0 | 8 | Summary(pl.UTF-8): Class::Inner - perlowa implementacja wewnętrznych klas w stylu Javy |
a003a75a | 9 | Name: perl-Class-Inner |
bda2c4f1 | 10 | Version: 0.1 |
0cf6f197 | 11 | Release: 4 |
623dc71e | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
bda2c4f1 | 14 | Group: Development/Languages/Perl |
f3f0d416 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
a4c54e68 | 16 | # Source0-md5: 388db813c6a7050c4e0483bc4d86fc21 |
17817452 | 17 | URL: http://search.cpan.org/dist/Class-Inner/ |
92cb1f9a | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
0e2abcb6 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
bda2c4f1 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
df46f7f5 | 24 | Yet another implementation of an anonymous class with per object |
17817452 ER |
25 | overrideable methods, but with the added attraction of sort of working |
26 | dispatch to the parent class's method. | |
bda2c4f1 | 27 | |
d6f9899c | 28 | %description -l pl.UTF-8 |
df46f7f5 | 29 | Jeszcze jedna implementacja anonimowej klasy z metodami przykrywalnymi |
d6f9899c JR |
30 | dla obiektu, ale z dodanym czymś w rodzaju wysyłania do metody klasy |
31 | nadrzędnej. | |
bda2c4f1 | 32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
0e2abcb6 | 37 | %{__perl} Makefile.PL \ |
bfc66990 | 38 | INSTALLDIRS=vendor |
bda2c4f1 | 39 | %{__make} |
7d87d62d | 40 | |
41 | %{?with_tests:%{__make} test} | |
bda2c4f1 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
4de0e576 | 45 | |
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
bda2c4f1 | 48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes README | |
0e2abcb6 | 55 | %{perl_vendorlib}/%{pdir}/%{pnam}.pm |
bda2c4f1 | 56 | %{_mandir}/man3/* |