Browse Source

* new package

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5865 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 years ago
parent
commit
503683a863
1 changed files with 52 additions and 0 deletions
  1. 52 0
      p/perl-Net-Interface/perl-Net-Interface-vl.spec

+ 52 - 0
p/perl-Net-Interface/perl-Net-Interface-vl.spec

@@ -0,0 +1,52 @@
+%define real_name Net-Interface
+
+Summary:        Access network interfaces
+Name:           perl-Net-Interface
+Version:        1.012
+Release:        1%{?_dist_release}
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/%{real_name}
+
+Source:         http://www.cpan.org/modules/by-module/Net/%{real_name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:  perl(ExtUtils::MakeMaker)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+Net::Interface is designed to make the use of ifconfig(1) and friends
+unnecessary from within Perl.  It provides methods to get at set all
+the attributes of an interface, and even create new logical or
+physical interfaces (if your O/S supports it).
+
+%prep
+%setup -q -n %{real_name}-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc Changes README
+%doc %{_mandir}/man3/*.3pm*
+%dir %{perl_vendorarch}/Net/
+%{perl_vendorarch}/Net/Interface.pm
+%{perl_vendorarch}/Net/Interface/
+%dir %{perl_vendorarch}/auto/Net/
+%{perl_vendorarch}/auto/Net/Interface/
+
+%changelog
+* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.012-1
+- initial build for Vine Linux