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