1 | %define real_name Net-Radius |
---|
2 | |
---|
3 | Summary: Object-oriented Perl interface to RADIUS |
---|
4 | Name: perl-Net-Radius |
---|
5 | Version: 1.56 |
---|
6 | Release: 1%{?dist} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/Net-Radius/ |
---|
10 | Source: http://www.cpan.org/modules/by-module/Net/Net-Radius-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | BuildArch: noarch |
---|
13 | BuildRequires: perl |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
15 | BuildRequires: perl(Digest::MD5) |
---|
16 | BuildRequires: perl(Test::More) |
---|
17 | BuildRequires: perl(Test::Warn) |
---|
18 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
19 | |
---|
20 | %description |
---|
21 | Object-oriented Perl interface to RADIUS. |
---|
22 | |
---|
23 | %prep |
---|
24 | %setup -q -n %{real_name}-%{version} |
---|
25 | |
---|
26 | %build |
---|
27 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
28 | make %{?_smp_mflags} |
---|
29 | |
---|
30 | %install |
---|
31 | rm -rf %{buildroot} |
---|
32 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
33 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
34 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
35 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
36 | chmod -R u+w %{buildroot}/* |
---|
37 | find contrib/ docs/ examples/ -type f -exec %{__chmod} a-x {} \; |
---|
38 | |
---|
39 | %clean |
---|
40 | rm -rf %{buildroot} |
---|
41 | |
---|
42 | %files |
---|
43 | %defattr(-, root, root, -) |
---|
44 | %doc Changes MANIFEST MANIFEST.SKIP META.yml |
---|
45 | %doc README README.3COM README.VSA README.broken README.packets README.server |
---|
46 | %doc version.pl contrib/ docs/ examples/ |
---|
47 | %{perl_vendorlib}/* |
---|
48 | %{_mandir}/man3/* |
---|
49 | |
---|
50 | %changelog |
---|
51 | * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.56-1 |
---|
52 | - initial build for Vine Linux |
---|