8
0
Files
perl-File-LibMagic/perl-File-LibMagic.spec
Stephan Barth cc8214057d 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
2015-02-25 12:54:21 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package perl-File-LibMagic
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-File-LibMagic
Version: 1.10
Release: 0
%define cpan_name File-LibMagic
Summary: Determine MIME types of data or files using libmagic
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-LibMagic/
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
# MANUAL
BuildRequires: file-devel
BuildRequires: zlib-devel
%{perl_requires}
%description
The 'File::LibMagic' 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
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README.md
%changelog