forked from pool/perl-File-LibMagic
Accepting request 286976 from home:lnussel:branches:devel:languages:perl
not dead at all upstream. please forward to factory - updated to 1.10 * Added yet another OO API to File::LibMagic. This provides a simpler and more future-proof API which can be expanded on later. The new methods are info_from_string(), info_from_filename(), and info_from_handle(). The latter method allows you to get info about an open filehandle. These new methods return the description, MIME type, and character encoding in one call. This addresses RT #54843 and partially addresses RT #99470. * Switched from using Devel::CheckLib to Config::AutoConf with the hope that the latter will work with more compilers. Requested by Jens Rehsack. RT #46543. * Switched the primary git repo to github (https://github.com/autarch/File-LibMagic). * A File::LibMagic object would not close one of the handles it might have opened, leading to leaks. Reported by Alexander Zaitsev. RT #93512. OBS-URL: https://build.opensuse.org/request/show/286976 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=15
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ead63c668e5ba0bb5dc55ced159ddf8f9d1afea1af7b9f5168d124d77c9045b1
|
|
||||||
size 71549
|
|
3
File-LibMagic-1.10.tar.gz
Normal file
3
File-LibMagic-1.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a94e803cafea004fb6e610be327040dbe8ef56f076fcb33aa866a125d4b5be52
|
||||||
|
size 107487
|
@@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 20 12:53:24 UTC 2015 - lnussel@suse.de
|
||||||
|
|
||||||
|
- updated to 1.10
|
||||||
|
|
||||||
|
* Added yet another OO API to File::LibMagic. This provides a simpler and more
|
||||||
|
future-proof API which can be expanded on later. The new methods are
|
||||||
|
info_from_string(), info_from_filename(), and info_from_handle(). The latter
|
||||||
|
method allows you to get info about an open filehandle. These new methods
|
||||||
|
return the description, MIME type, and character encoding in one call. This
|
||||||
|
addresses RT #54843 and partially addresses RT #99470.
|
||||||
|
* Switched from using Devel::CheckLib to Config::AutoConf with the hope that
|
||||||
|
the latter will work with more compilers. Requested by Jens Rehsack. RT
|
||||||
|
#46543.
|
||||||
|
* Switched the primary git repo to github
|
||||||
|
(https://github.com/autarch/File-LibMagic).
|
||||||
|
* A File::LibMagic object would not close one of the handles it might have
|
||||||
|
opened, leading to leaks. Reported by Alexander Zaitsev. RT #93512.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 2 16:46:29 UTC 2013 - jw@suse.com
|
Mon Dec 2 16:46:29 UTC 2013 - jw@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-File-LibMagic
|
# spec file for package perl-File-LibMagic
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,31 +17,28 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-File-LibMagic
|
Name: perl-File-LibMagic
|
||||||
Version: 1.00
|
Version: 1.10
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name File-LibMagic
|
%define cpan_name File-LibMagic
|
||||||
Summary: Perlwrapper for libmagic (file-4.x or file-5.x)
|
Summary: Determine MIME types of data or files using libmagic
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/File-LibMagic/
|
Url: http://search.cpan.org/dist/File-LibMagic/
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(Test::Fatal)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.96
|
||||||
# MANUAL
|
# MANUAL
|
||||||
BuildRequires: file-devel
|
BuildRequires: file-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
#BuildRequires: perl(Devel::CheckLib)
|
|
||||||
#BuildRequires: perl(File::LibMagic)
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The 'File::LibMagic' is a simple perlinterface to libmagic from the
|
The 'File::LibMagic' is a simple perl interface to libmagic from the file
|
||||||
file-4.x or file-5.x package from Christos Zoulas
|
package (version 4.x or 5.x). You will need both the library
|
||||||
(ftp://ftp.astron.com/pub/file/).
|
(_libmagic.so_) and the header file (_magic.h_) to build this Perl module.
|
||||||
|
|
||||||
You can use the simple Interface like MagicBuffer() or MagicFile(), use the
|
|
||||||
functions of libmagic(3) or use the OO-Interface.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
@@ -51,7 +48,7 @@ functions of libmagic(3) or use the OO-Interface.
|
|||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# broken with newer file % {__make} test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@@ -60,6 +57,6 @@ functions of libmagic(3) or use the OO-Interface.
|
|||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes const-c.inc const-xs.inc example README
|
%doc Changes LICENSE README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user