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 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 6a2524f590eda075f4bc929598119241
18 URL: http://search.cpan.org/dist/Class-Singleton/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Obsoletes: perl-Class-Sigleton
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This is the Class::Singleton module. A Singleton describes an object
27 class that can have only one instance in any system. An example of
28 a Singleton might be a print spooler or system registry. This module
29 implements a Singleton class from which other classes can be derived.
30 By itself, the Class::Singleton module does very little other than
31 manage the instantiation of a single object. In deriving a class from
32 Class::Singleton, your module will inherit the Singleton instantiation
33 method and can implement whatever specific functionality is required.
35 %description -l pl.UTF-8
36 To jest moduł Class::Singleton. Singleton opisuje obiekt klasy, który
37 ma tylko jedną instancję w systemie - na przykład serwer wydruków. Ten
38 moduł implementuje klasę Singleton, z której można dziedziczyć inne
39 klasy. Sam moduł Class::Singleton robi niewiele więcej niż samo
40 zarządzanie pojedynczą instancją obiektu. Poprzez dziedziczenie z
41 klasy z Class:Singleton, moduły odziedziczą istnienie pojedynczej
42 instancji w systemie, a dodatkowo mogą mieć zaimplementowaną właściwą
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/Class/Singleton.pm
68 %{_mandir}/man3/Class::Singleton.3pm*