]>
Commit | Line | Data |
---|---|---|
076da960 | 1 | # |
2 | # Conditional build: | |
d380e378 | 3 | %bcond_without tests # do not perform "make test" |
4 | ||
4f097a6f | 5 | %define pdir Class |
6 | %define pnam Observable | |
bcf473c2 | 7 | Summary: Class::Observable - allow other classes and objects to respond to events in yours |
ebd6f578 | 8 | Summary(pl.UTF-8): Class::Observable - umożliwienie innym klasom odpowiadania na zdarzenia |
076da960 | 9 | Name: perl-Class-Observable |
b5f192e0 | 10 | Version: 1.04 |
eb9ff3ef | 11 | Release: 2 |
b8dfc1c4 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
076da960 | 14 | Group: Development/Languages/Perl |
1c556452 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
b5f192e0 | 16 | # Source0-md5: a4fe8e71f0082e51d5d97da865b6a708 |
396790ca | 17 | URL: http://search.cpan.org/dist/Class-Observable/ |
d81509c1 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
d380e378 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
076da960 | 21 | BuildRequires: perl-Class-ISA >= 0.32 |
22 | BuildRequires: perl-Test-Simple >= 0.40 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | If you have ever used Java, you may have run across the | |
2ba9c84b JB |
29 | java.util.Observable class and the java.util.Observer interface. Using |
30 | them, you can decouple an object from the one or more objects that | |
31 | wish to be notified whenever particular events occur. | |
32 | ||
5d5e596b JR |
33 | %description -l pl.UTF-8 |
34 | Znający Javę być może spotkali się z klasą java.util.Observable i | |
35 | interfejsem java.util.Observer. Przy ich użyciu można zrezygnować z | |
36 | łączenia z jednym lub więcej obiektów, które mają być powiadamiane o | |
37 | wystąpieniu określonych zdarzeń. | |
076da960 | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
21cff2ff | 43 | %{__perl} Makefile.PL \ |
fbb5127e | 44 | INSTALLDIRS=vendor |
076da960 | 45 | %{__make} |
46 | ||
d380e378 | 47 | %{?with_tests:%{__make} test} |
076da960 | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
80b5823f | 52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
076da960 | 54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
21cff2ff | 60 | %{perl_vendorlib}/%{pdir}/*.pm |
076da960 | 61 | %{_mandir}/man3/* |