!1 Init package
From: @misaka00251 Reviewed-by: @geasscore Signed-off-by: @geasscore
This commit is contained in:
commit
779147a565
BIN
Class-Singleton-1.6.tar.gz
Normal file
BIN
Class-Singleton-1.6.tar.gz
Normal file
Binary file not shown.
58
perl-Class-Singleton.spec
Normal file
58
perl-Class-Singleton.spec
Normal file
@ -0,0 +1,58 @@
|
||||
Name: perl-Class-Singleton
|
||||
Version: 1.6
|
||||
Release: 1
|
||||
Summary: Implementation of a "Singleton" class
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Class-Singleton
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Class/Class-Singleton-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
|
||||
# Module Runtime
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This is the Class::Singleton module. A Singleton describes an object class
|
||||
that can have only one instance in any system. An example of a Singleton
|
||||
might be a print spooler or system registry. This module implements a
|
||||
Singleton class from which other classes can be derived. By itself, the
|
||||
Class::Singleton module does very little other than manage the
|
||||
instantiation of a single object. In deriving a class from
|
||||
Class::Singleton, your module will inherit the Singleton instantiation
|
||||
method and can implement whatever specific functionality is required.
|
||||
|
||||
%prep
|
||||
%setup -q -n Class-Singleton-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%license Artistic Copying LICENCE
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/Class/
|
||||
%{_mandir}/man3/Class::Singleton.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 1.6-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user