]>
Commit | Line | Data |
---|---|---|
166ff2ef | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5a21002e | 5 | %define pdir Class |
6 | %define pnam Singleton | |
1857a6c9 | 7 | Summary: Class::singleton - implementation of a "Singleton" class |
2839c57c | 8 | Summary(pl.UTF-8): Class::Singleton - implementacja klasy Singleton |
e7ca92ba | 9 | Name: perl-Class-Singleton |
f3bad910 | 10 | Version: 1.5 |
e476f64c | 11 | Release: 1 |
f3bad910 JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
b288a097 | 14 | Group: Development/Languages/Perl |
7ed46172 | 15 | Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz |
f3bad910 | 16 | # Source0-md5: 6a2524f590eda075f4bc929598119241 |
7a186bf9 | 17 | URL: https://metacpan.org/release/Class-Singleton |
4d755c88 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
f3bad910 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
7a186bf9 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
f3bad910 | 21 | Obsoletes: perl-Class-Sigleton |
b288a097 | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
9c3c1c1e JB |
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. | |
b288a097 | 34 | |
b1124829 JR |
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ą | |
43 | funkcjonalność. | |
b288a097 | 44 | |
45 | %prep | |
46 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
47 | ||
48 | %build | |
a86d22b6 | 49 | %{__perl} Makefile.PL \ |
811b0bd9 | 50 | INSTALLDIRS=vendor |
b288a097 | 51 | %{__make} |
52 | ||
166ff2ef | 53 | %{?with_tests:%{__make} test} |
54 | ||
b288a097 | 55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
166ff2ef | 58 | %{__make} install \ |
59 | DESTDIR=$RPM_BUILD_ROOT | |
b288a097 | 60 | |
b288a097 | 61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
f3bad910 JB |
66 | %doc Changes |
67 | %{perl_vendorlib}/Class/Singleton.pm | |
68 | %{_mandir}/man3/Class::Singleton.3pm* |