1 |
%define upstream_name File-MimeInfo |
2 |
%define upstream_version 0.15 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 4 |
7 |
|
8 |
Summary: Determine file type |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name}/ |
12 |
Source0: http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.bz2 |
13 |
Patch0: 0001-Suggested-fix-for-RT-66841.patch |
14 |
|
15 |
BuildRequires: perl-File-BaseDir |
16 |
BuildRequires: perl(Module::Build) |
17 |
BuildArch: noarch |
18 |
|
19 |
%description |
20 |
This module can be used to determine the mime type of a file; it's a |
21 |
replacement for File::MMagic trying to implement the freedesktop |
22 |
specification for using the shared mime-info database. The package |
23 |
comes with a script called 'mimetype' that can be used as a file(1) |
24 |
work-alike. |
25 |
|
26 |
%prep |
27 |
%setup -q -n %{upstream_name}-%{upstream_version} |
28 |
%patch0 -p1 -b .regex |
29 |
|
30 |
%build |
31 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
32 |
%make |
33 |
|
34 |
%check |
35 |
make test |
36 |
|
37 |
%install |
38 |
rm -rf %{buildroot} |
39 |
%makeinstall_std |
40 |
|
41 |
%files |
42 |
%defattr(-,root,root) |
43 |
%doc README Changes |
44 |
%_bindir/* |
45 |
%{perl_vendorlib}/File |
46 |
%{_mandir}/*/* |