openmamba logo
GNU/Linux distribution
general information distribution forum community wiki bugs events
info   software   forum community wiki bugs events
packages perl-Lingua-Preferred.spec
      Pages: < 1 >  DOWNLOAD      
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)

Name:          perl-Lingua-Preferred
Version:       0.2.4
Release:       1mamba
Summary:       Lingua::Preferred - Perl extension to choose a language
Group:         System/Libraries/Perl
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://www.cpan.org
Source:        http://search.cpan.org/CPAN/authors/id/E/ED/EDAVIS/Lingua-Preferred-%{version}.tar.gz
License:       GPL, Artistic
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
Requires:      perl >= %perl_major_ver
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Many web browsers let you specify which languages you understand.
Then they negotiate with the web server to get documents in the best
language possible. This is something similar in Perl.

%prep
%setup -q -n Lingua-Preferred-%{version}

%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl

find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
chmod -R u+w %{buildroot}/*

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{perl_vendorlib}/Lingua
%{perl_vendorlib}/auto/Lingua
%{_mandir}/man3/*.gz
%doc Changes README

%changelog
* Sun Mar 13 2011 gil <puntogil@...> 0.2.4-1mamba
- package created by autospec