1 | %define real_name Net-Write |
---|
2 | |
---|
3 | Summary: Portable interface to open and send raw data to network |
---|
4 | Name: perl-%{real_name} |
---|
5 | Version: 1.05 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/Net-Write/ |
---|
10 | Source: http://www.cpan.org/modules/by-module/Net/Net-Write-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | |
---|
13 | BuildArch: noarch |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
15 | BuildRequires: perl(Class::Gomor) |
---|
16 | BuildRequires: perl(Socket6) |
---|
17 | BuildRequires: perl(Net::Pcap) >= 0.12 |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | |
---|
23 | %description |
---|
24 | A portable interface to open and send raw data to network. |
---|
25 | |
---|
26 | %prep |
---|
27 | %setup -q -n %{real_name}-%{version} |
---|
28 | |
---|
29 | %build |
---|
30 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
31 | make %{?_smp_mflags} |
---|
32 | |
---|
33 | %install |
---|
34 | rm -rf %{buildroot} |
---|
35 | make pure_install DESTDIR=%{buildroot} |
---|
36 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
37 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
38 | %{_fixperms} %{buildroot} |
---|
39 | |
---|
40 | find examples/ -type f -exec %{__chmod} a-x {} \; |
---|
41 | |
---|
42 | %check |
---|
43 | make test |
---|
44 | |
---|
45 | %clean |
---|
46 | rm -rf %{buildroot} |
---|
47 | |
---|
48 | %files |
---|
49 | %defattr(-, root, root, -) |
---|
50 | %doc Changes LICENSE LICENSE.Artistic MANIFEST META.yml README examples/ |
---|
51 | %{perl_vendorlib}* |
---|
52 | %{_mandir}/man3/* |
---|
53 | |
---|
54 | %changelog |
---|
55 | * Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.05-1 |
---|
56 | - initial build for Vine Linux |
---|