%global pkg_name File-Find-Rule-MMagic %global pkg_version 0.02 %global rpm_pkg_version 0.02 %global rpm_pkg_release 7.n0i.7 Summary: Rule to match on mime types Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(File::Find::Rule) >= 0.07} %{!?_without_test:BuildRequires: perl(File::MMagic)} %{!?_without_test:BuildRequires: perl(Test::More)} %{!?_without_test:BuildRequires: perl(Text::Glob)} %description File::Find::Rule::MMagic interfaces File::MMagic to File::Find::Rule enabling you to find files based upon their mime type. Text::Glob is used so that the patter may be a simple globbing pattern. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %changelog * Thu Mar 21 2013 Marius Feraru - 0.02-7.n0i.7 - automatic rebuild (perl 5.16.2) * Sun Oct 14 2012 Marius Feraru - 0.02-6.n0i.6 - automatic rebuild (perl 5.14.2) * Sat Mar 06 2010 Marius Feraru - 0.02-5.n0i.5 - automatic rebuild (perl 5.10.0) * Tue May 22 2007 Marius Feraru - 0.02-4.n0i.4 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - mass rebuild * Thu Jul 28 2005 Marius Feraru 0.02-3.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:0.02-2.n0i.2 - automatic rebuild (perl 5.8.6) * Thu Feb 03 2005 Marius Feraru 0:0.02-1.n0i.1 - version 0.02 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601