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