forked from pool/perl-File-LibMagic
delete link as package is no longer in Factory
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=13
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7db199854317237c4cbe680faa045d392183e71f50b33a0e90e6a267ce4afab6
|
|
||||||
size 16942
|
|
3
File-LibMagic-1.00.tar.gz
Normal file
3
File-LibMagic-1.00.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ead63c668e5ba0bb5dc55ced159ddf8f9d1afea1af7b9f5168d124d77c9045b1
|
||||||
|
size 71549
|
@@ -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
|
Wed Dec 1 13:32:22 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,85 +15,51 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
Name: perl-File-LibMagic
|
Name: perl-File-LibMagic
|
||||||
|
Version: 1.00
|
||||||
|
Release: 0
|
||||||
%define cpan_name File-LibMagic
|
%define cpan_name File-LibMagic
|
||||||
Summary: Perlwrapper for libmagic (file-4.x or file-5.x)
|
Summary: Perlwrapper for libmagic (file-4.x or file-5.x)
|
||||||
Version: 0.96
|
License: GPL-1.0+ or Artistic-1.0
|
||||||
Release: 0%{?dist}
|
|
||||||
License: GPL+ or Artistic
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/File-LibMagic
|
Url: http://search.cpan.org/dist/File-LibMagic/
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/F/FI/FITZNER/File-LibMagic-%{version}.tgz
|
Source: http://www.cpan.org/authors/id/F/FI/FITZNER/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: zlib-devel file-devel
|
# MANUAL
|
||||||
#
|
BuildRequires: file-devel
|
||||||
Requires: zlib file
|
BuildRequires: zlib-devel
|
||||||
|
#BuildRequires: perl(Devel::CheckLib)
|
||||||
|
#BuildRequires: perl(File::LibMagic)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The 'File::LibMagic' is a simple perlinterface to libmagic from the file-
|
The 'File::LibMagic' is a simple perlinterface to libmagic from the
|
||||||
4.x or file-5.x package from Christos Zoulas
|
file-4.x or file-5.x package from Christos Zoulas
|
||||||
(ftp://ftp.astron.com/pub/file/).You can use the simple Interface like
|
(ftp://ftp.astron.com/pub/file/).
|
||||||
MagicBuffer() or MagicFile(), use the functions of libmagic(3) or use
|
|
||||||
the OO-Interface.Simple Interface MagicBuffer() fixme
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Andreas Fitzner <fitzner@informatik.hu-berlin.de>
|
|
||||||
Michael Hendricks <michael@ndrix.org>
|
|
||||||
|
|
||||||
|
You can use the simple Interface like MagicBuffer() or MagicFile(), use the
|
||||||
|
functions of libmagic(3) or use the OO-Interface.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if [ -f Build.PL ]; then
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
%{__perl} Build.PL --installdirs vendor
|
%{__make} %{?_smp_mflags}
|
||||||
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
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
if [ -f Build.PL ]; then
|
# broken with newer file % {__make} test
|
||||||
./Build test
|
|
||||||
else
|
|
||||||
make test
|
|
||||||
fi
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%perl_make_install
|
||||||
if [ -f Build.PL ]; then
|
%perl_process_packlist
|
||||||
./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_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README example
|
%doc Changes const-c.inc const-xs.inc example README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user