3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Class::singleton - implementation of a "Singleton" class
9 Summary(pl.UTF-8): Class::Singleton - implementacja klasy Singleton
10 Name: perl-Class-Singleton
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a18b108ab97e2107cbbe816d2b3e2ee3
17 URL: http://search.cpan.org/dist/Class-Singleton/
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes: perl-Class-Sigleton
25 This is the Class::Singleton module. A Singleton describes an object
26 class that can have only one instance in any system. An example of
27 a Singleton might be a print spooler or system registry. This module
28 implements a Singleton class from which other classes can be derived.
29 By itself, the Class::Singleton module does very little other than
30 manage the instantiation of a single object. In deriving a class from
31 Class::Singleton, your module will inherit the Singleton instantiation
32 method and can implement whatever specific functionality is required.
34 %description -l pl.UTF-8
35 To jest moduł Class::Singleton. Singleton opisuje obiekt klasy, który
36 ma tylko jedną instancję w systemie - na przykład serwer wydruków. Ten
37 moduł implementuje klasę Singleton, z której można dziedziczyć inne
38 klasy. Sam moduł Class::Singleton robi niewiele więcej niż samo
39 zarządzanie pojedynczą instancją obiektu. Poprzez dziedziczenie z
40 klasy z Class:Singleton, moduły odziedziczą istnienie pojedynczej
41 instancji w systemie, a dodatkowo mogą mieć zaimplementowaną właściwą
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/Class/*