]> git.pld-linux.org Git - packages/perl-File-Backup.git/blob - perl-File-Backup.spec
e3161cceb0fc23b0bfa24d02ca0bd00c791cfb77
[packages/perl-File-Backup.git] / perl-File-Backup.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    File
7 %define         pnam    Backup
8 Summary:        File::Backup - easy file backup & rotation automation
9 Summary(pl.UTF-8):      File::Backup - łatwa archiwizacja i rotacja plików
10 Name:           perl-File-Backup
11 Version:        0.07
12 Release:        2
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  f53d6a22587abfde366ea84c141b716b
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  perl-devel >= 1:5.8.0
20 %if %{with tests}
21 BuildRequires:  perl-File-Which
22 BuildRequires:  perl-LockFile-Simple
23 %endif
24 Requires:       gzip
25 Requires:       tar
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 The File::Backup legacy Perl module implements archival and
31 compression (A.K.A "backup") and file rotation and is an
32 implementation of "tar" and "gzip" calls.
33
34 %description -l pl.UTF-8
35 Moduł Perla File::Backup stanowi implementację archiwizacji i
36 kompresji ("backup") oraz rotację archiwów i jest zaimplementowany
37 poprzez wywołania programów tar i gzip.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc README
61 %{perl_vendorlib}/%{pdir}/%{pnam}.pm
62 %{_mandir}/man3/*
This page took 0.06823 seconds and 2 git commands to generate.