Sync from SUSE:SLFO:Main perl-Encode-HanExtra revision a9db4ffba2f62196c483248ad1f09f7e

This commit is contained in:
Adrian Schröter 2024-05-03 18:08:57 +02:00
commit 02dc3c0408
5 changed files with 248 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
Encode-HanExtra-0.23.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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";

View File

@ -0,0 +1,123 @@
-------------------------------------------------------------------
Sat Sep 23 15:03:00 UTC 2017 - coolo@suse.com
- compile with perl 5.26 by patching the Makefile
-------------------------------------------------------------------
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 <ledest@gmail.com>
- fix bashism in postun script
-------------------------------------------------------------------
Fri Dec 2 11:09:44 UTC 2011 - coolo@suse.com
- use original tar
-------------------------------------------------------------------
Wed Dec 1 13:32:11 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:29:52 UTC 2010 - coolo@novell.com
- remove /var/adm/perl-modules
-------------------------------------------------------------------
Tue Oct 19 08:38:34 UTC 2010 - coolo@novell.com
- add perl as explicit buildrequire
-------------------------------------------------------------------
Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de
- enable parallel build
-------------------------------------------------------------------
Mon Nov 12 15:33:18 CET 2007 - mfabian@suse.de
- update to 0.23.
• Split .ucm files into several object files, so enc2xs will no longer
take absurd amount of memory.
Reported by: David Cantrell
• Add Big5-2003, the newest incarnation of Big5 and a Taiwanese national
standard (as an appendix to CNS11643).
• Oops, the CCCII map was broken. So sowwy. :-/
Reported by: CPAN Testers.
• LICENSING CHANGE: This compilation and all individual files in it
are now under the permissive "MIT" license. See the COPYRIGHT
section in README for the new terms.
• CCCII: Revised, using table supplied by the Koha Taiwan project.
• GB18030: Removed invalid Unicode codepoints.
• Build system upgraded from ExtUtils::MakeMaker to Module::Install.
-------------------------------------------------------------------
Wed Jan 25 21:39:39 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Aug 02 14:39:07 CEST 2005 - mfabian@suse.de
- update to 0.10.
-------------------------------------------------------------------
Sat Jan 10 20:10:19 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Sat Sep 13 17:56:30 CEST 2003 - mfabian@suse.de
- add "Prereq: /usr/bin/enc2xs", thanks to
Andreas Jaeger <aj@suse.de> for noticing the omission.
-------------------------------------------------------------------
Fri Aug 29 12:25:40 CEST 2003 - mfabian@suse.de
- redirect stdout and stderr of "enc2xs -C" to /dev/null.
-------------------------------------------------------------------
Fri Aug 22 14:44:44 CEST 2003 - mjancar@suse.cz
- require the perl version we build with
-------------------------------------------------------------------
Wed Jul 16 13:08:44 CEST 2003 - mfabian@suse.de
- use vendorarch instead of sitearch.
- simplify file list.
-------------------------------------------------------------------
Sun Jun 15 13:07:41 CEST 2003 - mfabian@suse.de
- fix "directory now owned by any package".
-------------------------------------------------------------------
Sun May 25 23:54:12 CEST 2003 - ro@suse.de
- remove unpackaged files from buildroot
-------------------------------------------------------------------
Fri May 16 18:31:15 CEST 2003 - mfabian@suse.de
- remove perllocal.pod from buildroot.
-------------------------------------------------------------------
Mon May 12 16:11:10 CEST 2003 - mfabian@suse.de
- use "enc2xs -C" in %post and %postun to register/unregister
the new encodings in the on demand-loading list.
-------------------------------------------------------------------
Fri May 9 18:46:00 CEST 2003 - mfabian@suse.de
- new package: perl-Encode-HanExtra-0.07
- fix installation of man-page

75
perl-Encode-HanExtra.spec Normal file
View File

@ -0,0 +1,75 @@
#
# spec file for package perl-Encode-HanExtra
#
# Copyright (c) 2017 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Encode-HanExtra
PreReq: /usr/bin/enc2xs
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
Group: Development/Libraries/Perl
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%description
Perl 5.7.3 and later ships with an adequate set of Chinese encodings,
including the most used CP950, CP936 (also known as GBK), Big5,
Big5-HKSCS, EUC-CN, HZ, and ISO-IR-165.
However, the numbers of Chinese encodings are staggering, and a
complete coverage will easily increase the size of perl distribution by
several megabytes; hence, this CPAN module tries to provide the rest of
them.
%prep
%setup -q -n Encode-HanExtra-%{version}
%patch1 -p1
%build
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make %{?_smp_mflags}
%install
install -d $RPM_BUILD_ROOT/%{perl_archlib}
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%post
enc2xs -C >/dev/null 2>&1
%postun
if [ $1 = 0 ]; then
enc2xs -C >/dev/null 2>&1
fi
%clean
%files
%defattr(-,root,root)
%doc Changes MANIFEST README*
%{_mandir}/man3/*.3pm.gz
%{perl_vendorarch}/Encode/
%{perl_vendorarch}/auto/Encode/
%changelog