3 %bcond_without tests # do not perform "make test"
7 Summary: File::chdir - a more sensible way to change directories
8 Summary(pl.UTF-8): File::chdir - rozsądniejszy sposób zmiany katalogów
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: aacfafa4a8f13d45be67451e0f9b483e
16 URL: https://metacpan.org/release/File-chdir
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 File::chdir module - a more sensible way to change directories.
25 Perl's chdir() has the unfortunate problem of being very, very, very
26 global. If any part of your program calls chdir() or if any library
27 you use calls chdir(), it changes the current working directory for
30 File::chdir gives you an alternative, $CWD and @CWD. These two
31 variables combine all the power of chdir(), File::Spec and Cwd.
33 %description -l pl.UTF-8
34 Moduł File::chdir - rozsądniejszy sposób zmiany katalogów.
36 Perlowa funkcja chdir() jest problematyczna, ponieważ działa bardzo,
37 bardzo, bardzo globalnie. Jeśli dowolna część programu lub dowolna
38 używana biblioteka wywoła chdir(), zmienia się bieżący katalog dla
41 File::chdir daje alternatywę - $CWD i @CWD. Te dwie zmienne łączą całą
42 potęgę chdir(), File::Spec i Cwd.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/File/chdir.pm
67 %{_mandir}/man3/File::chdir.3pm*