]>
Commit | Line | Data |
---|---|---|
3e8a7818 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
c9b61a83 | 5 | %include /usr/lib/rpm/macros.perl |
d901f6f4 | 6 | %define pdir Net |
7 | %define pnam Interface | |
cddd5e25 | 8 | Summary: Net::Interface - Perl extension to access network interfaces |
363d3e50 | 9 | Summary(pl.UTF-8): Net::Interface - moduł umożliwiający dostęp do interfejsów sieciowych |
3fed6301 | 10 | Name: perl-Net-Interface |
8dbb7a65 | 11 | Version: 1.012 |
a78bdc72 | 12 | Release: 5 |
3e8a7818 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
3fed6301 | 15 | Group: Development/Languages/Perl |
9f3e3c54 | 16 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz |
8dbb7a65 | 17 | # Source0-md5: cfa0c390c506996c004fb5b214fc4a7c |
9f3e3c54 | 18 | URL: http://search.cpan.org/dist/Net-Interface/ |
d2e9d79c | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
8f2078cf | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
e632ea45 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3fed6301 | 22 | |
23 | %description | |
cddd5e25 | 24 | Net::Interface is designed to make the use of ifconfig(1) and friends |
8f2078cf JB |
25 | unnecessary from within Perl. It provides methods to get and set all |
26 | the attributes of an interface, and even create new logical or | |
27 | physical interfaces (if your O/S supports it). | |
3fed6301 | 28 | |
37e62fac JR |
29 | %description -l pl.UTF-8 |
30 | Net::Interface został zaprojektowany, aby uczynić używanie ifconfig(1) | |
31 | i spółki z poziomu Perla niepotrzebnym. Dostarcza metody do | |
32 | odczytywania i ustawiania wszystkich atrybutów interfejsu, a nawet | |
33 | tworzenia nowych logicznych i fizycznych interfejsów (o ile system | |
8f2078cf | 34 | operacyjny na to pozwala). |
3fed6301 | 35 | |
36 | %prep | |
c9b61a83 | 37 | %setup -q -n %{pdir}-%{pnam}-%{version} |
3fed6301 | 38 | |
39 | %build | |
63ebdc85 | 40 | %{__perl} Makefile.PL \ |
d1ced57c | 41 | INSTALLDIRS=vendor |
3e8a7818 | 42 | %{__make} \ |
fea82edf | 43 | CC="%{__cc}" \ |
3e8a7818 | 44 | OPTIMIZE="%{rpmcflags}" |
45 | ||
46 | %{?with_tests:%{__make} test} | |
3fed6301 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
3fed6301 | 50 | |
3e8a7818 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
3fed6301 | 53 | |
3fed6301 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
a2376e66 | 59 | %doc Changes README* |
63ebdc85 | 60 | %{perl_vendorarch}/Net/Interface.pm |
61 | %dir %{perl_vendorarch}/auto/Net/Interface | |
63ebdc85 | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/Net/Interface/Interface.so |
e74395ff | 63 | %dir %{perl_vendorarch}/Net/Interface |
64 | %{perl_vendorarch}/Net/Interface/Developer.pm | |
65 | %{perl_vendorarch}/Net/Interface/NetSymbols.pm | |
3fed6301 | 66 | %{_mandir}/man3/* |