3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Scratch-Structured
8 Summary: Directory::Scratch::Structured - creates temporary files and directories from a structured description
10 Name: perl-Directory-Scratch-Structured
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-modules/Directory/Directory-Scratch-Structured-0.03.tar.gz
17 # Source0-md5: f42c759eb3a8e2d9eb6e07379c25655a
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Data::TreeDumper)
22 BuildRequires: perl(Directory::Scratch)
23 BuildRequires: perl(Readonly)
24 BuildRequires: perl(Sub::Exporter)
25 BuildRequires: perl(Sub::Install)
26 BuildRequires: perl(Test::Block)
27 BuildRequires: perl(Test::Dependencies)
28 BuildRequires: perl(Test::Distribution)
29 BuildRequires: perl(Test::Exception)
30 BuildRequires: perl(Test::NoWarnings)
31 BuildRequires: perl(Test::Perl::Critic)
32 BuildRequires: perl(Test::Pod)
33 BuildRequires: perl(Test::Pod::Coverage)
34 BuildRequires: perl(Test::Spelling)
35 BuildRequires: perl(Test::Strict)
36 BuildRequires: perl(Test::Warn)
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 This module adds a create_structured_tree subroutine to the Directory::Scratch.
50 %setup -q -n %{pdir}-%{pnam}-%{version}
54 destdir=$RPM_BUILD_ROOT \
58 %{?with_tests:./Build test}
61 rm -rf $RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/Directory/Scratch/*.pm
72 #%%{perl_vendorlib}/Directory/Scratch/Structured