Группа :: Разработка/Perl
Пакет: perl-File-MimeInfo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Spec file for Perl module File::MimeInfo
%define real_name File-MimeInfo
Name: perl-File-MimeInfo
Version: 0.15
Release: alt1
Summary: determine file type
License: %perl_license
Group: Development/Perl
Url: http://search.cpan.org/~pardus/File-MimeInfo/
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildArch: noarch
Source: http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/%real_name/%real_name-%version.tar.gz
BuildRequires: rpm-build-licenses perl-Module-Build
BuildRequires: perl-File-BaseDir >= 0.03
BuildRequires: perl-File-DesktopEntry >= 0.04
BuildRequires: perl-Test-Pod perl-Test-Pod-Coverage
%description
Perl module File::MimeInfo can be used to determine the mime type
of a file; it's a replacement for File::MMagic trying to implement
the Freedesktop.org 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.
For this module shared-mime-info-spec 0.13 was used.
This package only uses the globs file. No real magic checking is
used. The File::MimeInfo::Magic package is provided for magic typing.
If you want to detemine the mimetype of data in a memory buffer you should
use File::MimeInfo::Magic in combination with IO::Scalar.
%prep
%setup -q -n %real_name-%version
%build
%perl_vendor_build
%install
%perl_vendor_install
rm -f %buildroot%perl_vendor_man3dir/*
%files
%doc README Changes
%_bindir/*
%perl_vendor_privlib/File/MimeInfo*
%perl_vendor_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь
%define real_name File-MimeInfo
Name: perl-File-MimeInfo
Version: 0.15
Release: alt1
Summary: determine file type
License: %perl_license
Group: Development/Perl
Url: http://search.cpan.org/~pardus/File-MimeInfo/
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildArch: noarch
Source: http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/%real_name/%real_name-%version.tar.gz
BuildRequires: rpm-build-licenses perl-Module-Build
BuildRequires: perl-File-BaseDir >= 0.03
BuildRequires: perl-File-DesktopEntry >= 0.04
BuildRequires: perl-Test-Pod perl-Test-Pod-Coverage
%description
Perl module File::MimeInfo can be used to determine the mime type
of a file; it's a replacement for File::MMagic trying to implement
the Freedesktop.org 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.
For this module shared-mime-info-spec 0.13 was used.
This package only uses the globs file. No real magic checking is
used. The File::MimeInfo::Magic package is provided for magic typing.
If you want to detemine the mimetype of data in a memory buffer you should
use File::MimeInfo::Magic in combination with IO::Scalar.
%prep
%setup -q -n %real_name-%version
%build
%perl_vendor_build
%install
%perl_vendor_install
rm -f %buildroot%perl_vendor_man3dir/*
%files
%doc README Changes
%_bindir/*
%perl_vendor_privlib/File/MimeInfo*
%perl_vendor_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь