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