]>
Commit | Line | Data |
---|---|---|
814503cd MP |
1 | # |
2 | # Conditional build: | |
814503cd MP |
3 | %bcond_without tests # do not perform "make test" |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir IO | |
7 | %define pnam Interface | |
7197ec95 | 8 | Summary: IO::Interface - Perl extension to access interface information |
e61cd9ad | 9 | Summary(pl.UTF-8): IO::Interface - rozszerzenie Perla do dostępu do informacji o interfejsach |
814503cd | 10 | Name: perl-IO-Interface |
3ab5d31c | 11 | Version: 1.02 |
12 | Release: 1 | |
814503cd MP |
13 | License: GPL v2/Artistic (same as perl) |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
3ab5d31c | 16 | # Source0-md5: ff96f98f52b68ece88a8e40e292071d2 |
7197ec95 | 17 | URL: http://search.cpan.org/dist/IO-Interface/ |
814503cd MP |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
814503cd MP |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
814503cd MP |
22 | %description |
23 | IO::Interface adds methods to IO::Socket objects that allows them to | |
24 | be used to retrieve and change information about the network | |
25 | interfaces on your system. In addition to the object-oriented access | |
26 | methods, you can use a function-oriented style. | |
27 | ||
87f43145 JR |
28 | %description -l pl.UTF-8 |
29 | IO::Interface dodaje do obiektów IO::Socket metody pozwalające na | |
30 | używanie ich do pobierania i zmiany informacji o interfejsach | |
31 | sieciowych w systemie. Oprócz metod zorientowanych obiektowo można | |
32 | używać także wywołań zorientowanych na funkce. | |
7197ec95 | 33 | |
814503cd MP |
34 | %prep |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | ||
41 | %{__make} \ | |
42 | OPTIMIZE="%{rpmcflags}" | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} pure_install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
58 | %{perl_vendorarch}/IO/Interface.pm | |
3ab5d31c | 59 | %dir %{perl_vendorarch}/IO/Interface |
60 | %{perl_vendorarch}/IO/Interface/Simple.pm | |
814503cd | 61 | %dir %{perl_vendorarch}/auto/IO/Interface |
7197ec95 JB |
62 | %attr(755,root,root) %{perl_vendorarch}/auto/IO/Interface/*.so |
63 | %{perl_vendorarch}/auto/IO/Interface/*.bs | |
3ab5d31c | 64 | %{perl_vendorarch}/auto/IO/Interface/autosplit.ix |
814503cd | 65 | %{_mandir}/man3/* |