]> git.pld-linux.org Git - packages/perl-Class-Observable.git/blame - perl-Class-Observable.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Class-Observable.git] / perl-Class-Observable.spec
CommitLineData
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 7Summary: Class::Observable - allow other classes and objects to respond to events in yours
ebd6f578 8Summary(pl.UTF-8): Class::Observable - umożliwienie innym klasom odpowiadania na zdarzenia
076da960 9Name: perl-Class-Observable
b5f192e0 10Version: 1.04
eb9ff3ef 11Release: 2
b8dfc1c4 12# same as perl
13License: GPL v1+ or Artistic
076da960 14Group: Development/Languages/Perl
1c556452 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
b5f192e0 16# Source0-md5: a4fe8e71f0082e51d5d97da865b6a708
396790ca 17URL: http://search.cpan.org/dist/Class-Observable/
d81509c1 18BuildRequires: perl-devel >= 1:5.8.0
d380e378 19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
076da960 21BuildRequires: perl-Class-ISA >= 0.32
22BuildRequires: perl-Test-Simple >= 0.40
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28If you have ever used Java, you may have run across the
2ba9c84b
JB
29java.util.Observable class and the java.util.Observer interface. Using
30them, you can decouple an object from the one or more objects that
31wish to be notified whenever particular events occur.
32
5d5e596b
JR
33%description -l pl.UTF-8
34Znający Javę być może spotkali się z klasą java.util.Observable i
35interfejsem 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
37wystą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
50rm -rf $RPM_BUILD_ROOT
51
80b5823f 52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
076da960 54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
21cff2ff 60%{perl_vendorlib}/%{pdir}/*.pm
076da960 61%{_mandir}/man3/*
This page took 2.840161 seconds and 4 git commands to generate.