]> git.pld-linux.org Git - packages/perl-Test-Fatal.git/commitdiff
- initial auto/th/perl-Test-Fatal-0_003-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 25 Feb 2011 21:03:59 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Test-Fatal.spec -> 1.1

perl-Test-Fatal.spec [new file with mode: 0644]

diff --git a/perl-Test-Fatal.spec b/perl-Test-Fatal.spec
new file mode 100644 (file)
index 0000000..5181a42
--- /dev/null
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define                pdir    Test
+%define                pnam    Fatal
+Summary:       Test::Fatal Perl module - incredibly simple helpers for testing code with exceptions
+Name:          perl-Test-Fatal
+Version:       0.003
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e73e90b65a5f07ff77f7e5f3bd336fcf
+URL:           http://search.cpan.org/dist/Test-Fatal/
+BuildRequires: perl-devel >= 1:5.8.7
+BuildRequires: perl-Try-Tiny >= 0.07
+%if %{with tests}
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::Fatal Perl - incredibly simple helpers for testing code with exceptions.
+
+%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)
+%doc Changes
+%{perl_vendorlib}/Test
+%{_mandir}/man3/*.3*
This page took 0.058824 seconds and 4 git commands to generate.