File perl-MIME-Types.spec of Package perl-MIME-Types
#
# spec file for package perl-MIME-Types
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-MIME-Types
Version: 2.08
Release: 0
%define cpan_name MIME-Types
Summary: MIME-Type Determination
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://www.cpan.org/modules/by-module/MIME/
Source: http://www.cpan.org/modules/by-module/MIME/%{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
MIME types are used in MIME entities, for instance as part of e-mail
and HTTP traffic. Sometimes real knowledge about a mime-type is need.
This module will supply it.
%prep
%setup -n MIME-Types-%{version} -q
%build
perl Makefile.PL
make %{?_smp_mflags}
%check
make test
%install
make DESTDIR=%{buildroot} install_vendor
%perl_process_packlist
%files
%defattr(-,root,root)
%doc ChangeLog MANIFEST README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/MIME
%{perl_vendorlib}/MIME
%{perl_vendorlib}/MojoX
%{perl_vendorlib}/MojoX/MIME
%changelog