2017-04-28 12:54:15 +00:00
|
|
|
# Run optional tests
|
2018-04-05 12:48:31 +00:00
|
|
|
%if ! (0%{?rhel})
|
2017-04-28 12:54:15 +00:00
|
|
|
%{bcond_without perl_File_MimeInfo_enables_optional_test}
|
2018-04-05 12:48:31 +00:00
|
|
|
%else
|
|
|
|
%{bcond_with perl_File_MimeInfo_enables_optional_test}
|
|
|
|
%endif
|
2020-06-23 07:19:47 +00:00
|
|
|
# Use IO::Scalar to support processing a standard input in a mimetype tool
|
|
|
|
%{bcond_without perl_File_MimeInfo_enables_stdin}
|
|
|
|
# Use Pod::Usage to support printing a usage text by a mimetype tool
|
|
|
|
%{bcond_without perl_File_MimeInfo_enables_usage}
|
2017-04-28 12:54:15 +00:00
|
|
|
|
2006-10-14 21:42:51 +00:00
|
|
|
Name: perl-File-MimeInfo
|
2018-08-06 08:08:11 +00:00
|
|
|
Version: 0.29
|
2020-06-23 08:20:31 +00:00
|
|
|
Release: 8%{?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
|
2018-06-04 12:59:28 +00:00
|
|
|
URL: https://metacpan.org/release/File-MimeInfo
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-%{version}.tar.gz
|
2006-10-14 21:42:51 +00:00
|
|
|
BuildArch: noarch
|
2016-11-30 15:52:57 +00:00
|
|
|
BuildRequires: make
|
2016-06-24 08:12:52 +00:00
|
|
|
BuildRequires: perl-generators
|
2020-06-23 07:29:32 +00:00
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
2013-10-08 09:54:08 +00:00
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
2013-07-21 11:28:17 +00:00
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
BuildRequires: perl(File::BaseDir) >= 0.03
|
|
|
|
BuildRequires: perl(File::DesktopEntry) >= 0.04
|
|
|
|
BuildRequires: perl(File::Spec)
|
2020-06-23 07:19:47 +00:00
|
|
|
# Optional run-time:
|
|
|
|
%if %{with perl_File_MimeInfo_enables_stdin}
|
|
|
|
BuildRequires: perl(IO::Scalar)
|
|
|
|
%endif
|
|
|
|
%if %{with perl_File_MimeInfo_enables_usage}
|
|
|
|
BuildRequires: perl(Pod::Usage)
|
|
|
|
%endif
|
2013-07-21 11:28:17 +00:00
|
|
|
# Tests:
|
2018-08-06 08:08:11 +00:00
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2020-06-23 07:19:47 +00:00
|
|
|
# t/11mimeinfo.t executes ./mimetype that returns an unexpected MIME type
|
|
|
|
# without shared-mime-info database
|
|
|
|
BuildRequires: shared-mime-info
|
2017-04-28 12:54:15 +00:00
|
|
|
%if %{with perl_File_MimeInfo_enables_optional_test}
|
2013-07-21 11:28:17 +00:00
|
|
|
# Optional tests:
|
2017-01-09 13:30:13 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
# Break build cycle: perl-Path-Tiny → perl-Unicode-UTF8 →
|
2020-06-23 07:19:47 +00:00
|
|
|
# perl-Module-Install-ReadmeFromPod → perl-IO-All → perl-File-MimeInfo
|
2016-11-30 15:52:57 +00:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2017-01-09 13:30:13 +00:00
|
|
|
%endif
|
2013-07-21 11:28:17 +00:00
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
2020-06-23 07:19:47 +00:00
|
|
|
# Test::Pod::No404s not used
|
2017-05-04 09:43:06 +00:00
|
|
|
%endif
|
2013-07-21 11:28:17 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(File::BaseDir) >= 0.03
|
|
|
|
Requires: perl(File::DesktopEntry) >= 0.04
|
2020-06-23 07:19:47 +00:00
|
|
|
%if %{with perl_File_MimeInfo_enables_stdin}
|
|
|
|
Recommends: perl(IO::Scalar)
|
|
|
|
%endif
|
|
|
|
%if %{with perl_File_MimeInfo_enables_usage}
|
|
|
|
Recommends: perl(Pod::Usage)
|
|
|
|
%endif
|
|
|
|
# It's optional, but without it File::MimeInfo produces an annoying warning
|
|
|
|
# about a missing /usr/share/mime/globs and returns inaccurate results.
|
|
|
|
Recommends: shared-mime-info
|
2013-07-21 11:28:17 +00:00
|
|
|
|
|
|
|
# Filter under-specified dependencies
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::BaseDir|File::DesktopEntry)\\)$
|
2006-10-14 21:42:51 +00:00
|
|
|
|
|
|
|
%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
|
2020-06-23 07:29:32 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_build}
|
2006-10-14 21:42:51 +00:00
|
|
|
|
|
|
|
%install
|
2020-06-23 07:29:32 +00:00
|
|
|
%{make_install}
|
2013-10-08 09:54:08 +00:00
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
2006-10-14 21:42:51 +00:00
|
|
|
|
|
|
|
%check
|
2020-06-23 07:19:47 +00:00
|
|
|
unset EXTENDED_TESTING
|
2013-10-08 09:54:08 +00:00
|
|
|
make test
|
2006-10-14 21:42:51 +00:00
|
|
|
|
|
|
|
%files
|
2014-05-26 09:36:27 +00:00
|
|
|
%doc Changes
|
2006-10-14 21:42:51 +00:00
|
|
|
%{_bindir}/mimeopen
|
|
|
|
%{_bindir}/mimetype
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2020-06-23 08:20:31 +00:00
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-8
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
2020-06-23 07:19:47 +00:00
|
|
|
* Tue Jun 23 2020 Petr Pisar <ppisar@redhat.com> - 0.29-7
|
|
|
|
- Specify all dependencies
|
|
|
|
|
2020-01-30 00:16:40 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-26 03:00:22 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-02 20:56:31 +00:00
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-4
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
2019-05-31 14:21:18 +00:00
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-3
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
2019-02-01 20:43:47 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-06 08:08:11 +00:00
|
|
|
* Mon Aug 06 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-1
|
|
|
|
- 0.29 bump
|
|
|
|
|
2018-07-13 17:24:22 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-30 19:46:20 +00:00
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-9
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
2018-06-28 20:11:06 +00:00
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-8
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
2018-02-08 21:12:49 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 03:57:08 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-07 14:59:01 +00:00
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-5
|
|
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
|
2017-06-05 21:47:33 +00:00
|
|
|
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-4
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 03:05:10 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-09 13:30:13 +00:00
|
|
|
* Mon Jan 09 2017 Petr Pisar <ppisar@redhat.com> - 0.28-2
|
|
|
|
- Break build cycle: perl-Path-Tiny → perl-Unicode-UTF8 →
|
|
|
|
perl-Module-Install-ReademFromPod → perl-IO-All → perl-File-MimeInfo
|
|
|
|
|
2016-11-30 15:52:57 +00:00
|
|
|
* Wed Nov 30 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-1
|
|
|
|
- 0.28 bump
|
|
|
|
|
2016-05-16 00:05:27 +00:00
|
|
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-5
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-02-04 13:39:39 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 03:09:32 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-06 05:46:47 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-2
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2015-02-25 11:34:17 +00:00
|
|
|
* Wed Feb 25 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-1
|
|
|
|
- 0.27 bump
|
|
|
|
|
2014-08-28 07:06:07 +00:00
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-3
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 04:18:17 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-26 08:24:41 +00:00
|
|
|
* Mon May 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-1
|
|
|
|
- 0.26 bump
|
|
|
|
|
2014-04-04 05:47:27 +00:00
|
|
|
* Fri Apr 04 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-1
|
|
|
|
- 0.25 bump
|
|
|
|
|
2014-03-03 11:13:11 +00:00
|
|
|
* Mon Mar 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-1
|
|
|
|
- 0.22 bump
|
|
|
|
|
2013-11-04 09:12:09 +00:00
|
|
|
* Mon Nov 04 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.21-1
|
|
|
|
- 0.21 bump
|
|
|
|
|
2013-10-09 07:28:48 +00:00
|
|
|
* Wed Oct 09 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-1
|
|
|
|
- 0.20 bump
|
|
|
|
|
2013-10-08 09:54:08 +00:00
|
|
|
* Tue Oct 08 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-1
|
|
|
|
- 0.19 bump, make is used instead of Build
|
|
|
|
- Fix RT#89328
|
|
|
|
|
2013-09-10 10:34:57 +00:00
|
|
|
* Tue Sep 10 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-1
|
|
|
|
- 0.18 bump
|
|
|
|
|
2013-08-03 20:51:43 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-21 11:28:17 +00:00
|
|
|
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.17-1
|
|
|
|
- 0.17 bump
|
|
|
|
|
2013-07-21 10:50:49 +00:00
|
|
|
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.16-5
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 12:21:49 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 15:16:58 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-13 15:20:08 +00:00
|
|
|
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.16-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-01-13 15:04:41 +00:00
|
|
|
* Fri Jan 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.16-1
|
|
|
|
- bump to 0.16
|
2012-01-13 15:15:33 +00:00
|
|
|
- remove patch, which is included in new release
|
2012-01-13 15:04:41 +00:00
|
|
|
|
2012-01-13 13:46:14 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-21 00:22:14 +00:00
|
|
|
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.15-9
|
2011-06-22 08:47:27 +00:00
|
|
|
- Perl mass rebuild & apply test fix from cpan RT#66841 & clean spec
|
2011-06-21 00:22:14 +00:00
|
|
|
|
2011-02-08 22:19:43 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-16 17:14:09 +00:00
|
|
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-7
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
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.
|