This commit is contained in:
Petr Písař 2011-03-17 15:27:30 +01:00
parent 082a7cda12
commit 85c627a651
3 changed files with 54 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/LWP-MediaTypes-6.01.tar.gz

52
perl-LWP-MediaTypes.spec Normal file
View File

@ -0,0 +1,52 @@
Name: perl-LWP-MediaTypes
Version: 6.01
Release: 1%{?dist}
Summary: Guess media type for a file or a URL
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/LWP-MediaTypes/
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/LWP-MediaTypes-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
# Tests only:
BuildRequires: perl(Test)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(File::Basename)
Conflicts: perl-libwww-perl < 6
%description
This module provides functions for handling media (also known as MIME)
types and encodings. The mapping from file extensions to media types is
defined by the media.types file. If the ~/.media.types file exists it is
used instead. For backwards compatibility we will also look for
~/.mime.types.
%prep
%setup -q -n LWP-MediaTypes-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.01-1
- Specfile autogenerated by cpanspec 1.78.
- Remove BuildRoot stuff
- Conflicts with perl-libwww-perl 5* and older

View File

@ -0,0 +1 @@
3cd1ccb774867b5b20e672981b230db6 LWP-MediaTypes-6.01.tar.gz