58e788c
# Filter the Perl extension module
58e788c
%{?perl_default_filter}
58e788c
joshkayse a4572c4
%define module	File-LibMagic
joshkayse a4572c4
d51eb9d
Name:		perl-%{module}
c701b27
Version:	1.00
adf2021
Release:	6%{?dist}
58e788c
Summary:	Perl wrapper/interface for libmagic
joshkayse a4572c4
License:	GPL+ or Artistic
joshkayse a4572c4
Group:		Development/Libraries
c701b27
Source:		http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{module}-%{version}.tar.gz
d51eb9d
URL:		http://search.cpan.org/dist/%{module}/
d51eb9d
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c701b27
BuildRequires:	%{_includedir}/magic.h
c701b27
BuildRequires:	perl(base)
c701b27
BuildRequires:	perl(Carp)
c701b27
BuildRequires:	perl(Config)
c701b27
BuildRequires:	perl(Exporter)
c701b27
BuildRequires:	perl(ExtUtils::MakeMaker)
c701b27
BuildRequires:	perl(File::Spec)
c701b27
BuildRequires:	perl(File::Temp)
c701b27
BuildRequires:	perl(lib)
c701b27
BuildRequires:	perl(strict)
c701b27
BuildRequires:	perl(Test::More)
c701b27
BuildRequires:	perl(Text::ParseWords)
c701b27
BuildRequires:	perl(vars)
c701b27
BuildRequires:	perl(warnings)
c701b27
BuildRequires:	perl(XSLoader)
joshkayse 1939b79
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
joshkayse a4572c4
joshkayse a4572c4
%description
joshkayse 1939b79
The File::LibMagic is a simple perl interface to libmagic from the
58e788c
file (4.x or 5.x) package.
joshkayse a4572c4
joshkayse a4572c4
%prep
joshkayse a4572c4
%setup -q -n %{module}-%{version}
joshkayse a4572c4
joshkayse a4572c4
%build
joshkayse a4572c4
%{__perl} Makefile.PL INSTALLDIRS=vendor
joshkayse a4572c4
make %{?_smp_mflags}
joshkayse a4572c4
joshkayse a4572c4
%install
joshkayse a4572c4
rm -rf $RPM_BUILD_ROOT
c701b27
make pure_install DESTDIR=$RPM_BUILD_ROOT
joshkayse a4572c4
joshkayse a4572c4
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
joshkayse a4572c4
find %{buildroot} -type f -name LibMagic.bs -exec rm -f {} \;
joshkayse a4572c4
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
joshkayse a4572c4
joshkayse a4572c4
%{_fixperms} %{buildroot}/*
joshkayse a4572c4
joshkayse 1939b79
%check
joshkayse a4572c4
make test
joshkayse a4572c4
joshkayse a4572c4
%clean
joshkayse a4572c4
rm -rf $RPM_BUILD_ROOT
joshkayse a4572c4
joshkayse a4572c4
%files
joshkayse a4572c4
%defattr(-,root,root)
c91ecec
%doc Changes README
c91ecec
%{perl_vendorarch}/File/
c91ecec
%{perl_vendorarch}/auto/File/
joshkayse a4572c4
%{_mandir}/man3/*
joshkayse a4572c4
joshkayse a4572c4
%changelog
adf2021
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-6
adf2021
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
adf2021
d01ca1b
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.00-5
d01ca1b
- Perl 5.22 rebuild
d01ca1b
c7b856b
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.00-4
c7b856b
- Perl 5.20 rebuild
c7b856b
758c701
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-3
758c701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
758c701
980c9ca
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-2
980c9ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
980c9ca
c701b27
* Mon Sep 09 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.00-1
c701b27
- 1.00 bump
c701b27
- Update source link
c701b27
- Specify all dependencies
c701b27
jk275 0b5e015
* Tue Aug 27 2013 Josh Kayse <jokajak@gmail.com> 0.99-1
jk275 0b5e015
- update to 0.99
jk275 0b5e015
2f8a5b6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-11
2f8a5b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2f8a5b6
45ce46f
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.96-10
45ce46f
- Perl 5.18 rebuild
45ce46f
4fd5b35
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-9
4fd5b35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4fd5b35
19bd250
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-8
19bd250
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
19bd250
b697253
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.96-7
b697253
- Perl 5.16 rebuild
b697253
36d0a8b
* Mon Apr 23 2012 Paul Howarth <paul@city-fan.org> - 0.96-6
36d0a8b
- Update test suite to work with file 5.10 (CPAN RT#75457)
36d0a8b
- Don't need to link against libz (CPAN RT#56479)
36d0a8b
195e7df
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-5
195e7df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
195e7df
c91ecec
* Wed Nov 23 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.96-4
c91ecec
- Own vendor_perl/File dirs.
c91ecec
- Include Changes in docs.
c91ecec
51c381f
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-3
51c381f
- Perl mass rebuild
51c381f
1ba2c7e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-2
1ba2c7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1ba2c7e
58e788c
* Sat Dec 04 2010 Robert Scheck <robert@fedoraproject.org> 0.96-1
58e788c
- Upgrade to 0.96 and some spec file cleanup
58e788c
- Replaced Test::Base by Test::More (thanks to Andreas Koenig)
58e788c
cd21744
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.91-4
cd21744
- Mass rebuild with perl-5.12.0
cd21744
306013b
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.91-3
306013b
- rebuild against perl 5.10.1
306013b
36af689
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
36af689
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
36af689
d51eb9d
* Sun Mar 22 2009 Robert Scheck <robert@fedoraproject.org> 0.91-1
d51eb9d
- Upgrade to 0.91 and some spec file cleanup
d51eb9d
e2ed484
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.88-1
e2ed484
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e2ed484
joshkayse 1939b79
* Mon Jul 28 2008 Josh Kayse <josh.kayse@gtri.gatech.edu> 0.88-0.f10
joshkayse 1939b79
- update to 0.88
joshkayse 1939b79
joshkayse a4572c4
* Sat Mar 01 2008 Josh Kayse <josh.kayse@gtri.gatech.edu> 0.85-3
joshkayse a4572c4
- add perl Require
joshkayse 1939b79
- specify specific directories in files
joshkayse a4572c4
joshkayse a4572c4
* Fri Feb 29 2008 Josh Kayse <josh.kayse@gtri.gatech.edu> 0.85-2
joshkayse a4572c4
- added patch to fix test cases
joshkayse a4572c4
joshkayse a4572c4
* Thu Feb 28 2008 Josh Kayse <josh.kayse@gtri.gatech.edu> 0.85-1
joshkayse a4572c4
- update to 0.85
joshkayse a4572c4
joshkayse a4572c4
* Mon Oct 10 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.82-5mdk
joshkayse a4572c4
- Fix previous mistake
joshkayse a4572c4
joshkayse a4572c4
* Fri Sep 30 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.82-4mdk
joshkayse a4572c4
 - buildrequires fix
joshkayse a4572c4
joshkayse a4572c4
* Thu Sep 29 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.82-3mdk
joshkayse a4572c4
- fix url
joshkayse a4572c4
- fix buildrequires
joshkayse a4572c4
joshkayse a4572c4
* Sun Jun 19 2005 Olivier Thauvin <nanardon@mandriva.org> 0.82-2mdk
joshkayse a4572c4
- patch0: add search ldflags
joshkayse a4572c4
- BuildRequires libmagic-devel
joshkayse a4572c4
joshkayse a4572c4
* Wed Jun 15 2005 Olivier Thauvin <nanardon@mandriva.org> 0.82-1mdk
joshkayse a4572c4
- First mandriva spec