]> git.pld-linux.org Git - packages/perl-AnyData.git/blobdiff - perl-AnyData.spec
- noautoreq {XML::Twig,HTML::TableExtract}
[packages/perl-AnyData.git] / perl-AnyData.spec
index 169e581b0f383dcda93beddfabca274235b6ea2c..d1da9f4668702382fe87556b31da24f41cdb5a25 100644 (file)
@@ -1,24 +1,26 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
+# _with_tests - perform "make test" (hangs with XML::Twig or HTML::TableExtract installed)
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    AnyData
 Summary:       AnyData -- easy access to data in many formats
 Summary(pl):   AnyData -- ³atwy dostêp do danych w ró¿nych formatach
 Name:          perl-%{pdir}
 Version:       0.05
-Release:       1
+Release:       2
 License:       GPL/Artistic
 Group:         Development/Languages/Perl
 Source0:       ftp://ftp.cpan.org/pub/CPAN/authors/id/J/JZ/JZUCKER/AnyData-%{version}.tar.gz
 BuildRequires: perl >= 5.6
 BuildRequires: rpm-perlprov >= 3.0.3-26
-%if %{?_without_test:0}%{!?_without_test:1}
+%if %{?_with_test:1}%{!?_with_test:0}
 BuildRequires: perl(Data::Dumper)
 %endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _noautoreq      'perl(XML::Twig)' 'perl(HTML::TableExtract)'
+
 %description
 The AnyData modules provide simple and uniform access to data from
 many sources -- perl arrays, local files, remote files retrievable via
@@ -42,7 +44,7 @@ parsowalnymi nag
 %build
 perl Makefile.PL
 %{__make}
-%{!?_without_tests:%{__make} test}
+%{?_with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.067933 seconds and 4 git commands to generate.