# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Switch Summary: Switch - a switch statement for Perl Summary(pl.UTF-8): Switch - instrukcja switch dla Perla Name: perl-Switch Version: 2.17 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-authors/id/C/CH/CHORNY/%{pdir}-%{version}.tar.gz # Source0-md5: 34e2b6dac0a43384505b4e036633cff0 URL: http://search.cpan.org/dist/Switch/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Switch.pm provides the syntax and semantics for an explicit case mechanism for Perl. The syntax is minimal, introducing only the keywords "switch" and "case" and conforming to the general pattern of existing Perl control structures. The semantics are particularly rich, allowing any one (or more) of nearly 30 forms of matching to be used when comparing a switch value with its various cases. %description -l pl.UTF-8 Switch.pm udostępnia składnię i semantykę dla jawnego mechanizmu rozpatrywania przypadku dla Perla. Składnia jest minimalna, wprowadza jedynie słowa kluczowe ,,switch'' i ,,case'' i zachowując zgodność z ogólnym wzorcem istniejących procedur kontroli przepływu Perla. %prep %setup -q -n %{pdir}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Switch.pm %{_mandir}/man3/Switch.3pm*