--- /dev/null
+
+# Conditional build:
+%bcond_without tests # do perform "make test"
+
+%include /usr/lib/rpm/macros.perl
+%define pdir Test
+%define pnam Signature
+Summary: Test::Signature - Automatic Signature testing
+Name: perl-Test-Signature
+Version: 1.06
+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: 23581fec6af0fb9027f90b8a0565d71a
+BuildRequires: perl-devel >= 5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Module::Signature allows you to verify that a distribution has not
+been tampered with. "Test::Signature" lets that be tested as part of
+the distribution's test suite.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{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)
+%{perl_vendorlib}/Test/Signature.pm
+%{_mandir}/man3/*