[perl-LWP-MediaTypes] 6.02 bump

Petr Šabata psabata at fedoraproject.org
Thu Nov 22 07:03:55 UTC 2012


commit 21ad7b42b7f29f737d815fe6c364533d8c63ff89
Author: Petr Šabata <contyk at redhat.com>
Date:   Thu Nov 22 08:03:36 2012 +0100

    6.02 bump
    
    - Drop command macros
    - Modernize the spec
    - Correct the Lincense tag

 .gitignore               |    1 +
 perl-LWP-MediaTypes.spec |   24 ++++++++++++++----------
 sources                  |    2 +-
 3 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aed7d69..4c7399f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /LWP-MediaTypes-6.01.tar.gz
+/LWP-MediaTypes-6.02.tar.gz
diff --git a/perl-LWP-MediaTypes.spec b/perl-LWP-MediaTypes.spec
index e23532c..e0b38de 100644
--- a/perl-LWP-MediaTypes.spec
+++ b/perl-LWP-MediaTypes.spec
@@ -1,8 +1,8 @@
 Name:           perl-LWP-MediaTypes
-Version:        6.01
-Release:        6%{?dist}
+Version:        6.02
+Release:        1%{?dist}
 Summary:        Guess media type for a file or a URL
-License:        GPL+ or Artistic
+License:        (GPL+ or Artistic) and Public Domain
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/LWP-MediaTypes/
 Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/LWP-MediaTypes-%{version}.tar.gz
@@ -12,7 +12,7 @@ BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::Basename)
 # Tests only:
 BuildRequires:  perl(Test)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(File::Basename)
 Requires:       mailcap
 Conflicts:      perl-libwww-perl < 6
@@ -31,25 +31,29 @@ sed -i -e '/my @priv_files = ();/ s|()|("%{_sysconfdir}/mime.types")|' \
     lib/LWP/MediaTypes.pm
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Nov 22 2012 Petr Šabata <contyk at redhat.com> - 6.02-1
+- 6.02 bump
+- Drop command macros
+- Modernize the spec
+- Correct the Lincense tag
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.01-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index 44433ab..c43d8bd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3cd1ccb774867b5b20e672981b230db6  LWP-MediaTypes-6.01.tar.gz
+8c5f25fb64b974d22aff424476ba13c9  LWP-MediaTypes-6.02.tar.gz



More information about the perl-devel mailing list