]>
Commit | Line | Data |
---|---|---|
36b387cc MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Directory | |
7 | %define pnam Scratch-Structured | |
8 | Summary: Directory::Scratch::Structured - creates temporary files and directories from a structured description | |
41019990 | 9 | #Summary(pl): |
36b387cc MP |
10 | Name: perl-Directory-Scratch-Structured |
11 | Version: 0.03 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
41019990 | 16 | Source0: http://www.cpan.org/modules/by-module/Directory/%{pdir}-%{pnam}-%{version}.tar.gz |
36b387cc MP |
17 | # Source0-md5: f42c759eb3a8e2d9eb6e07379c25655a |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
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) | |
37 | %endif | |
38 | BuildArch: noarch | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
41019990 MP |
42 | This module adds a create_structured_tree subroutine to the |
43 | Directory::Scratch. | |
36b387cc MP |
44 | |
45 | ||
46 | ||
41019990 | 47 | # %description -l pl # TODO |
36b387cc MP |
48 | |
49 | %prep | |
50 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
51 | ||
52 | %build | |
53 | %{__perl} Build.PL \ | |
54 | destdir=$RPM_BUILD_ROOT \ | |
55 | installdirs=vendor | |
56 | ./Build | |
57 | ||
58 | %{?with_tests:./Build test} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | ./Build install | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc Changes README | |
71 | %{perl_vendorlib}/Directory/Scratch/*.pm | |
72 | #%%{perl_vendorlib}/Directory/Scratch/Structured | |
73 | %{_mandir}/man3/* |