--- /dev/null
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Devel
+%define pnam Caller
+Summary: Devel::Caller - meatier versions of C<caller>
+#Summary(pl):
+Name: perl-Devel-Caller
+Version: 0.08
+Release: 1
+# same as perl
+License: GPL/Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: fd2708cd60d1a24edf7fdf53438c725d
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{!?_without_tests:1}0
+BuildRequires: perl-PadWalker
+BuildRequires: perl-Test-Simple
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Devel::Caller - meatier versions of C<caller>.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} OPTIMIZE="%{rpmcflags}"
+
+%{!?_without_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)
+%{perl_vendorarch}/%{pdir}/*.pm
+%dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}
+%attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.so
+%{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.bs
+%{_mandir}/man3/*