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