]> git.pld-linux.org Git - packages/perl-Directory-Scratch-Structured.git/blob - perl-Directory-Scratch-Structured.spec
738e36919d746fce2116f36c581e4d3205bdc0d5
[packages/perl-Directory-Scratch-Structured.git] / perl-Directory-Scratch-Structured.spec
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
9 Summary(pl.UTF-8):      Directory::Scratch::Structured - tworzenie plików i katalogów tymczasowych z opisu strukturalnego
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
16 Source0:        http://www.cpan.org/modules/by-module/Directory/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  f42c759eb3a8e2d9eb6e07379c25655a
18 URL:            http://search.cpan.org/dist/Directory-Scratch-Structured/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-Data-TreeDumper
23 BuildRequires:  perl-Directory-Scratch
24 BuildRequires:  perl-Readonly
25 BuildRequires:  perl-Sub-Exporter
26 BuildRequires:  perl-Sub-Install
27 BuildRequires:  perl-Test-Block
28 BuildRequires:  perl-Test-Dependencies
29 BuildRequires:  perl-Test-Distribution
30 BuildRequires:  perl-Test-Exception
31 BuildRequires:  perl-Test-NoWarnings
32 BuildRequires:  perl-Test-Perl-Critic
33 BuildRequires:  perl-Test-Pod
34 BuildRequires:  perl-Test-Pod-Coverage
35 BuildRequires:  perl-Test-Spelling
36 BuildRequires:  perl-Test-Strict
37 BuildRequires:  perl-Test-Warn
38 %endif
39 BuildArch:      noarch
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 This module adds a create_structured_tree subroutine to the
44 Directory::Scratch.
45
46 %description -l pl.UTF-8
47 Ten moduł dodaje procedurę create_structured_tree do
48 Directory::Scratch.
49
50 %prep
51 %setup -q -n %{pdir}-%{pnam}-%{version}
52
53 %build
54 %{__perl} Build.PL \
55         destdir=$RPM_BUILD_ROOT \
56         installdirs=vendor
57 ./Build
58
59 %{?with_tests:./Build test}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 ./Build install
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc Changes README
72 %{perl_vendorlib}/Directory/Scratch/*.pm
73 %{_mandir}/man3/*
This page took 0.144809 seconds and 2 git commands to generate.