%define upstream_name Class-Singleton Summary: A Singleton class for Perl Name: perl-%{upstream_name} Version: 1.6 Release: 1 License: GPLv2+ or Artistic Group: Development/Perl Url: https://metacpan.org/pod/Class::Singleton Source0: http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-devel BuildRequires: perl(Test::More) %description This is the Class::Singleton module. A Singleton describes an object class that can have only one instance in any system. This module implements a Singleton class from which other classes can be derived. %prep %autosetup -p1 -n %{upstream_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check %make test %install %make_install %files %doc Changes README %{perl_vendorlib}/Class %{_mandir}/man3/*