3 %bcond_with tests # perform "./Build test"
4 # (tests fail because our perl doesn't contain
5 # File::Spec::Win32 and other "foreign" modules)
7 %include /usr/lib/rpm/macros.perl
10 Summary: Path::Class - cross-platform path specification manipulation
11 Summary(pl.UTF-8): Path::Class - wieloplatformowe operacje na ścieżkach plików
16 License: GPL v1+ or Artistic
17 Group: Development/Languages/Perl
18 Source0: http://www.cpan.org/modules/by-authors/id/K/KW/KWILLIAMS/%{pdir}-%{pnam}-%{version}.tar.gz
19 # Source0-md5: 91517fdac5262e8665ae2ba9f507824b
20 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
21 BuildRequires: perl-Module-Build >= 0.3601
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRequires: perl(File::Spec) >= 0.87
26 BuildRequires: perl-File-Temp
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Path::Class is a module for manipulation of file and directory
33 specifications (strings describing their locations, like
34 '/home/ken/foo.txt' or 'C:\Windows\Foo.txt') in a cross-platform
35 manner. It supports pretty much every platform Perl runs on, including
36 Unix, Windows, Mac, VMS, Epoc, Cygwin, OS/2, and NetWare.
38 The well-known module File::Spec also provides this service, but it's
39 sort of awkward to use well, so people sometimes avoid it, or use it
40 in a way that won't actually work properly on platforms significantly
41 different than the ones they've tested their code on.
43 %description -l pl.UTF-8
44 Path::Class to moduł do operacji na specifikacjach plików i katalogów
45 (łańcuchach opisujących ich położenie, takich jak '/home/ken/foo.txt'
46 czy 'C:\Windows\Foo.txt') w sposób wieloplatformowy. Obsługuje
47 większość platform na których działa Perl, w tym: Unix, Windows, Mac,
48 VMS, Epoc, Cygwin, OS/2, NetWare.
50 Podobne operacje są udostępniane przez dobrze znany moduł File::Spec,
51 ale jest on nieco niewygodny, więc ludzie czasem go unikają lub
52 używają w sposób nie działający poprawnie na platformach znacząco
53 różnych od tych, na których testują kod.
56 %setup -q -n %{pdir}-%{pnam}-%{version}
61 destdir=$RPM_BUILD_ROOT
64 %{?with_tests:./Build test}
67 rm -rf $RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %dir %{perl_vendorlib}/Path
78 %{perl_vendorlib}/Path/Class.pm
79 %{perl_vendorlib}/Path/Class
80 %{_mandir}/man3/Path::Class*.3pm*