forked from pool/perl-File-LibMagic
Accepting request 42246 from home:jnweiger:perl
Copy from home:jnweiger:perl/perl-File-LibMagic via accept of submit request 42246 revision 6. Request was accepted with message: Reviewed ok OBS-URL: https://build.opensuse.org/request/show/42246 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-LibMagic?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
File-LibMagic-0.96.tgz
Normal file
3
File-LibMagic-0.96.tgz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7db199854317237c4cbe680faa045d392183e71f50b33a0e90e6a267ce4afab6
|
||||||
|
size 16942
|
18
perl-File-LibMagic.changes
Normal file
18
perl-File-LibMagic.changes
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 29 13:02:49 UTC 2010 - jw@novell.com
|
||||||
|
|
||||||
|
- Sorry that 11.2 did not check the RPM-Group. fixed.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 26 15:59:51 UTC 2010 - jw@novell.com
|
||||||
|
|
||||||
|
- cleaned up spec-file, added example subdir
|
||||||
|
My tests show, that this is the best of all. File::MimeInfo::Magic comes second.
|
||||||
|
Thanks Christos!
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 26 13:21:30 UTC 2010 - jw@novell.com
|
||||||
|
|
||||||
|
- initial check in, 0.96
|
||||||
|
File::Type, File::MMagic, File::MMagic::XS, File::MimeInfo::Magic need some more competition
|
||||||
|
|
75
perl-File-LibMagic.spec
Normal file
75
perl-File-LibMagic.spec
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
|
||||||
|
Name: perl-File-LibMagic
|
||||||
|
Version: 0.96
|
||||||
|
Release: 0%{?dist}
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Summary: Perlwrapper for libmagic (file-4.x or file-5.x)
|
||||||
|
Source: http://search.cpan.org/CPAN/authors/id/F/FI/FITZNER/File-LibMagic-%{version}.tgz
|
||||||
|
Url: http://search.cpan.org/dist/File-LibMagic
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
Requires: perl = %(eval "`%{__perl} -V:version`"; echo $version)
|
||||||
|
BuildRequires: zlib-devel file-devel
|
||||||
|
Requires: zlib file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n File-LibMagic-%{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
|
||||||
|
|
||||||
|
%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_gen_filelist
|
||||||
|
|
||||||
|
%check
|
||||||
|
if [ -f Build.PL ]; then
|
||||||
|
./Build test
|
||||||
|
else
|
||||||
|
make test
|
||||||
|
fi
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes README example
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Jun 26 2010 %{packager} 0.96-0
|
||||||
|
- initial SUSE packaging
|
||||||
|
- generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)
|
||||||
|
|
Reference in New Issue
Block a user