[perl-File-MMagic/el6: 9/9] Spec clean-up

Paul Howarth pghmcfc at fedoraproject.org
Tue Sep 20 11:49:52 UTC 2011


commit 54072797c9b5351a1c45f5178cdddd00365aa836
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Sep 20 12:48:23 2011 +0100

    Spec clean-up

 .gitignore            |    6 +---
 perl-File-MMagic.spec |   87 ++++++++++++++++++++----------------------------
 2 files changed, 37 insertions(+), 56 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index df53593..3c041d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +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-[0-9.]*.tar.gz
diff --git a/perl-File-MMagic.spec b/perl-File-MMagic.spec
index d28b96c..dfdd95d 100644
--- a/perl-File-MMagic.spec
+++ b/perl-File-MMagic.spec
@@ -1,64 +1,49 @@
-Name:           perl-File-MMagic
-Version:        1.27
-Release:        7%{?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
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Name:		perl-File-MMagic
+Version:	1.27
+Release:	8%{?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
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+BuildRequires:	perl(ExtUtils::MakeMaker)
+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
 %setup -q -n File-MMagic-%{version} 
 
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
 
 %check
 make test
 
-
 %clean
-rm -rf $RPM_BUILD_ROOT
-
+rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
 %doc ChangeLog COPYING README.en
 %{perl_vendorlib}/File/
-%{_mandir}/man3/*.3*
-
+%{_mandir}/man3/File::MMagic.3pm*
 
 %changelog
-* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.27-7
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
-
-* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.27-6
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
-
-* Sat Feb  2 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.27-5
-- rebuild for new perl
+* Tue Sep 20 2011 Paul Howarth <paul at city-fan.org> - 1.27-8
+- Spec clean-up
 
 * Fri Oct 26 2007 Robin Norwood <rnorwood at redhat.com> - 1.27-4
 - Remove BR: perl for package review
@@ -77,32 +62,32 @@ rm -rf $RPM_BUILD_ROOT
 
 * Fri Feb 03 2006 Jason Vas Dias <jvdias at redhat.com> - 1.26-1
 - Upgrade to 1.26
-- rebuild for new perl-5.8.8
+- Rebuild for new perl-5.8.8
 
 * Tue Jan 10 2006 Jason Vas Dias <jvdias at redhat.com> - 1.25-1
-- fix bug 176717: upgrade to 1.25
+- Fix bug 176717: upgrade to 1.25
 
-* Fri Dec 16 2005 Jesse Keating <jkeating at redhat.com>
-- rebuilt for new gcc
+* Fri Dec 16 2005 Jesse Keating <jkeating at redhat.com> - 1.22-2
+- Rebuilt for new gcc
 
 * Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-1
 - Update to 1.22
 - Spec cleanup (#153204)
 
-* Wed Sep 22 2004 Chip Turner <cturner at redhat.com> 1.21-2
-- rebuild
+* Wed Sep 22 2004 Chip Turner <cturner at redhat.com> - 1.21-2
+- Rebuild
 
-* Fri Feb 13 2004 Chip Turner <cturner at redhat.com> 1.21-1
-- move to 1.21
+* Fri Feb 13 2004 Chip Turner <cturner at redhat.com> - 1.21-1
+- Move to 1.21
 
 * Tue Dec 10 2002 Chip Turner <cturner at redhat.com>
-- update to latest version from CPAN
+- Update to latest version from CPAN
 
 * Tue Aug  6 2002 Chip Turner <cturner at redhat.com>
-- automated release bump and build
+- Automated release bump and build
 
-* Tue Aug  6 2002 Chip Turner <cturner at localhost.localdomain>
-- update to 1.15
+* Tue Aug  6 2002 Chip Turner <cturner at redhat.com>
+- Update to 1.15
 
 * Fri Dec 7 2001 root <root at redhat.com>
-- Spec file was autogenerated. 
+- Spec file was autogenerated.


More information about the scm-commits mailing list