2006-10-14 21:42:51 +00:00
|
|
|
Name: perl-File-MimeInfo
|
2008-02-14 21:54:47 +00:00
|
|
|
Version: 0.15
|
2010-05-01 04:28:31 +00:00
|
|
|
Release: 6%{?dist}
|
2006-10-14 21:42:51 +00:00
|
|
|
Summary: Determine file type and open application
|
2007-12-28 16:21:23 +00:00
|
|
|
License: GPL+ or Artistic
|
2006-10-14 21:42:51 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/File-MimeInfo/
|
|
|
|
Source0: http://www.cpan.org/authors/id/P/PA/PARDUS/File-MimeInfo/File-MimeInfo-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2007-08-08 10:04:35 +00:00
|
|
|
BuildRequires: perl(Module::Build) perl(Test::More) perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
2006-10-14 21:42:51 +00:00
|
|
|
BuildRequires: perl(File::BaseDir) perl(File::DesktopEntry)
|
2007-08-08 10:04:35 +00:00
|
|
|
# needed for some tests otherwise there are warnings
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
# there is also a mimeinfo.cache file created by desktop-file-utils
|
|
|
|
# needed. It won't be there if building in a chroot, even if
|
|
|
|
# desktop-file-utils is installed if desktop-file-utils was never run.
|
2006-11-16 17:29:06 +00:00
|
|
|
Requires: shared-mime-info
|
2006-10-14 21:42:51 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module can be used to determine the mime type of a file. It tries to
|
|
|
|
implement the freedesktop specification for a shared MIME database.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n File-MimeInfo-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
|
|
|
%{_bindir}/mimeopen
|
|
|
|
%{_bindir}/mimetype
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2010-05-01 04:28:31 +00:00
|
|
|
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-6
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2009-12-07 01:41:40 +00:00
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.15-5
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-07-26 06:01:47 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 16:17:58 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-03-06 19:08:30 +00:00
|
|
|
* Thu Mar 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.15-2
|
|
|
|
- rebuild for new perl
|
|
|
|
|
2008-02-14 21:54:47 +00:00
|
|
|
* Thu Feb 14 2008 Patrice Dumas <pertusus@free.fr> 0.15-1
|
|
|
|
- update to 0.15, remove upstreamed no-ask patch
|
|
|
|
|
2007-08-08 10:04:35 +00:00
|
|
|
* Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.14-1
|
|
|
|
- update to 0.14
|
|
|
|
|
2006-11-16 17:29:06 +00:00
|
|
|
* Thu Nov 16 2006 Patrice Dumas <pertusus@free.fr> 0.13-3
|
|
|
|
- add a Requires on shared-mime-info (Bug #215972)
|
|
|
|
|
2006-10-14 21:42:51 +00:00
|
|
|
* Wed Oct 11 2006 Patrice Dumas <pertusus@free.fr> 0.13-2
|
|
|
|
- add an option to launch mimeopen non interactively
|
|
|
|
|
|
|
|
* Wed Oct 11 2006 Patrice Dumas <pertusus@free.fr> 0.13-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.69.
|