]> git.pld-linux.org Git - packages/perl-Directory-Scratch-Structured.git/blob - perl-Directory-Scratch-Structured.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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 %define pdir    Directory
6 %define pnam    Scratch-Structured
7 Summary:        Directory::Scratch::Structured - creates temporary files and directories from a structured description
8 Summary(pl.UTF-8):      Directory::Scratch::Structured - tworzenie plików i katalogów tymczasowych z opisu strukturalnego
9 Name:           perl-Directory-Scratch-Structured
10 Version:        0.04
11 Release:        2
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Directory/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  ef6155cc8a9723e0e9614508aa1c592d
16 URL:            http://search.cpan.org/dist/Directory-Scratch-Structured/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Data-TreeDumper
21 BuildRequires:  perl-Directory-Scratch
22 BuildRequires:  perl-Readonly
23 BuildRequires:  perl-Sub-Exporter
24 BuildRequires:  perl-Sub-Install
25 BuildRequires:  perl-Test-Block
26 BuildRequires:  perl-Test-Exception
27 BuildRequires:  perl-Test-NoWarnings
28 BuildRequires:  perl-Test-Strict
29 BuildRequires:  perl-Test-Warn
30 %endif
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 This module adds a create_structured_tree subroutine to the
36 Directory::Scratch.
37
38 %description -l pl.UTF-8
39 Ten moduł dodaje procedurę create_structured_tree do
40 Directory::Scratch.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Build.PL \
47         destdir=$RPM_BUILD_ROOT \
48         installdirs=vendor
49 ./Build
50
51 %{?with_tests:./Build test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 ./Build install
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes README
64 %dir %{perl_vendorlib}/Directory/Scratch
65 %{perl_vendorlib}/Directory/Scratch/Structured.pm
66 %{_mandir}/man3/Directory::Scratch::Structured.3pm*
This page took 0.109505 seconds and 4 git commands to generate.