--- /dev/null
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Devel
+%define pnam Dumpvar
+Summary: Devel::Dumpvar - A pure-OO reimplementation of dumpvar.pl
+Name: perl-%{pdir}-%{pnam}
+Version: 0.01
+Release: 1
+License: GPL/Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 51c3c1c78178a2740304adca93e114f8
+BuildRequires: perl-devel >= 5.005
+%if %{!?_without_tests:1}0
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Most perl dumping modules are focused on serializing data structures
+into a format that can be rebuilt into the original data structure.
+They do this with a variety of different focuses, such as human
+readability, the ability to execute the dumped code directly, or to
+minimize the size of the dumped data.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{!?_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)
+%doc LICENSE Changes README
+%{perl_vendorlib}/%{pdir}/%{pnam}.pm
+%{_mandir}/man3/*