]> git.pld-linux.org Git - packages/perl-Archive-Any.git/blob - perl-Archive-Any.spec
1ae9cf9749b5157f5846d626216efaa01f51bdb5
[packages/perl-Archive-Any.git] / perl-Archive-Any.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    Archive
7 %define         pnam    Any
8 Summary:        Archive::Any - Single interface to deal with zips and tarballs
9 Summary(pl.UTF-8):      Archive::Any - wspólny interfejs do obsługi archiwów zip i tar
10 Name:           perl-Archive-Any
11 Version:        0.0932
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/Archive/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  aaab5cf41f2efe428b65fbc352ee314e
18 URL:            http://search.cpan.org/dist/Archive-Any/
19 %if %{with tests}
20 BuildRequires:  perl-Archive-Tar >= 1.07
21 BuildRequires:  perl-Archive-Zip >= 1.07
22 BuildRequires:  perl-File-MMagic >= 1.27
23 BuildRequires:  perl-MIME-Types >= 1.16
24 BuildRequires:  perl-Module-Find >= 0.05
25 BuildRequires:  perl-Test-Perl-Critic
26 BuildRequires:  perl-Test-Pod-Coverage
27 BuildRequires:  perl-Test-Simple >= 0.40
28 BuildRequires:  perl-Test-Warn
29 %endif
30 BuildRequires:  perl-devel >= 1:5.8.0
31 BuildRequires:  rpm-perlprov >= 4.1-13
32 Requires:       perl-Archive-Tar >= 1.07
33 Requires:       perl-Archive-Zip >= 1.07
34 Requires:       perl-File-MMagic >= 1.27
35 Requires:       perl-MIME-Types >= 1.16
36 Requires:       perl-Module-Find >= 0.05
37 BuildArch:      noarch
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 This module is a single interface for manipulating different archive
42 formats. Tarballs, zip files, etc...
43
44 %description -l pl.UTF-8
45 Ten moduł to wspólny interfejs do obrabiania archiwów w różnych
46 formatach: tar, zip itp.
47
48 %prep
49 %setup -q -n %{pdir}-%{pnam}-%{version}
50
51 %build
52 %{__perl} Makefile.PL \
53         INSTALLDIRS=vendor
54 %{__make}
55
56 %{?with_tests:%{__make} test}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc Changes
70 %{perl_vendorlib}/Archive/Any.pm
71 %{perl_vendorlib}/Archive/Any
72 %{_mandir}/man3/*
This page took 0.061864 seconds and 2 git commands to generate.