From c701b27e3b125796bf8a212e3af54f90b1377ad8 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Sep 09 2013 08:17:15 +0000 Subject: 1.00 bump; Specify all dependencies --- diff --git a/.gitignore b/.gitignore index 9a1232f..275b736 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ File-LibMagic-0.96.tgz /File-LibMagic-0.99.tar.gz +/File-LibMagic-1.00.tar.gz diff --git a/do-not-link-libz.patch b/do-not-link-libz.patch deleted file mode 100644 index a264b56..0000000 --- a/do-not-link-libz.patch +++ /dev/null @@ -1,15 +0,0 @@ -From: Ansgar Burchardt -Date: Sun, 11 Apr 2010 17:53:55 +0900 -Bug-Debian: http://bugs.debian.org/577288 -Subject: Do not link libz ---- libfile-libmagic-perl.orig/Makefile.PL -+++ libfile-libmagic-perl/Makefile.PL -@@ -15,7 +15,7 @@ - 'PREREQ_PM' => { }, - 'ABSTRACT_FROM' => 'LibMagic.pm', # retrieve abstract from module - 'AUTHOR' => 'Andreas Fitzner ', -- 'LIBS' => ['-lmagic -lz'], # e.g., '-lm' -+ 'LIBS' => ['-lmagic'], # e.g., '-lm' - 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' - 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' - # Un-comment this if you add C files to link with later: diff --git a/file-5.10.patch b/file-5.10.patch deleted file mode 100644 index 468f21e..0000000 --- a/file-5.10.patch +++ /dev/null @@ -1,83 +0,0 @@ -Description: adjust for magic 5.10 -Origin: vendor -Bug-Debian: http://bugs.debian.org/661800 -Author: gregor herrmann -Last-Update: 2012-03-01 - ---- a/t/2-easy.t -+++ b/t/2-easy.t -@@ -7,7 +7,7 @@ - is( MagicBuffer("Hello World\n"), 'ASCII text' ); - - is( MagicFile('t/samples/foo.txt'), 'ASCII text' ); --is( MagicFile('t/samples/foo.c' ), 'ASCII C program text' ); -+is( MagicFile('t/samples/foo.c' ), 'C source, ASCII text' ); - - # check the error handling - eval { MagicBuffer(undef) }; ---- a/t/3-complete.t -+++ b/t/3-complete.t -@@ -32,7 +32,7 @@ - is( magic_buffer( $handle, "Footastic\n" ), 'A foo file' ); - - is( magic_file( $handle, 't/samples/foo.txt' ), 'ASCII text' ); -- is( magic_file( $handle, 't/samples/foo.c' ), 'ASCII C program text' ); -+ is( magic_file( $handle, 't/samples/foo.c' ), 'ASCII text' ); - is( magic_file( $handle, 't/samples/foo.foo' ), 'A foo file' ); - - magic_close($handle); -@@ -45,7 +45,7 @@ - is( magic_buffer( $handle, "Hello World\n" ), 'ASCII text' ); - - is( magic_file( $handle, 't/samples/foo.txt' ), 'ASCII text' ); -- is( magic_file( $handle, 't/samples/foo.c' ), 'ASCII C program text' ); -+ is( magic_file( $handle, 't/samples/foo.c' ), 'C source, ASCII text' ); - is( magic_file( $handle, 't/samples/foo.foo' ), 'ASCII text' ); - - magic_close($handle); -@@ -58,7 +58,7 @@ - is( magic_buffer( $handle, "Hello World\n" ), 'ASCII text' ); - - is( magic_file( $handle, 't/samples/foo.txt' ), 'ASCII text' ); -- is( magic_file( $handle, 't/samples/foo.c' ), 'ASCII C program text' ); -+ is( magic_file( $handle, 't/samples/foo.c' ), 'C source, ASCII text' ); - is( magic_file( $handle, 't/samples/foo.foo' ), 'ASCII text' ); - - magic_close($handle); ---- a/t/4-all.t -+++ b/t/4-all.t -@@ -8,7 +8,7 @@ - is( MagicBuffer("Hello World\n"), 'ASCII text' ); - - is( MagicFile('t/samples/foo.txt'), 'ASCII text' ); --is( MagicFile('t/samples/foo.c' ), 'ASCII C program text' ); -+is( MagicFile('t/samples/foo.c' ), 'C source, ASCII text' ); - - # subs from :complete - my $handle = magic_open(MAGIC_NONE); -@@ -16,7 +16,7 @@ - is( magic_buffer( $handle, "Hello World\n" ), 'ASCII text' ); - - is( magic_file( $handle, 't/samples/foo.txt' ), 'ASCII text' ); --is( magic_file( $handle, 't/samples/foo.c' ), 'ASCII C program text' ); -+is( magic_file( $handle, 't/samples/foo.c' ), 'C source, ASCII text' ); - - magic_close($handle); - ---- a/t/6-oo.t -+++ b/t/6-oo.t -@@ -6,12 +6,12 @@ - - my %standard = ( - 'foo.foo' => [ 'ASCII text', 'text/plain; charset=us-ascii' ], -- 'foo.c' => [ 'ASCII C program text', 'text/x-c; charset=us-ascii' ], -+ 'foo.c' => [ 'C source, ASCII text', 'text/x-c; charset=us-ascii' ], - ); - - my %custom = ( - 'foo.foo' => [ 'A foo file', 'text/plain; charset=us-ascii' ], -- 'foo.c' => [ 'ASCII C program text', 'text/x-c; charset=us-ascii' ], -+ 'foo.c' => [ 'ASCII text', 'text/plain; charset=us-ascii' ], - ); - - plan tests => 4 + 4*(keys %standard) + 4*(keys %custom); diff --git a/perl-File-LibMagic.spec b/perl-File-LibMagic.spec index b1f78ad..c3827fb 100644 --- a/perl-File-LibMagic.spec +++ b/perl-File-LibMagic.spec @@ -4,17 +4,29 @@ %define module File-LibMagic Name: perl-%{module} -Version: 0.99 +Version: 1.00 Release: 1%{?dist} Summary: Perl wrapper/interface for libmagic License: GPL+ or Artistic Group: Development/Libraries -Source: http://search.cpan.org/CPAN/authors/id/F/FI/FITZNER/%{module}-%{version}.tgz +Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{module}-%{version}.tar.gz URL: http://search.cpan.org/dist/%{module}/ -Patch0: file-5.10.patch -Patch1: do-not-link-libz.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: %{_includedir}/magic.h, perl(ExtUtils::MakeMaker), perl(Test::More) +BuildRequires: %{_includedir}/magic.h +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Config) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) +BuildRequires: perl(lib) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(Text::ParseWords) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description @@ -24,21 +36,13 @@ file (4.x or 5.x) package. %prep %setup -q -n %{module}-%{version} -# Update test suite to work with file 5.10 (CPAN RT#75457) -# Patch from debian -%patch0 -p1 - -# Don't need to link against libz (CPAN RT#56479) -# Patch from debian -%patch1 -p1 - %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name LibMagic.bs -exec rm -f {} \; @@ -60,6 +64,11 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Mon Sep 09 2013 Jitka Plesnikova - 1.00-1 +- 1.00 bump +- Update source link +- Specify all dependencies + * Tue Aug 27 2013 Josh Kayse 0.99-1 - update to 0.99 diff --git a/sources b/sources index 6a9e6a0..566ee11 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c5c5f8cc79b3f1b6bf5f1df78676610c File-LibMagic-0.99.tar.gz +5e39627e01170e5259b26351a92c4623 File-LibMagic-1.00.tar.gz