[5836] | 1 | Name: perl-Net-Frame |
---|
| 2 | Summary: the base framework for frame crafting |
---|
| 3 | Version: 1.09 |
---|
| 4 | Release: 2%{?_dist_release} |
---|
| 5 | License: Artistic/GPL |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | URL: http://search.cpan.org/dist/Net-Frame/ |
---|
| 8 | |
---|
| 9 | Source: http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/Net-Frame-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 11 | |
---|
| 12 | BuildArch: noarch |
---|
| 13 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 14 | BuildRequires: perl-Class-Gomor >= 1.00 |
---|
| 15 | BuildRequires: perl-Net-IPv6Addr |
---|
| 16 | BuildRequires: perl-Bit-Vector |
---|
| 17 | BuildRequires: perl-Socket6 |
---|
| 18 | |
---|
| 19 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | the base framework for frame crafting. |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup -q -n Net-Frame-%{version} |
---|
| 26 | |
---|
| 27 | %build |
---|
| 28 | %{__perl} Makefile.PL INSTALLDIRS="vendor" |
---|
| 29 | %{__make} %{?_smp_mflags} |
---|
| 30 | |
---|
| 31 | %install |
---|
| 32 | %{__rm} -rf %{buildroot} |
---|
| 33 | %{__make} pure_install DESTDIR=%{buildroot} |
---|
| 34 | |
---|
| 35 | ### Clean up buildroot |
---|
| 36 | find %{buildroot} -name .packlist -exec %{__rm} {} \; |
---|
| 37 | |
---|
| 38 | ### Clean up docs |
---|
| 39 | find examples/ -type f -exec %{__chmod} a-x {} \; |
---|
| 40 | |
---|
| 41 | %check |
---|
| 42 | %{__make} test |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | %{__rm} -rf %{buildroot} |
---|
| 46 | |
---|
| 47 | %files |
---|
| 48 | %defattr(-, root, root, 0755) |
---|
| 49 | %doc Changes LICENSE LICENSE.Artistic MANIFEST META.yml README examples/ |
---|
| 50 | %doc %{_mandir}/man3/Net::Frame*.3pm* |
---|
| 51 | %dir %{perl_vendorlib}/Net/ |
---|
| 52 | %{perl_vendorlib}/Net/Frame/ |
---|
| 53 | %{perl_vendorlib}/Net/Frame.pm |
---|
| 54 | |
---|
| 55 | %changelog |
---|
| 56 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-2 |
---|
| 57 | - fix BuildRequires (for tests) |
---|
| 58 | |
---|
| 59 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.09-1 |
---|
| 60 | - initial build for Vine Linux |
---|