Compare commits
No commits in common. "c8s" and "c9-beta" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
||||
SOURCES/File-MimeInfo-0.28.tar.gz
|
||||
/File-MimeInfo-0.28.tar.gz
|
||||
SOURCES/File-MimeInfo-0.30.tar.gz
|
||||
|
||||
1
.perl-File-MimeInfo.metadata
Normal file
1
.perl-File-MimeInfo.metadata
Normal file
@ -0,0 +1 @@
|
||||
eed2f0d688f4d900db47e507472ac2faf9a8b456 SOURCES/File-MimeInfo-0.30.tar.gz
|
||||
@ -1,58 +1,76 @@
|
||||
# Run optional tests
|
||||
%if ! (0%{?rhel})
|
||||
%{bcond_without perl_File_MimeInfo_enables_optional_test}
|
||||
# Require shared-mime-info to suppress warnings about missing
|
||||
# /usr/share/mime/globs
|
||||
%{bcond_without perl_File_MimeInfo_enables_shared_mime_info}
|
||||
%else
|
||||
%{bcond_with perl_File_MimeInfo_enables_optional_test}
|
||||
%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
|
||||
Version: 0.28
|
||||
Release: 7%{?dist}
|
||||
Version: 0.30
|
||||
Release: 4%{?dist}
|
||||
Summary: Determine file type and open application
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/File-MimeInfo/
|
||||
Source0: http://www.cpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/File-MimeInfo
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: findutils
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Run-time:
|
||||
BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Encode)
|
||||
BuildRequires: perl(Encode::Locale)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(File::BaseDir) >= 0.03
|
||||
BuildRequires: perl(File::DesktopEntry) >= 0.04
|
||||
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:
|
||||
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}
|
||||
# Optional tests:
|
||||
%if !%{defined perl_bootstrap}
|
||||
# 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)
|
||||
%endif
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
||||
%if %{with perl_File_MimeInfo_enables_shared_mime_info}
|
||||
# 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
|
||||
# Test::Pod::No404s not used
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(File::BaseDir) >= 0.03
|
||||
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
|
||||
%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}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
%{make_install}
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
unset EXTENDED_TESTING
|
||||
make test
|
||||
|
||||
%files
|
||||
@ -85,6 +103,58 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.30-4
|
||||
- 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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user