]> git.pld-linux.org Git - packages/perl-File-chdir.git/blame - perl-File-chdir.spec
- explicit man files
[packages/perl-File-chdir.git] / perl-File-chdir.spec
CommitLineData
6a2699c3
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
6a2699c3
AM
5%define pdir File
6%define pnam chdir
7Summary: File::chdir - a more sensible way to change directories
ad95a959 8Summary(pl.UTF-8): File::chdir - rozsądniejszy sposób zmiany katalogów
6a2699c3 9Name: perl-File-chdir
5e9d73fd 10Version: 0.1010
6a2699c3
AM
11Release: 1
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
e94e89bd 14Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
5e9d73fd 15# Source0-md5: aacfafa4a8f13d45be67451e0f9b483e
f5224c25 16URL: https://metacpan.org/release/File-chdir
6a2699c3
AM
17BuildRequires: rpm-perlprov >= 4.1-13
18BuildRequires: perl-devel >= 1:5.8.0
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23File::chdir module - a more sensible way to change directories.
24
bca3fdbe
JB
25Perl's chdir() has the unfortunate problem of being very, very, very
26global. If any part of your program calls chdir() or if any library
27you use calls chdir(), it changes the current working directory for
28the whole program.
6a2699c3 29
bca3fdbe
JB
30File::chdir gives you an alternative, $CWD and @CWD. These two
31variables combine all the power of chdir(), File::Spec and Cwd.
32
2c110498
JR
33%description -l pl.UTF-8
34Moduł File::chdir - rozsądniejszy sposób zmiany katalogów.
bca3fdbe 35
2c110498
JR
36Perlowa funkcja chdir() jest problematyczna, ponieważ działa bardzo,
37bardzo, bardzo globalnie. Jeśli dowolna część programu lub dowolna
38używana biblioteka wywoła chdir(), zmienia się bieżący katalog dla
39całego programu.
bca3fdbe 40
2c110498
JR
41File::chdir daje alternatywę - $CWD i @CWD. Te dwie zmienne łączą całą
42potęgę chdir(), File::Spec i Cwd.
6a2699c3
AM
43
44%prep
45%setup -q -n %{pdir}-%{pnam}-%{version}
46
47%build
48%{__perl} Makefile.PL \
49 INSTALLDIRS=vendor
50%{__make}
51
52%{?with_tests:%{__make} test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes
66%{perl_vendorlib}/File/chdir.pm
f5224c25 67%{_mandir}/man3/File::chdir.3pm*
This page took 0.04876 seconds and 4 git commands to generate.