8
0
Files
perl-File-LibMagic/perl-File-LibMagic.spec

69 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-File-LibMagic
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-File-LibMagic
Version: 1.23
Release: 0
%define cpan_name File-LibMagic
Summary: Determine MIME types of data or files using libmagic
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:14:06 +02:00
Source100: README.md
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
BuildRequires: perl(Config::AutoConf)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
%{perl_requires}
# MANUAL BEGIN
BuildRequires: file-devel
BuildRequires: zlib-devel
# MANUAL END
%description
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
The 'File::LibMagic' module is a simple perl interface to libmagic from the
file package (version 4.x or 5.x). You will need both the library
(_libmagic.so_) and the header file (_magic.h_) to build this Perl module.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
Accepting request 798657 from devel:languages:perl:autoupdate - updated to 1.22 see /usr/share/doc/packages/perl-File-LibMagic/Changes 1.22 2020-04-26 - This is a stable release with the same changes as 1.21. See the change logs for 1.17 and 1.21 for details of what's new. 1.21 2020-04-04 (TRIAL RELEASE) - Add two class methods that provide introspection on the available limit processing parameters, max_param_constant() and limit_key_is_supported(). Based on a PR from Paul Wise. GH #24. 1.20 2020-03-28 (TRIAL RELEASE) - Fix one last test that assumed a limit parameter was available. Reported by Slaven Rezić. GH #22. 1.19 2020-03-28 (TRIAL RELEASE) - Fix tests that still mistakenly assumed that all limit parameter constants should be exported by File::LibMagic. Reported by Slaven Rezić. GH #22. 1.18 2020-03-28 (TRIAL RELEASE) - Not all versions of libmagic support setting processing limits, and those that do may not support all the limit parameters that the most recent version supports. This release fixes compilation and runtime issues that would occur with older libmagic versions that don't support the same options as the version I have installed locally. Reported by Slaven Rezić. GH #22. 1.17 2020-03-28 (TRIAL RELEASE) - Switched to using GitHub issues. - Removed embedded copy of Config::AutoConf from distro. Instead this is now a configure phase prereq. Implemented by Paul Wise. GH #19. - Moved list of constants in libmagic that we care about to one module. Implemented by Paul Wise. GH #20. - Add support for setting libmagic processing limits. Implemented by Paul Wise. GH #15. - Check all libmagic function return values properly and croak on failure. Implemented by Paul Wise. GH #21. OBS-URL: https://build.opensuse.org/request/show/798657 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=21
2020-04-29 11:52:44 +00:00
%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
%license LICENSE
%changelog