49c42c
Name:           perl-Class-Singleton
49c42c
Version:        1.4
49c42c
Release:        14%{?dist}
49c42c
Summary:        Implementation of a "Singleton" class
49c42c
License:        GPL+ or Artistic
49c42c
Group:          Development/Libraries
49c42c
URL:            http://search.cpan.org/dist/Class-Singleton/
49c42c
Source0:        http://www.cpan.org/authors/id/A/AB/ABW/Class-Singleton-%{version}.tar.gz
49c42c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
49c42c
BuildArch:      noarch
49c42c
BuildRequires:  perl(ExtUtils::MakeMaker)
49c42c
BuildRequires:  perl(Test::More)
49c42c
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
49c42c
49c42c
%description
49c42c
This is the Class::Singleton module. A Singleton describes an object class
49c42c
that can have only one instance in any system. An example of a Singleton
49c42c
might be a print spooler or system registry. This module implements a
49c42c
Singleton class from which other classes can be derived. By itself, the
49c42c
Class::Singleton module does very little other than manage the
49c42c
instantiation of a single object. In deriving a class from
49c42c
Class::Singleton, your module will inherit the Singleton instantiation
49c42c
method and can implement whatever specific functionality is required.
49c42c
49c42c
%prep
49c42c
%setup -q -n Class-Singleton-%{version}
49c42c
49c42c
%build
49c42c
%{__perl} Makefile.PL INSTALLDIRS=vendor
49c42c
make %{?_smp_mflags}
49c42c
49c42c
%install
49c42c
rm -rf $RPM_BUILD_ROOT
49c42c
49c42c
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
49c42c
49c42c
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
49c42c
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
49c42c
49c42c
%{_fixperms} $RPM_BUILD_ROOT/*
49c42c
49c42c
%check
49c42c
make test
49c42c
49c42c
%clean
49c42c
rm -rf $RPM_BUILD_ROOT
49c42c
49c42c
%files
49c42c
%defattr(-,root,root,-)
49c42c
%doc Changes README
49c42c
%{perl_vendorlib}/*
49c42c
%{_mandir}/man3/*
49c42c
49c42c
%changelog
49c42c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4-14
49c42c
- Mass rebuild 2013-12-27
49c42c
49c42c
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 1.4-13.1
49c42c
- Rebuild for perl 5.16
49c42c
49c42c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-13
49c42c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
49c42c
49c42c
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.4-12
49c42c
- Perl 5.16 rebuild
49c42c
49c42c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
49c42c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
49c42c
49c42c
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4-10
49c42c
- Perl mass rebuild
49c42c
49c42c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
49c42c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
49c42c
49c42c
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.4-8
49c42c
- 661697 rebuild for fixing problems with vendorach/lib
49c42c
49c42c
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.4-7
49c42c
- Mass rebuild with perl-5.12.0
49c42c
49c42c
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.4-6
49c42c
- rebuild against perl 5.10.1
49c42c
49c42c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
49c42c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
49c42c
49c42c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
49c42c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
49c42c
49c42c
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4-3
49c42c
- Rebuild for perl 5.10 (again)
49c42c
49c42c
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.4-2
49c42c
- rebuild for new perl
49c42c
49c42c
* Mon Oct 15 2007 Steven Pritchard <steve@kspei.com> 1.4-1
49c42c
- Update to 1.4.
49c42c
- Update License tag.
49c42c
- Drop our copy of the license text.
49c42c
- Improve Summary.
49c42c
- Make description match cpanspec output.
49c42c
- BR Test::More.
49c42c
49c42c
* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.03-4
49c42c
- Use fixperms macro instead of our own chmod incantation.
49c42c
- BR ExtUtils::MakeMaker.
49c42c
49c42c
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.03-3
49c42c
- Canonicalize Source0 URL.
49c42c
- Fix find option order.
49c42c
49c42c
* Thu Sep 08 2005 Steven Pritchard <steve@kspei.com> 1.03-2
49c42c
- Fix permissions on Singleton.pm.
49c42c
49c42c
* Wed Aug 31 2005 Steven Pritchard <steve@kspei.com> 1.03-1
49c42c
- Specfile autogenerated.