]>
Commit | Line | Data |
---|---|---|
9ec42932 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
9ec42932 | 5 | %define pdir File |
6 | %define pnam Copy-Recursive | |
4197d1eb | 7 | Summary: File::Copy::Recursive - recursively copying files and directories |
6d4aac08 | 8 | Summary(pl.UTF-8): File::Copy::Recursive - rekurencyjne kopiowanie plików i katalogów |
9ec42932 | 9 | Name: perl-File-Copy-Recursive |
e2166ab6 | 10 | Version: 0.45 |
9ec42932 | 11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
00141c72 | 15 | Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz |
e2166ab6 JB |
16 | # Source0-md5: e5eee1a3f8ae3aebbac063ea54870e54 |
17 | URL: https://metacpan.org/release/File-Copy-Recursive | |
9ec42932 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
e2166ab6 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
0f9e4e71 JB |
21 | %if %{with tests} |
22 | BuildRequires: perl-File-Temp | |
23 | BuildRequires: perl-Path-Tiny | |
24 | BuildRequires: perl-Test-Deep | |
25 | BuildRequires: perl-Test-Fatal | |
26 | BuildRequires: perl-Test-File | |
27 | BuildRequires: perl-Test-Warnings | |
28 | BuildRequires: perl-Test-Simple >= 0.88 | |
29 | %endif | |
9ec42932 | 30 | BuildArch: noarch |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | This module copies and moves directories recursively (or single files, | |
35 | well... singley) to an optional depth and attempts to preserve each | |
36 | file or directory's mode. | |
37 | ||
f0f4dbee JR |
38 | %description -l pl.UTF-8 |
39 | Te moduł kopiuje i przenosi katalogi rekurencyjnie (lub pojedyncze | |
40 | pliki... pojedynczo) do opcjonalnej głębokości i próbuje zachować | |
41 | uprawnienia każdego pliku i katalogu. | |
9ec42932 | 42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} | |
50 | ||
51 | %{?with_tests:%{__make} test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
0f9e4e71 | 64 | %doc Changes README README.md |
4197d1eb | 65 | %dir %{perl_vendorlib}/File/Copy |
fdf5fe41 JB |
66 | %{perl_vendorlib}/File/Copy/Recursive.pm |
67 | %{_mandir}/man3/File::Copy::Recursive.3pm* |