Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 278a4f44d4e9d477599b53186effc7c0 > files > 2

perl-File-MimeInfo-0.10-2mdk.src.rpm

%define module 	File-MimeInfo
%define version 0.10
%define release 2mdk

Summary:	Perl module to determine the mime type of a file.
Name: 		perl-%{module}
Version: 	%{version}
Release: 	%{release}
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/%{module}/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel perl-File-BaseDir
BuildRoot: 	%{_tmppath}/%{name}-buildroot
BuildArch:	noarch

%description
This module can be used to determine the mime type of a file; it's a 
replacement for File::MMagic trying to implement the freedesktop 
specification for using the shared mime-info database. The package
comes with a script called 'mimetype' that can be used as a file(1)
work-alike.

%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make}
make test

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README Changes
%_bindir/*
%{perl_vendorlib}/File/*
%{_mandir}/*/*

%changelog
* Tue Aug 31 2004 Michael Scherer <misc@mandrake.org> 0.10-2mdk 
- add missing BuildRequires

* Tue Aug 24 2004 Michael Scherer <misc@mandrake.org> 0.10-1mdk 
- First Mandrakelinux package