]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: File::Path::Expand - expand filenames |
f2e71e05 | 9 | Summary(pl.UTF-8): File::Path::Expand - rozwijanie nazw plików |
0a5b783a | 10 | Name: perl-File-Path-Expand |
216075cd | 11 | Version: 1.02 |
03209988 | 12 | Release: 2 |
0a5b783a | 13 | # same as perl |
70361504 | 14 | License: GPL v1+ or Artistic |
0a5b783a | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
216075cd | 17 | # Source0-md5: 742aa40a4ffb26d14de01192764bd7ab |
bc86ff5c ER |
18 | URL: http://search.cpan.org/dist/File-Path-Expand/ |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22e07c75 | 21 | %if %{with tests} |
0a5b783a | 22 | BuildRequires: perl-Test-Simple |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
22e07c75 JB |
28 | File::Path::Expand expands user directories in filenames. For the |
29 | simple case it's no more complex than s{^~/}{$HOME/}, but for other | |
30 | cases it consults getpwent and does the right thing. | |
31 | ||
b1651ee8 JR |
32 | %description -l pl.UTF-8 |
33 | File::Path::Expand rozwija katalogi użytkownika w nazwach plików. W | |
22e07c75 JB |
34 | prostym przypadku nie jest to bardziej skomplikowane od |
35 | s{^~/}{$HOME/}, ale w innych wykorzystywana jest funkcja getpwent, aby | |
b1651ee8 | 36 | zrobić 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 | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes | |
60 | %{perl_vendorlib}/%{pdir}/*/*.pm | |
61 | %{_mandir}/man3/* |