]> git.pld-linux.org Git - packages/perl-File-Path-Expand.git/blame - perl-File-Path-Expand.spec
use generic url
[packages/perl-File-Path-Expand.git] / perl-File-Path-Expand.spec
CommitLineData
0a5b783a 1#
2# Conditional build:
22e07c75 3%bcond_without tests # do not perform "make test"
bc86ff5c 4
36e7ca0c 5%define pdir File
6%define pnam Path-Expand
bc86ff5c 7%include /usr/lib/rpm/macros.perl
0a5b783a 8Summary: File::Path::Expand - expand filenames
f2e71e05 9Summary(pl.UTF-8): File::Path::Expand - rozwijanie nazw plików
0a5b783a 10Name: perl-File-Path-Expand
216075cd 11Version: 1.02
03209988 12Release: 2
0a5b783a 13# same as perl
70361504 14License: GPL v1+ or Artistic
0a5b783a 15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
216075cd 17# Source0-md5: 742aa40a4ffb26d14de01192764bd7ab
bc86ff5c
ER
18URL: http://search.cpan.org/dist/File-Path-Expand/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
22e07c75 21%if %{with tests}
0a5b783a 22BuildRequires: perl-Test-Simple
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
22e07c75
JB
28File::Path::Expand expands user directories in filenames. For the
29simple case it's no more complex than s{^~/}{$HOME/}, but for other
30cases it consults getpwent and does the right thing.
31
b1651ee8
JR
32%description -l pl.UTF-8
33File::Path::Expand rozwija katalogi użytkownika w nazwach plików. W
22e07c75
JB
34prostym przypadku nie jest to bardziej skomplikowane od
35s{^~/}{$HOME/}, ale w innych wykorzystywana jest funkcja getpwent, aby
b1651ee8 36zrobić to co trzeba.
0a5b783a 37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
42%{__perl} Makefile.PL \
43 INSTALLDIRS=vendor
44%{__make}
45
c8311dba 46%{?with_tests:%{__make} test}
0a5b783a 47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes
60%{perl_vendorlib}/%{pdir}/*/*.pm
61%{_mandir}/man3/*
This page took 0.071693 seconds and 4 git commands to generate.