]>
Commit | Line | Data |
---|---|---|
cb53dad0 | 1 | # |
2 | # Conditional build: | |
9e2b14e4 | 3 | %bcond_without tests # do not perform "make test" |
d4c0511d | 4 | |
0243574e | 5 | %define pdir PerlIO |
6 | %define pnam via-symlink | |
cb53dad0 | 7 | Summary: PerlIO::via::symlink - PerlIO layers for create symlinks |
d7bb89ee | 8 | Summary(pl.UTF-8): PerlIO::via::symlink - warstwy PerlIO do tworzenia symlinków |
cb53dad0 | 9 | Name: perl-PerlIO-via-symlink |
0c5b9c1b | 10 | Version: 0.05 |
4daa2f9d | 11 | Release: 2 |
cb53dad0 | 12 | # same as perl |
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 | |
0c5b9c1b | 16 | # Source0-md5: bf33533dba6a48eb459a15df15c8415f |
d4c0511d | 17 | URL: http://search.cpan.org/dist/PerlIO-via-symlink/ |
cb53dad0 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
5216c48a | 24 | The PerlIO layer symlink allows you to create a symbolic link by |
cb53dad0 | 25 | writing to the file handle. |
26 | ||
5216c48a JB |
27 | You need to write "link $name" to the file handle. If the format does |
28 | not match, close will fail with EINVAL. | |
cb53dad0 | 29 | |
5e533d18 JR |
30 | %description -l pl.UTF-8 |
31 | Warstwa PerlIO symlink umożliwia tworzenie dowiązań symbolicznych | |
5216c48a JB |
32 | poprzez zapis do uchwytu pliku. |
33 | ||
5e533d18 JR |
34 | Wystarczy zapisać "link $name" do uchwytu pliku. Jeśli format się nie |
35 | zgadza, close nie powiedzie się z kodem EINVAL. | |
cb53dad0 | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc CHANGES README | |
59 | %{perl_vendorlib}/PerlIO/via/*.pm | |
60 | %{_mandir}/man3/* |