diff --git a/File-LibMagic-0.96.tgz b/File-LibMagic-0.96.tgz deleted file mode 100644 index 3799841..0000000 --- a/File-LibMagic-0.96.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7db199854317237c4cbe680faa045d392183e71f50b33a0e90e6a267ce4afab6 -size 16942 diff --git a/File-LibMagic-1.00.tar.gz b/File-LibMagic-1.00.tar.gz new file mode 100644 index 0000000..c309a2c --- /dev/null +++ b/File-LibMagic-1.00.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ead63c668e5ba0bb5dc55ced159ddf8f9d1afea1af7b9f5168d124d77c9045b1 +size 71549 diff --git a/perl-File-LibMagic.changes b/perl-File-LibMagic.changes index 6d51d47..de89b6b 100644 --- a/perl-File-LibMagic.changes +++ b/perl-File-LibMagic.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Sep 3 14:42:58 UTC 2013 - jw@suse.com + +- update to 1.00, pulled from cpan + +------------------------------------------------------------------- +Mon Feb 20 08:44:28 UTC 2012 - coolo@suse.com + +- regenerate with cpanspec +- disable tests as they rely on specific version of libmagic's text + output + ------------------------------------------------------------------- Wed Dec 1 13:32:22 UTC 2010 - coolo@novell.com diff --git a/perl-File-LibMagic.spec b/perl-File-LibMagic.spec index 910df97..44c9e36 100644 --- a/perl-File-LibMagic.spec +++ b/perl-File-LibMagic.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-File-LibMagic (Version 0.96) +# spec file for package perl-File-LibMagic # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,85 +15,51 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-File-LibMagic +Version: 1.00 +Release: 0 %define cpan_name File-LibMagic Summary: Perlwrapper for libmagic (file-4.x or file-5.x) -Version: 0.96 -Release: 0%{?dist} -License: GPL+ or Artistic +License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/File-LibMagic -Source: http://search.cpan.org/CPAN/authors/id/F/FI/FITZNER/File-LibMagic-%{version}.tgz +Url: http://search.cpan.org/dist/File-LibMagic/ +Source: http://www.cpan.org/authors/id/F/FI/FITZNER/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros -BuildRequires: zlib-devel file-devel -# -Requires: zlib file - +# MANUAL +BuildRequires: file-devel +BuildRequires: zlib-devel +#BuildRequires: perl(Devel::CheckLib) +#BuildRequires: perl(File::LibMagic) +%{perl_requires} %description -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/).You can use the simple Interface like -MagicBuffer() or MagicFile(), use the functions of libmagic(3) or use -the OO-Interface.Simple Interface MagicBuffer() fixme - - -Authors: --------- - Andreas Fitzner - Michael Hendricks +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/). +You can use the simple Interface like MagicBuffer() or MagicFile(), use the +functions of libmagic(3) or use the OO-Interface. %prep %setup -q -n %{cpan_name}-%{version} %build -if [ -f Build.PL ]; then - %{__perl} Build.PL --installdirs vendor -else - [ -f Makefile.PL ] || exit 2 - %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -fi -if [ -f Build.PL ]; then - ./Build build flags=%{?_smp_mflags} -else - make %{?_smp_mflags} -fi +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check -if [ -f Build.PL ]; then - ./Build test -else - make test -fi +# broken with newer file % {__make} test %install - -if [ -f Build.PL ]; then - ./Build pure_install --destdir %{buildroot} -else - make pure_install PERL_INSTALL_ROOT=%{buildroot} -fi -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' - -mkdir -p %{buildroot}/%{_mandir}/man3/ %{buildroot}/usr/bin - -%{_fixperms} %{buildroot}/* +%perl_make_install +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,-) -%doc Changes README example +%defattr(-,root,root,755) +%doc Changes const-c.inc const-xs.inc example README %changelog -