]> git.pld-linux.org Git - packages/perl-Net-Interface.git/blame - perl-Net-Interface.spec
- release 5 (by relup.sh)
[packages/perl-Net-Interface.git] / perl-Net-Interface.spec
CommitLineData
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 8Summary: Net::Interface - Perl extension to access network interfaces
363d3e50 9Summary(pl.UTF-8): Net::Interface - moduł umożliwiający dostęp do interfejsów sieciowych
3fed6301 10Name: perl-Net-Interface
8dbb7a65 11Version: 1.012
a78bdc72 12Release: 5
3e8a7818 13# same as perl
14License: GPL v1+ or Artistic
3fed6301 15Group: Development/Languages/Perl
9f3e3c54 16Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
8dbb7a65 17# Source0-md5: cfa0c390c506996c004fb5b214fc4a7c
9f3e3c54 18URL: http://search.cpan.org/dist/Net-Interface/
d2e9d79c 19BuildRequires: perl-devel >= 1:5.8.0
8f2078cf 20BuildRequires: rpm-perlprov >= 4.1-13
e632ea45 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
3fed6301 22
23%description
cddd5e25 24Net::Interface is designed to make the use of ifconfig(1) and friends
8f2078cf
JB
25unnecessary from within Perl. It provides methods to get and set all
26the attributes of an interface, and even create new logical or
27physical interfaces (if your O/S supports it).
3fed6301 28
37e62fac
JR
29%description -l pl.UTF-8
30Net::Interface został zaprojektowany, aby uczynić używanie ifconfig(1)
31i spółki z poziomu Perla niepotrzebnym. Dostarcza metody do
32odczytywania i ustawiania wszystkich atrybutów interfejsu, a nawet
33tworzenia nowych logicznych i fizycznych interfejsów (o ile system
8f2078cf 34operacyjny 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
49rm -rf $RPM_BUILD_ROOT
3fed6301 50
3e8a7818 51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
3fed6301 53
3fed6301 54%clean
55rm -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/*
This page took 0.142485 seconds and 4 git commands to generate.