|
|
8e21fe3 |
Name: perl-Class-Singleton
|
|
|
8e21fe3 |
Version: 1.03
|
|
|
96edd3c |
Release: 3%{?dist}
|
|
|
8e21fe3 |
Summary: Class::Singleton Perl module
|
|
|
8e21fe3 |
License: Artistic
|
|
|
8e21fe3 |
Group: Development/Libraries
|
|
|
8e21fe3 |
URL: http://search.cpan.org/dist/Class-Singleton/
|
|
|
96edd3c |
Source0: http://www.cpan.org/authors/id/A/AB/ABW/Class-Singleton-%{version}.tar.gz
|
|
|
8e21fe3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
8e21fe3 |
BuildArch: noarch
|
|
|
8e21fe3 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%description
|
|
|
8e21fe3 |
This is the Class::Singleton module. A Singleton describes an object
|
|
|
8e21fe3 |
class that can have only one instance in any system. An example of a
|
|
|
8e21fe3 |
Singleton might be a print spooler or system registry. This module
|
|
|
8e21fe3 |
implements a Singleton class from which other classes can be derived.
|
|
|
8e21fe3 |
By itself, the Class::Singleton module does very little other than
|
|
|
8e21fe3 |
manage the instantiation of a single object. In deriving a class from
|
|
|
8e21fe3 |
Class::Singleton, your module will inherit the Singleton instantiation
|
|
|
8e21fe3 |
method and can implement whatever specific functionality is required.
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%prep
|
|
|
8e21fe3 |
%setup -q -n Class-Singleton-%{version}
|
|
|
6b508cf |
chmod a-x Singleton.pm
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%build
|
|
|
8e21fe3 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
8e21fe3 |
make %{?_smp_mflags}
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%install
|
|
|
8e21fe3 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
96edd3c |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
perldoc -t perlartistic > Artistic
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%check
|
|
|
8e21fe3 |
make test
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%clean
|
|
|
8e21fe3 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%files
|
|
|
8e21fe3 |
%defattr(-,root,root,-)
|
|
|
8e21fe3 |
%doc Changes README Artistic
|
|
|
8e21fe3 |
%{perl_vendorlib}/*
|
|
|
8e21fe3 |
%{_mandir}/man3/*
|
|
|
8e21fe3 |
|
|
|
8e21fe3 |
%changelog
|
|
|
96edd3c |
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.03-3
|
|
|
96edd3c |
- Canonicalize Source0 URL.
|
|
|
96edd3c |
- Fix find option order.
|
|
|
96edd3c |
|
|
|
6b508cf |
* Thu Sep 08 2005 Steven Pritchard <steve@kspei.com> 1.03-2
|
|
|
6b508cf |
- Fix permissions on Singleton.pm.
|
|
|
6b508cf |
|
|
|
8e21fe3 |
* Wed Aug 31 2005 Steven Pritchard <steve@kspei.com> 1.03-1
|
|
|
8e21fe3 |
- Specfile autogenerated.
|