]>
Commit | Line | Data |
---|---|---|
81463287 | 1 | %include /usr/lib/rpm/macros.perl |
5a846fad | 2 | Summary: File::Remove - remove files and directories |
999052e9 | 3 | Summary(pl.UTF-8): File::Remove - usuwanie plików i katalogów |
f7828a8f | 4 | Name: perl-File-Remove |
ee04729a | 5 | Version: 1.58 |
5814897b | 6 | Release: 1 |
5a846fad | 7 | # same as perl |
8 | License: GPL v1+ or Artistic | |
f7828a8f | 9 | Group: Development/Languages/Perl |
8e4c8057 | 10 | Source0: http://www.cpan.org/modules/by-module/File/File-Remove-%{version}.tar.gz |
ee04729a | 11 | # Source0-md5: f2d3959c7a8982bbdd03bb27f8b76891 |
dd0525ca | 12 | URL: http://search.cpan.org/dist/File-Remove/ |
8e4c8057 | 13 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.36 |
99e81a67 | 14 | BuildRequires: perl-devel >= 1:5.8.0 |
bd97cd97 | 15 | BuildRequires: rpm-perlprov >= 4.1-13 |
8e4c8057 | 16 | %if %{with tests} |
54fcad2c | 17 | BuildRequires: perl(Cwd) >= 3.29 |
8e4c8057 JB |
18 | BuildRequires: perl(File::Spec) >= 3.29 |
19 | BuildRequires: perl-Test-Simple >= 0.42 | |
20 | %endif | |
92ce5bee | 21 | BuildArch: noarch |
145a6e70 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f7828a8f | 23 | |
24 | %description | |
5a846fad | 25 | File::Remove removes files and directories. It acts like rm for the |
06080204 CM |
26 | most part. Although unlink can be given a list of files it will not |
27 | remove directories. This module remedies that. It also accepts | |
5a846fad | 28 | wildcards, * and ?, as arguments for filenames. |
f7828a8f | 29 | |
6f0d9e71 JR |
30 | %description -l pl.UTF-8 |
31 | File::Remove usuwa pliki i katalogi. Działa w zasadzie jak rm. | |
32 | Jednakże, funkcji unlink można przekazać tylko listę plików, nie usuwa | |
33 | ona katalogów. Ten moduł ma na to lekarstwo. Akceptuje również | |
34 | metaznaki: * i ? jako argumenty dla nazw plików. | |
f7828a8f | 35 | |
36 | %prep | |
5814897b | 37 | %setup -q -n File-Remove-%{version} |
f7828a8f | 38 | |
39 | %build | |
d3f590e7 | 40 | %{__perl} Makefile.PL \ |
a7a789e0 | 41 | INSTALLDIRS=vendor |
9583b440 | 42 | %{__make} |
f7828a8f | 43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
f7828a8f | 46 | |
a9e95124 | 47 | %{__make} pure_install \ |
bd97cd97 | 48 | DESTDIR=$RPM_BUILD_ROOT |
f7828a8f | 49 | |
f7828a8f | 50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
6e9fbeef | 55 | %doc Changes README |
d3f590e7 | 56 | %{perl_vendorlib}/File/Remove.pm |
a9e95124 | 57 | %{_mandir}/man3/File::Remove.3pm* |