File perl-Switch.spec of Package perl-Switch

# norootforbuild

Name:          perl-Switch
%define        real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Version:       2.16
Release:       0
Summary:       Switch - A switch statement for Perl
License:       GPL
Group:         Development/Libraries/Perl
Url:           http://search.cpan.org/perldoc?Switch
Source0:       %{real_name}-%{version}.tar.bz2
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
Packager:      Michal Svec <msvec@novell.com>
Requires:      perl = %{perl_version}
BuildRequires: perl-macros

%description
The Switch.pm module implements a generalized case mechanism that covers most
(but not all) of the numerous possible combinations of switch and case values.

%prep
%setup -q -n %{real_name}-%{version}

%build
%__perl Makefile.PL
%__make %{?jobs:-j%jobs}

%check
%__make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%__rm -rf %{buildroot}

%files -f %{name}.files
%defattr(-, root, root)
%doc Changes MANIFEST META.yml README

%changelog
openSUSE Build Service is sponsored by