+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
-%define pdir Sub
-%define pnam Uplevel
-Summary: %{pdir}::%{pnam} perl module
-Summary(cs): Modul %{pdir}::%{pnam} pro Perl
-Summary(da): Perlmodul %{pdir}::%{pnam}
-Summary(de): %{pdir}::%{pnam} Perl Modul
-Summary(es): Módulo de Perl %{pdir}::%{pnam}
-Summary(fr): Module Perl %{pdir}::%{pnam}
-Summary(it): Modulo di Perl %{pdir}::%{pnam}
-Summary(ja): %{pdir}::%{pnam} Perl ¥â¥¸¥å¡¼¥ë
-Summary(ko): %{pdir}::%{pnam} ÆÞ ¸ðÁÙ
-Summary(no): Perlmodul %{pdir}::%{pnam}
-Summary(pl): Modu³ perla %{pdir}::%{pnam}
-Summary(pt_BR): Módulo Perl %{pdir}::%{pnam}
-Summary(pt): Módulo de Perl %{pdir}::%{pnam}
-Summary(ru): íÏÄÕÌØ ÄÌÑ Perl %{pdir}::%{pnam}
-Summary(sv): %{pdir}::%{pnam} Perlmodul
-Summary(uk): íÏÄÕÌØ ÄÌÑ Perl %{pdir}::%{pnam}
-Summary(zh_CN): %{pdir}::%{pnam} Perl Ä£¿é
-Name: perl-%{pdir}-%{pnam}
-Version: 0.08
+%define pdir Sub
+%define pnam Uplevel
+Summary: Sub::Uplevel - apparently run a function in a higher stack frame
+Summary(pl.UTF-8): Sub::Uplevel - pozorne uruchomienie funkcji w wyższej ramce stosu
+Name: perl-Sub-Uplevel
+Version: 0.2800
Release: 1
-License: ?
+Epoch: 1
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: ee9f20f8a45f92672a95681446dce9bd
-BuildRequires: perl-devel >= 5.005
+Source0: http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 6c6a174861fd160e8d5871a86df00baf
+URL: http://search.cpan.org/dist/Sub-Uplevel/
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
+%{?with_tests:BuildRequires: perl-Test-Simple >= 0.47}
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Sub::Uplevel -- apparently run a function in a higher stack frame.
+Sub::Uplevel Perl module is for apparent running a function in a
+higher stack frame. Like Tcl's uplevel() function, but not quite so
+dangerous.
-%description -l pl
-Modu³ Sub::Uplevel - umo¿liwiaj±cy pozorne uruchomienie funkcji w
-wy¿szej ramce stosu.
+%description -l pl.UTF-8
+Moduł Perla Sub::Uplevel umożliwia pozorne uruchomienie funkcji w
+wyższej ramce stosu. Działa podobnie do funkcji uplevel() Tcl-a, lecz
+nie jest tak niebezpieczny.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
-#%%{__make} test
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{perl_vendorlib}/%{pdir}/%{pnam}.pm
-%{_mandir}/man3/*.3pm*
+%doc Changes
+%{perl_vendorlib}/Sub/Uplevel.pm
+%{_mandir}/man3/Sub::Uplevel.3pm*