|
|
|
@ -1,66 +1,78 @@
|
|
|
|
|
# Filter the Perl extension module
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
Name: perl-File-LibMagic
|
|
|
|
|
Version: 1.23
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
%define module File-LibMagic
|
|
|
|
|
|
|
|
|
|
Name: perl-%{module}
|
|
|
|
|
Version: 1.16
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Perl wrapper/interface for libmagic
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/File-LibMagic
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/File/File-LibMagic-%{version}.tar.gz
|
|
|
|
|
# Build
|
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{module}-%{version}.tar.gz
|
|
|
|
|
URL: http://search.cpan.org/dist/%{module}/
|
|
|
|
|
BuildRequires: %{_includedir}/magic.h
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: file-devel
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Config::AutoConf)
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
# ExtUtils::CBuilder needed for Config::AutoConf to handle C language
|
|
|
|
|
# gcc needed on EL-8 because ExtUtils::CBuilder is missing dependency on it (#1547165)
|
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder) %{?el8: gcc}
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
# Runtime
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
|
BuildRequires: perl(IPC::Open3)
|
|
|
|
|
# Pod::Coverage::TrustPod not used
|
|
|
|
|
# Pod::Wordlist not used
|
|
|
|
|
# Test::Code::TidyAll 0.24 not used
|
|
|
|
|
# Test::CPAN::Changes not used
|
|
|
|
|
# Test::EOL not used
|
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
|
# Optional Tests
|
|
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
|
|
BuildRequires: perl(CPAN::Meta::Prereqs)
|
|
|
|
|
# Dependencies
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
# Test::Mojibake not used
|
|
|
|
|
# Test::NoTabs not used
|
|
|
|
|
# Test::Pod 1.41 not used
|
|
|
|
|
# Test::Pod::Coverage 1.08 not used
|
|
|
|
|
# Test::Spelling 0.12 not used
|
|
|
|
|
# Test::Synopsis not used
|
|
|
|
|
# Test::Version not used
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The File::LibMagic module is a simple perl interface to libmagic from the
|
|
|
|
|
The File::LibMagic is a simple perl interface to libmagic from the
|
|
|
|
|
file (4.x or 5.x) package.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n File-LibMagic-%{version}
|
|
|
|
|
%setup -q -n %{module}-%{version}
|
|
|
|
|
# Remove bundled modules
|
|
|
|
|
rm -r inc
|
|
|
|
|
sed -i -e '/^inc\//d' MANIFEST
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL \
|
|
|
|
|
INSTALLDIRS=vendor \
|
|
|
|
|
NO_PACKLIST=1 \
|
|
|
|
|
NO_PERLLOCAL=1 \
|
|
|
|
|
OPTIMIZE="%{optflags}"
|
|
|
|
|
%{make_build}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
# Remove files installed by an accident, CPAN RT#107081
|
|
|
|
|
find %{buildroot} -type f \( -name LibMagic.xs -or -name typemap \) -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -68,78 +80,14 @@ make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
|
|
|
|
%doc Changes CONTRIBUTING.md README.md
|
|
|
|
|
%{perl_vendorarch}/File/
|
|
|
|
|
%{perl_vendorarch}/auto/File/
|
|
|
|
|
%{_mandir}/man3/File::LibMagic.3*
|
|
|
|
|
%{_mandir}/man3/File::LibMagic::Constants.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.23-4
|
|
|
|
|
- Initial build for MSVSphere 9.3
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.23-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.23-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.23-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Aug 29 2020 Paul Howarth <paul@city-fan.org> - 1.23-1
|
|
|
|
|
- Update to 1.23
|
|
|
|
|
- Fixed a bug with the Makefile.PL that caused every call to "make" to
|
|
|
|
|
recompile the object file for the package's XS code (GH#28)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.22-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Apr 26 2020 Paul Howarth <paul@city-fan.org> - 1.22-1
|
|
|
|
|
- Update to 1.22
|
|
|
|
|
- Removed embedded copy of Config::AutoConf from distro.; instead, this is
|
|
|
|
|
now a configure phase prereq. (GH#19)
|
|
|
|
|
- Moved list of constants in libmagic that we care about to one module (GH#20)
|
|
|
|
|
- Add support for setting libmagic processing limits (GH#15, GH#22)
|
|
|
|
|
- Add two class methods that provide introspection on the available limit
|
|
|
|
|
processing parameters, max_param_constant() and limit_key_is_supported()
|
|
|
|
|
(GH#24)
|
|
|
|
|
- Check all libmagic function return values properly and croak on failure
|
|
|
|
|
(GH#21)
|
|
|
|
|
- Switched to using GitHub issues
|
|
|
|
|
- Package CONTRIBUTING.md
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 29 2019 Paul Howarth <paul@city-fan.org> - 1.16-9
|
|
|
|
|
- Explicitly BR: gcc on EL-8 because ExtUtils::CBuilder is missing dependency
|
|
|
|
|
on it (#1547165)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 22 2019 Paul Howarth <paul@city-fan.org> - 1.16-7
|
|
|
|
|
- Modernize spec
|
|
|
|
|
- BR: file-devel rather than %%{_includedir}/magic.h (#1731720)
|
|
|
|
|
- Use %%{make_build} and %%{make_install}
|
|
|
|
|
- Drop now-redundant workaround for CPAN RT#107081
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-6
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.16-3
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
* Wed Aug 14 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.16-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.10
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|