3 |
|
|
4 |
Name: perl-%{upstream_name} |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 3 |
Release: %mkrel 4 |
7 |
|
|
8 |
Summary: Determine file type |
Summary: Determine file type |
9 |
License: GPL+ or Artistic |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name}/ |
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 |
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 |
BuildRequires: perl-File-BaseDir |
16 |
BuildRequires: perl(Module::Build) |
BuildRequires: perl(Module::Build) |
17 |
BuildArch: noarch |
BuildArch: noarch |
18 |
|
|
|
|
|
19 |
%description |
%description |
20 |
This module can be used to determine the mime type of a file; it's a |
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 |
replacement for File::MMagic trying to implement the freedesktop |
25 |
|
|
26 |
%prep |
%prep |
27 |
%setup -q -n %{upstream_name}-%{upstream_version} |
%setup -q -n %{upstream_name}-%{upstream_version} |
28 |
|
%patch0 -p1 -b .regex |
29 |
|
|
30 |
%build |
%build |
31 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
32 |
%make |
%make |
33 |
|
|
34 |
%check |
%check |
35 |
%{__make} test |
make test |
36 |
|
|
37 |
%install |
%install |
38 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
39 |
%makeinstall_std |
%makeinstall_std |
40 |
|
|
|
%clean |
|
|
rm -rf %{buildroot} |
|
|
|
|
41 |
%files |
%files |
42 |
%defattr(-,root,root) |
%defattr(-,root,root) |
43 |
%doc README Changes |
%doc README Changes |
44 |
%_bindir/* |
%_bindir/* |
45 |
%{perl_vendorlib}/File |
%{perl_vendorlib}/File |
|
%{_mandir}/*/* |
|
46 |
|
%{_mandir}/*/* |