|
|
@ -1,58 +1,76 @@
|
|
|
|
# Run optional tests
|
|
|
|
# Run optional tests
|
|
|
|
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
%{bcond_without perl_File_MimeInfo_enables_optional_test}
|
|
|
|
%{bcond_without perl_File_MimeInfo_enables_optional_test}
|
|
|
|
# Require shared-mime-info to suppress warnings about missing
|
|
|
|
%else
|
|
|
|
# /usr/share/mime/globs
|
|
|
|
%{bcond_with perl_File_MimeInfo_enables_optional_test}
|
|
|
|
%{bcond_without perl_File_MimeInfo_enables_shared_mime_info}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# 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}
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-File-MimeInfo
|
|
|
|
Name: perl-File-MimeInfo
|
|
|
|
Version: 0.28
|
|
|
|
Version: 0.30
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Determine file type and open application
|
|
|
|
Summary: Determine file type and open application
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: https://metacpan.org/release/File-MimeInfo
|
|
|
|
URL: http://search.cpan.org/dist/File-MimeInfo/
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-%{version}.tar.gz
|
|
|
|
Source0: http://www.cpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Run-time:
|
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
|
|
|
BuildRequires: perl(Encode::Locale)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
BuildRequires: perl(File::BaseDir) >= 0.03
|
|
|
|
BuildRequires: perl(File::BaseDir) >= 0.03
|
|
|
|
BuildRequires: perl(File::DesktopEntry) >= 0.04
|
|
|
|
BuildRequires: perl(File::DesktopEntry) >= 0.04
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# Tests:
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
|
|
|
# t/11mimeinfo.t executes ./mimetype that returns an unexpected MIME type
|
|
|
|
|
|
|
|
# without shared-mime-info database
|
|
|
|
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
%if %{with perl_File_MimeInfo_enables_optional_test}
|
|
|
|
%if %{with perl_File_MimeInfo_enables_optional_test}
|
|
|
|
# Optional tests:
|
|
|
|
# Optional tests:
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
# Break build cycle: perl-Path-Tiny → perl-Unicode-UTF8 →
|
|
|
|
# Break build cycle: perl-Path-Tiny → perl-Unicode-UTF8 →
|
|
|
|
# perl-Module-Install-ReademFromPod → perl-IO-All → perl-File-MimeInfo
|
|
|
|
# perl-Module-Install-ReadmeFromPod → perl-IO-All → perl-File-MimeInfo
|
|
|
|
BuildRequires: perl(Path::Tiny)
|
|
|
|
BuildRequires: perl(Path::Tiny)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
%if %{with perl_File_MimeInfo_enables_shared_mime_info}
|
|
|
|
# Test::Pod::No404s not used
|
|
|
|
# needed for some tests otherwise there are warnings
|
|
|
|
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with perl_File_MimeInfo_enables_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.
|
|
|
|
|
|
|
|
Requires: shared-mime-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(File::BaseDir) >= 0.03
|
|
|
|
Requires: perl(File::BaseDir) >= 0.03
|
|
|
|
Requires: perl(File::DesktopEntry) >= 0.04
|
|
|
|
Requires: perl(File::DesktopEntry) >= 0.04
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
|
# Filter under-specified dependencies
|
|
|
|
# Filter under-specified dependencies
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::BaseDir|File::DesktopEntry)\\)$
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::BaseDir|File::DesktopEntry)\\)$
|
|
|
@ -65,15 +83,15 @@ implement the freedesktop specification for a shared MIME database.
|
|
|
|
%setup -q -n File-MimeInfo-%{version}
|
|
|
|
%setup -q -n File-MimeInfo-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{make_install}
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
unset EXTENDED_TESTING
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -85,8 +103,57 @@ make test
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.28-7
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-4
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-3
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 27 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-1
|
|
|
|
|
|
|
|
- 0.30 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-9
|
|
|
|
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-8
|
|
|
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Petr Pisar <ppisar@redhat.com> - 0.29-7
|
|
|
|
|
|
|
|
- Specify all dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-4
|
|
|
|
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-3
|
|
|
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 06 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-1
|
|
|
|
|
|
|
|
- 0.29 bump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-9
|
|
|
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-8
|
|
|
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-7
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|