Browse Source

* perl-Net-Write: new package

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

+ 56 - 0
p/perl-Net-Write/perl-Net-Write-vl.spec

@@ -0,0 +1,56 @@
+%define real_name Net-Write
+
+Summary:        Portable interface to open and send raw data to network
+Name:           perl-%{real_name}
+Version:        1.05
+Release:        1%{?_dist_release}
+License:        Artistic or GPL+
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Net-Write/
+Source:         http://www.cpan.org/modules/by-module/Net/Net-Write-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Class::Gomor)
+BuildRequires:  perl(Socket6)
+BuildRequires:  perl(Net::Pcap) >= 0.12
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+%description
+A portable interface to open and send raw data to network.
+
+%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}
+
+find examples/ -type f -exec %{__chmod} a-x {} \;
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%doc Changes LICENSE LICENSE.Artistic MANIFEST META.yml README examples/
+%{perl_vendorlib}*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.05-1
+- initial build for Vine Linux