2010-07-02 11:12:52 +00:00
|
|
|
#
|
2013-12-02 16:37:37 +00:00
|
|
|
# spec file for package perl-File-LibMagic
|
2010-07-02 11:12:52 +00:00
|
|
|
#
|
2013-12-02 16:37:37 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-07-02 11:12:52 +00:00
|
|
|
#
|
|
|
|
# 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
|
2013-12-02 16:37:37 +00:00
|
|
|
Version: 1.00
|
|
|
|
Release: 0
|
2010-07-02 11:12:52 +00:00
|
|
|
%define cpan_name File-LibMagic
|
|
|
|
Summary: Perlwrapper for libmagic (file-4.x or file-5.x)
|
2013-12-02 16:37:37 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2010-07-02 11:12:52 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-12-02 16:37:37 +00:00
|
|
|
Url: http://search.cpan.org/dist/File-LibMagic/
|
2013-12-06 15:31:56 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2010-07-02 11:12:52 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-12-02 16:37:37 +00:00
|
|
|
# MANUAL
|
|
|
|
BuildRequires: file-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
#BuildRequires: perl(Devel::CheckLib)
|
|
|
|
#BuildRequires: perl(File::LibMagic)
|
|
|
|
%{perl_requires}
|
2010-06-29 18:56:11 +00:00
|
|
|
|
|
|
|
%description
|
2013-12-02 16:37:37 +00:00
|
|
|
The 'File::LibMagic' is a simple perlinterface to libmagic from the
|
|
|
|
file-4.x or file-5.x package from Christos Zoulas
|
|
|
|
(ftp://ftp.astron.com/pub/file/).
|
2010-07-02 11:12:52 +00:00
|
|
|
|
2013-12-02 16:37:37 +00:00
|
|
|
You can use the simple Interface like MagicBuffer() or MagicFile(), use the
|
|
|
|
functions of libmagic(3) or use the OO-Interface.
|
2010-07-02 11:12:52 +00:00
|
|
|
|
2010-06-29 18:56:11 +00:00
|
|
|
%prep
|
2010-07-02 11:12:52 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-06-29 18:56:11 +00:00
|
|
|
|
|
|
|
%build
|
2013-12-02 16:37:37 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-06-29 18:56:11 +00:00
|
|
|
|
2010-07-02 11:12:52 +00:00
|
|
|
%check
|
2013-12-02 16:37:37 +00:00
|
|
|
# broken with newer file % {__make} test
|
2010-07-02 11:12:52 +00:00
|
|
|
|
2010-06-29 18:56:11 +00:00
|
|
|
%install
|
2013-12-02 16:37:37 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-06-29 18:56:11 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2013-12-02 16:37:37 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes const-c.inc const-xs.inc example README
|
2010-06-29 18:56:11 +00:00
|
|
|
|
|
|
|
%changelog
|