source: projects/specs/trunk/p/perl-Net-Radius/perl-Net-Radius-vl.spec @ 5895

Revision 5895, 1.5 KB checked in by shaolin, 12 years ago (diff)
  • new packages
Line 
1%define real_name Net-Radius
2
3Summary:        Object-oriented Perl interface to RADIUS
4Name:           perl-Net-Radius
5Version:         1.56
6Release:        1%{?dist}
7License:        Artistic or GPL+
8Group:          Development/Libraries
9URL:            http://search.cpan.org/dist/Net-Radius/
10Source:         http://www.cpan.org/modules/by-module/Net/Net-Radius-%{version}.tar.gz
11BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
12BuildArch:      noarch
13BuildRequires:  perl
14BuildRequires:  perl(ExtUtils::MakeMaker)
15BuildRequires:  perl(Digest::MD5)
16BuildRequires:  perl(Test::More)
17BuildRequires:  perl(Test::Warn)
18Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
19
20%description
21Object-oriented Perl interface to RADIUS.
22
23%prep
24%setup -q -n %{real_name}-%{version}
25
26%build
27%{__perl} Makefile.PL INSTALLDIRS=vendor
28make %{?_smp_mflags}
29
30%install
31rm -rf %{buildroot}
32make pure_install PERL_INSTALL_ROOT=%{buildroot}
33find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
34find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
35find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
36chmod -R u+w %{buildroot}/*
37find contrib/ docs/ examples/ -type f -exec %{__chmod} a-x {} \;
38
39%clean
40rm -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
Note: See TracBrowser for help on using the repository browser.