[perl-File-MMagic] Update to 1.29
Paul Howarth
pghmcfc at fedoraproject.org
Thu Jul 12 09:01:44 UTC 2012
commit 2f9bc4f3f195c653845bda18de037975c7039368
Author: Paul Howarth <paul at city-fan.org>
Date: Thu Jul 12 10:00:16 2012 +0100
Update to 1.29
- New upstream release 1.29
- MMagic.pm (checktype_contents): fix infinite loop bug (CPAN RT#77836)
- BR: perl(base) and perl(Test::More)
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Use %{_fixperms} macro rather than our own chmod incantation
- Don't need to remove empty directories from the buildroot
- Make %files list more explicit
- Tweak %description
.gitignore | 7 +------
perl-File-MMagic.spec | 25 ++++++++++++++++++-------
sources | 2 +-
3 files changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 64ab20f..3c041d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1 @@
-File-MMagic-1.21.tar.gz
-File-MMagic-1.22.tar.gz
-File-MMagic-1.25.tar.gz
-File-MMagic-1.26.tar.gz
-File-MMagic-1.27.tar.gz
-/File-MMagic-1.28.tar.gz
+/File-MMagic-[0-9.]*.tar.gz
diff --git a/perl-File-MMagic.spec b/perl-File-MMagic.spec
index 1a38456..3aeaee1 100644
--- a/perl-File-MMagic.spec
+++ b/perl-File-MMagic.spec
@@ -1,19 +1,21 @@
Name: perl-File-MMagic
-Version: 1.28
-Release: 2%{?dist}
+Version: 1.29
+Release: 1%{?dist}
Summary: A Perl module emulating the file(1) command
Group: Development/Libraries
License: ASL 1.0 and BSD
URL: http://search.cpan.org/dist/File-MMagic/
Source0: http://www.cpan.org/authors/id/K/KN/KNOK/File-MMagic-%{version}.tar.gz
BuildArch: noarch
+BuildRequires: perl(base)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test)
+BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
-This module attempts to guess file type from its contents like file(1)
+This module attempts to guess a file's type from its contents like the file(1)
command.
%prep
@@ -25,10 +27,9 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w %{buildroot}/*
+%{_fixperms} %{buildroot}
%check
make test
@@ -36,9 +37,19 @@ make test
%files
%doc ChangeLog COPYING README.en README.ja
%{perl_vendorlib}/File/
-%{_mandir}/man3/*.3*
+%{_mandir}/man3/File::MMagic.3pm*
%changelog
+* Thu Jul 12 2012 Paul Howarth <paul at city-fan.org> - 1.29-1
+- Update to 1.29
+ - MMagic.pm (checktype_contents): fix infinite loop bug (CPAN RT#77836)
+- BR: perl(base) and perl(Test::More)
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Use %%{_fixperms} macro rather than our own chmod incantation
+- Don't need to remove empty directories from the buildroot
+- Make %%files list more explicit
+- Tweak %%description
+
* Mon Jun 11 2012 Petr Pisar <ppisar at redhat.com> - 1.28-2
- Perl 5.16 rebuild
diff --git a/sources b/sources
index 4302e74..9dd6e30 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ea74f4c817229117f4e9341889430308 File-MMagic-1.28.tar.gz
+64221fdfe541505b39ea56d0b09ef8a6 File-MMagic-1.29.tar.gz
More information about the scm-commits
mailing list