3 %bcond_without tests # do not perform "make test"
6 %define pnam Path-Expand
7 Summary: File::Path::Expand - expand filenames
8 Summary(pl.UTF-8): File::Path::Expand - rozwijanie nazw plików
9 Name: perl-File-Path-Expand
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 742aa40a4ffb26d14de01192764bd7ab
17 URL: http://search.cpan.org/dist/File-Path-Expand/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Simple
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 File::Path::Expand expands user directories in filenames. For the
28 simple case it's no more complex than s{^~/}{$HOME/}, but for other
29 cases it consults getpwent and does the right thing.
31 %description -l pl.UTF-8
32 File::Path::Expand rozwija katalogi użytkownika w nazwach plików. W
33 prostym przypadku nie jest to bardziej skomplikowane od
34 s{^~/}{$HOME/}, ale w innych wykorzystywana jest funkcja getpwent, aby
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*/*.pm