diff --git a/HanExtra-include-sort.patch b/HanExtra-include-sort.patch new file mode 100644 index 0000000..5bfb629 --- /dev/null +++ b/HanExtra-include-sort.patch @@ -0,0 +1,24 @@ +--- + Makefile.PL | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -112,7 +112,7 @@ sub post_initialize { + #define U8 U8 + #include "encode.h" + END +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + print XS qq[#include "${table}.h"\n]; + } + print XS <<"END"; +@@ -141,7 +141,7 @@ PROTOTYPES: DISABLE + BOOT: + { + END +- foreach my $table (keys %tables) { ++ foreach my $table (sort keys %tables) { + print XS qq[#include "${table}.exh"\n]; + } + print XS "}\n"; diff --git a/perl-Encode-HanExtra.changes b/perl-Encode-HanExtra.changes index 8fb47d7..c6ae472 100644 --- a/perl-Encode-HanExtra.changes +++ b/perl-Encode-HanExtra.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 3 15:32:50 CET 2015 - tiwai@suse.de + +- sort the entries in HanExtra.c for consistent packaging + (boo#915951): + HanExtra-include-sort.patch + ------------------------------------------------------------------- Sun Nov 09 21:15:00 UTC 2014 - Led diff --git a/perl-Encode-HanExtra.spec b/perl-Encode-HanExtra.spec index 59d70f6..17bdefd 100644 --- a/perl-Encode-HanExtra.spec +++ b/perl-Encode-HanExtra.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Encode-HanExtra # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,6 +22,7 @@ Version: 0.23 Release: 0 Url: http://search.cpan.org/~autrijus/Encode-HanExtra-0.23/ Source0: http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/Encode-HanExtra-0.23.tar.gz +Patch1: HanExtra-include-sort.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Extra sets of Chinese encodings License: MIT @@ -48,6 +49,7 @@ Authors: %prep %setup -q -n Encode-HanExtra-%{version} +%patch1 -p1 %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL