pghmcfc pushed to perl-File-LibMagic (epel7). "Initial import/setup of perl-File-LibMagic"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Oct 8 13:24:10 UTC 2015
From a4572c408833d3f95e21d87463c2f43329b70963 Mon Sep 17 00:00:00 2001
From: joshkayse <joshkayse at fedoraproject.org>
Date: Fri, 18 Apr 2008 16:48:32 +0000
Subject: Initial import/setup of perl-File-LibMagic
---
.cvsignore | 1 +
perl-File-LibMagic.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
tests-0.85.patch | 19 ++++++++++++
4 files changed, 102 insertions(+)
create mode 100644 perl-File-LibMagic.spec
create mode 100644 tests-0.85.patch
diff --git a/.cvsignore b/.cvsignore
index e69de29..0e0f983 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+File-LibMagic-0.85.tgz
diff --git a/perl-File-LibMagic.spec b/perl-File-LibMagic.spec
new file mode 100644
index 0000000..f89c7ba
--- /dev/null
+++ b/perl-File-LibMagic.spec
@@ -0,0 +1,81 @@
+%define module File-LibMagic
+%define name perl-%{module}
+%define version 0.85
+
+Name: %{name}
+Version: %{version}
+Release: 3%{?dist}
+Summary: Perlwrapper for libmagic
+License: GPL+ or Artistic
+Group: Development/Libraries
+Source: http://search.cpan.org/CPAN/authors/id/F/FI/FITZNER/%{module}-%{version}.tgz
+Patch0: tests-0.85.patch
+Url: http://www.cpan.org
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: file-devel
+Buildrequires: perl-devel
+BuildRequires: perl-Test-Base
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+The File::LibMagic is a simple perlinterface to libmagic from the
+file-4.x package
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch0 -p0 -b .tests
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name LibMagic.bs -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+%check || :
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc README
+%{perl_vendorarch}/File/*
+%{perl_vendorarch}/auto/File/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Mar 01 2008 Josh Kayse <josh.kayse at gtri.gatech.edu> 0.85-3
+- add perl Require
+- specify specific directories in %files
+
+* Fri Feb 29 2008 Josh Kayse <josh.kayse at gtri.gatech.edu> 0.85-2
+- added patch to fix test cases
+
+* Thu Feb 28 2008 Josh Kayse <josh.kayse at gtri.gatech.edu> 0.85-1
+- update to 0.85
+
+* Mon Oct 10 2005 Nicolas Lécureuil <neoclust at mandriva.org> 0.82-5mdk
+- Fix previous mistake
+
+* Fri Sep 30 2005 Nicolas Lécureuil <neoclust at mandriva.org> 0.82-4mdk
+ - buildrequires fix
+
+* Thu Sep 29 2005 Nicolas Lécureuil <neoclust at mandriva.org> 0.82-3mdk
+- fix url
+- fix buildrequires
+
+* Sun Jun 19 2005 Olivier Thauvin <nanardon at mandriva.org> 0.82-2mdk
+- patch0: add search ldflags
+- BuildRequires libmagic-devel
+
+* Wed Jun 15 2005 Olivier Thauvin <nanardon at mandriva.org> 0.82-1mdk
+- First mandriva spec
diff --git a/sources b/sources
index e69de29..bb3b293 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+037150b3131a566b518a7042f9a8d527 File-LibMagic-0.85.tgz
diff --git a/tests-0.85.patch b/tests-0.85.patch
new file mode 100644
index 0000000..f7e44e3
--- /dev/null
+++ b/tests-0.85.patch
@@ -0,0 +1,19 @@
+diff -uNrp t.orig/6-oo.t t/6-oo.t
+--- t.orig/6-oo.t 2008-02-29 08:29:30.000000000 -0500
++++ t/6-oo.t 2008-02-29 08:30:19.000000000 -0500
+@@ -6,12 +6,12 @@ use File::LibMagic;
+
+ my %standard = (
+- 'foo.foo' => [ 'ASCII text', 'text/plain; charset=us-ascii' ],
+- 'foo.c' => [ 'ASCII C program text', 'text/x-c; charset=us-ascii' ],
++ 'foo.foo' => [ 'ASCII text', 'text/plain charset=us-ascii' ],
++ 'foo.c' => [ 'ASCII C program text', 'text/x-c charset=us-ascii' ],
+ );
+
+ my %custom = (
+ 'foo.foo' => [ 'A foo file', 'text/x-foo' ],
+- 'foo.c' => [ 'ASCII C program text', 'text/x-c; charset=us-ascii' ],
++ 'foo.c' => [ 'ASCII C program text', 'text/x-c charset=us-ascii' ],
+ );
+
+ plan tests => 4 + 4*(keys %standard) + 4*(keys %custom);
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/perl-File-LibMagic.git/commit/?h=epel7&id=a4572c408833d3f95e21d87463c2f43329b70963
More information about the perl-devel
mailing list