]> git.pld-linux.org Git - packages/perl-ExtUtils-TBone.git/blobdiff - perl-ExtUtils-TBone.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-ExtUtils-TBone.git] / perl-ExtUtils-TBone.spec
index fac0256456e145a26e606663bf76cfb330d8dcfa..79aa08ce6c45d2e1e9f9cd29b9ba6ac82942a684 100644 (file)
@@ -1,43 +1,60 @@
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    ExtUtils
-%define        pnam    TBone
-Summary:       ExtUtils-TBone perl module
-Summary(pl):   Modu³ perla ExtUtils-TBone
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define                pdir    ExtUtils
+%define                pnam    TBone
+Summary:       ExtUtils::TBone - a "skeleton" for writing test files
+Summary(pl.UTF-8):     ExtUtils::TBone - szkielet do tworzenia testów
 Name:          perl-ExtUtils-TBone
 Version:       1.124
-Release:       5
-License:       GPL
+Release:       8
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 81914cadf266f6cd2083bd321c1557cd
+URL:           http://search.cpan.org/dist/ExtUtils-TBone/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-ExtUtils-TBone - a "skeleton" for writing "t/*.t" test files.
-
-%description -l pl
-ExtUtils-TBone - "szkielet" dla tworzenia plików testowych "t/*.t".
+ExtUtils::TBone Perl module is intended for folks who release CPAN
+modules with "t/*.t" tests. It makes it easy for you to output
+syntactically correct test-output while at the same time logging all
+test activity to a log file. Hopefully, bug reports which include the
+contents of this file will be easier for you to investigate.
+
+%description -l pl.UTF-8
+Moduł Perla ExtUtils::TBone jest przeznaczony dla autorów modułów CPAN
+zawierających testy "t/*.t". Upraszcza on tworzenie poprawnego
+składniowo wyjścia testów, przy jednoczesnym logowaniu wszelkiej
+aktywności danego testu. Raporty o błędach zawierające ten log powinny
+być łatwiejsze do zbadania.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz docs/*
-%{perl_sitelib}/ExtUtils/TBone.pm
+%doc README docs/*
+%{perl_vendorlib}/ExtUtils/TBone.pm
 %{_mandir}/man3/*
This page took 0.095046 seconds and 4 git commands to generate.