From 10af77d67dc01294e42e93810934dd0d6fff21ac Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 3 Jun 2015 13:39:41 +0200 Subject: [PATCH] Perl 5.22 rebuild; Increase Epoch to favour standalone package --- perl-Encode.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/perl-Encode.spec b/perl-Encode.spec index d203b9e..913e193 100644 --- a/perl-Encode.spec +++ b/perl-Encode.spec @@ -1,14 +1,15 @@ +%global cpan_version 2.73 Name: perl-Encode -Epoch: 2 -Version: 2.73 -Release: 1%{?dist} +Epoch: 3 +Version: %{cpan_version} +Release: 2%{?dist} Summary: Character encodings in Perl # ucm: UCD # other files: GPL+ or Artistic License: (GPL+ or Artistic) and UCD Group: Development/Libraries URL: http://search.cpan.org/dist/Encode/ -Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{cpan_version}.tar.gz BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) @@ -69,6 +70,7 @@ of the system. Perl strings are sequences of characters. %package -n perl-encoding Summary: Write your Perl script in non-ASCII or non-UTF-8 +Version: 2.15 License: GPL+ or Artistic Group: Development/Libraries # Keeping this sub-package arch-specific because it installs files into @@ -98,8 +100,9 @@ The easiest and the best alternative is to write your script in UTF-8. # Keep architecture specific because files go into vendorarch %package devel Summary: Perl Encode Module Generator +Version: %{cpan_version} Group: Development/Libraries -Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} +Requires: %{name}%{?_isa} = %{epoch}:%{cpan_version}-%{release} Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl-devel Requires: perl(Encode) @@ -111,7 +114,7 @@ your own encoding to perl. No knowledge of XS is necessary. %prep -%setup -q -n Encode-%{version} +%setup -q -n Encode-%{cpan_version} %build # Additional scripts can be installed by appending MORE_SCRIPTS, UCM files by @@ -153,6 +156,10 @@ make test %{perl_vendorarch}/Encode/encode.h %changelog +* Wed Jun 03 2015 Jitka Plesnikova - 2:2.73-2 +- Perl 5.22 rebuild +- Increase Epoch to favour standalone package + * Mon Apr 20 2015 Petr Pisar - 2:2.73-1 - 2.73 bump