Name: perl-File-MMagic-XS Version: 0.09008 Release: 33%{?dist} Summary: Guess file type with XS License: ASL 2.0 and (GPL+ or Artistic) URL: https://metacpan.org/release/File-MMagic-XS Source0: https://cpan.metacpan.org/authors/id/D/DM/DMAKI/File-MMagic-XS-%{version}.tar.gz # Perl 5.18 compatibility, CPAN RT#63048 Patch0: File-MMagic-XS-0.09006-qw-does-not-produce-array-context-anymore.patch Patch1: perl-File-MMagic-XS-format-security.patch Patch2: File-MMagic-XS-0.09008-Fix-building-on-Perl-without-dot-in-INC.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: gdbm-devel BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(constant) BuildRequires: perl(Cwd) BuildRequires: perl(Devel::PPPort) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) BuildRequires: perl(File::MMagic) BuildRequires: perl(File::Spec) BuildRequires: perl(FindBin) BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(vars) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) Requires: perl(File::MMagic) Requires: perl(File::Spec) # Avoid unwanted shared object provides %{?perl_default_filter} %description This is a port of Apache2 mod_mime_magic.c in Perl, written in XS with the aim of being efficient and fast especially for applications that need to be run for an extended amount of time. %prep %setup -q -n File-MMagic-XS-%{version} # Merged in 0.09008 # %patch0 -p1 %patch -P1 -p1 -b .format-security %patch -P2 -p1 %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_fixperms} $RPM_BUILD_ROOT %check make test %files %doc Changes %{perl_vendorarch}/auto/File/ %{perl_vendorarch}/File/ %{_mandir}/man3/File::MMagic::XS.3pm* %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.09008-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Jitka Plesnikova - 0.09008-32 - Perl 5.40 rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.09008-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.09008-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.09008-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.09008-28 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.09008-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.09008-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 0.09008-25 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.09008-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.09008-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.09008-22 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.09008-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.09008-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.09008-19 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.09008-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.09008-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.09008-16 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.09008-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jul 23 2018 Tom Callaway - 0.09008-14 - add BuildRequires: gcc * Fri Jul 13 2018 Fedora Release Engineering - 0.09008-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.09008-12 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.09008-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.09008-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.09008-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.09008-8 - Perl 5.26 rebuild * Wed May 17 2017 Jitka Plesnikova - 0.09008-7 - Fix building on Perl without '.' in @INC * Sat Feb 11 2017 Fedora Release Engineering - 0.09008-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.09008-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.09008-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.09008-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 04 2015 Jitka Plesnikova - 0.09008-2 - Perl 5.22 rebuild * Thu Mar 19 2015 Tom Callaway - 0.09008-1 - update to 0.09008 * Wed Aug 27 2014 Jitka Plesnikova - 0.09006-17 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.09006-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Jun 09 2014 Tom Callaway - 0.09006-15 - fix format-security issue * Sat Jun 07 2014 Fedora Release Engineering - 0.09006-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.09006-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jul 18 2013 Petr Pisar - 0.09006-12 - Perl 5.18 rebuild - Perl 5.18 compatibility (CPAN RT#63048) * Mon Feb 25 2013 Paul Howarth - 0.09006-11 - BR: perl(ExtUtils::MakeMaker) to fix FTBFS (#914283) - BR:/R: perl(File::Spec) - BR: perl(XSLoader) - Don't use macros for commands - Don't need to remove empty directories from the buildroot - Drop %%defattr, redundant since rpm 4.4 - Drop filter for unversioned provides, no longer needed - Use %%{_fixperms} macro rather than our own chmod incantation - Use DESTDIR rather than PERL_INSTALL_ROOT - Add %%{?perl_default_filter} to remove unwanted shared object provides * Thu Feb 14 2013 Fedora Release Engineering - 0.09006-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.09006-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 0.09006-8 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.09006-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Nov 23 2011 Ville Skyttä - 0.09006-6 - Own vendor_perl/File dirs. * Mon Jun 20 2011 Marcela Mašláňová - 0.09006-5 - Perl mass rebuild * Sun Jun 19 2011 Marcela Mašláňová - 0.09006-4 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.09006-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 16 2010 Marcela Maslanova - 0.09006-2 - Rebuild to fix problems with vendorarch/lib (#661697) * Mon Jul 12 2010 Tom "spot" Callaway - 0.09006-1 - update to 0.09006 * Sat May 01 2010 Marcela Maslanova - 0.09003-8 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.09003-7 - rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 0.09003-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.09003-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 27 2008 Tom "spot" Callaway - 0.09003-4 - Rebuild for perl 5.10 (again) * Tue Feb 19 2008 Fedora Release Engineering - 0.09003-3 - Autorebuild for GCC 4.3 * Sat Feb 2 2008 Tom "spot" Callaway 0.09003-2 - rebuild for new perl * Mon Dec 17 2007 Tom "spot" Callaway 0.09003-1 - bump to 0.09003 * Sun Aug 26 2007 Tom "spot" Callaway 0.09002-2 - license tag fix - rebuild in devel for ppc32 * Thu Jul 19 2007 Tom "spot" Callaway 0.09002-1.1 - BR: perl(Test::More) * Thu Jul 19 2007 Tom "spot" Callaway 0.09002-1 - hate hate hate perl versioning * Sun Sep 10 2006 Tom "spot" Callaway 0.08-2 - filter out extra perl(File::MMagic::XS) provides - fix license descriptor to make rpmlint happy * Thu Aug 3 2006 Tom "spot" Callaway 0.08-1 - initial package for Fedora Extras