1 | %define real_name Net-Interface |
---|
2 | |
---|
3 | Summary: Access network interfaces |
---|
4 | Name: perl-Net-Interface |
---|
5 | Version: 1.012 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: GPL+ or Artistic |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/%{real_name} |
---|
10 | |
---|
11 | Source: http://www.cpan.org/modules/by-module/Net/%{real_name}-%{version}.tar.gz |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
13 | |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
15 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
16 | |
---|
17 | %description |
---|
18 | Net::Interface is designed to make the use of ifconfig(1) and friends |
---|
19 | unnecessary from within Perl. It provides methods to get at set all |
---|
20 | the attributes of an interface, and even create new logical or |
---|
21 | physical interfaces (if your O/S supports it). |
---|
22 | |
---|
23 | %prep |
---|
24 | %setup -q -n %{real_name}-%{version} |
---|
25 | |
---|
26 | %build |
---|
27 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
28 | make %{?_smp_mflags} |
---|
29 | |
---|
30 | %install |
---|
31 | rm -rf %{buildroot} |
---|
32 | make pure_install DESTDIR=%{buildroot} |
---|
33 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
34 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
35 | %{_fixperms} %{buildroot} |
---|
36 | |
---|
37 | %clean |
---|
38 | rm -rf %{buildroot} |
---|
39 | |
---|
40 | %files |
---|
41 | %defattr(-, root, root, 0755) |
---|
42 | %doc Changes README |
---|
43 | %doc %{_mandir}/man3/*.3pm* |
---|
44 | %dir %{perl_vendorarch}/Net/ |
---|
45 | %{perl_vendorarch}/Net/Interface.pm |
---|
46 | %{perl_vendorarch}/Net/Interface/ |
---|
47 | %dir %{perl_vendorarch}/auto/Net/ |
---|
48 | %{perl_vendorarch}/auto/Net/Interface/ |
---|
49 | |
---|
50 | %changelog |
---|
51 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.012-1 |
---|
52 | - initial build for Vine Linux |
---|