Sync from SUSE:SLFO:Main perl-Unicode-Map8 revision 9046761ec2090ce6f37405d85254ab3e

This commit is contained in:
Adrian Schröter 2024-05-03 19:05:21 +02:00
commit bd189715e7
6 changed files with 211 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

View File

@ -0,0 +1,11 @@
--- map8.h
+++ map8.h
@@ -81,7 +81,7 @@
U16* map8_to_str16(Map8*, U8*, U16*, int, int*);
U8* map8_to_str8 (Map8*, U16*, U8*, int, int*);
-U8* map8_recode_8(Map8*, Map8*, U8*, U8*, int, int*);
+U8* map8_recode8 (Map8*, Map8*, U8*, U8*, int, int*);
int map8_empty_block(Map8*, U8);

View File

@ -0,0 +1,11 @@
--- Map8.xs
+++ Map8.xs
@@ -348,7 +348,7 @@
Map8* m2
PREINIT:
STRLEN len;
- STRLEN rlen;
+ int rlen;
char* res;
INPUT:
char* str = SvPV(ST(2), len);

BIN
Unicode-Map8-0.13.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

97
perl-Unicode-Map8.changes Normal file
View File

@ -0,0 +1,97 @@
-------------------------------------------------------------------
Sat Jan 18 07:18:32 UTC 2014 - coolo@suse.com
- use new perl template, fix license
-------------------------------------------------------------------
Fri Nov 18 11:08:40 UTC 2011 - coolo@suse.com
- use original .tar.gz
-------------------------------------------------------------------
Sun Aug 28 18:14:16 UTC 2011 - andrea.turrini@gmail.com
- fixed typos in perl-Unicode-Map8.spec
-------------------------------------------------------------------
Wed Dec 1 06:55:47 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Nov 29 18:31:26 UTC 2010 - coolo@novell.com
- remove /var/adm/perl-modules
-------------------------------------------------------------------
Mon Jan 25 13:41:51 CET 2010 - anicka@suse.cz
- update to 0.13
* Header order tweak to make it compile with Strawberry Perl
[RT#50443]
* Get rid of CVS artifacts
-------------------------------------------------------------------
Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de
- enable parallel build
-------------------------------------------------------------------
Wed Jan 25 21:40:01 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sun Jan 11 12:05:18 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Fri Aug 22 15:58:33 CEST 2003 - mjancar@suse.cz
- require the perl version we build with
-------------------------------------------------------------------
Thu Jul 17 14:31:28 CEST 2003 - mjancar@suse.cz
- adapt to perl-5.8.1
- use %perl_process_packlist
-------------------------------------------------------------------
Mon May 19 11:45:33 CEST 2003 - ro@suse.de
- remove perllocal.pod
-------------------------------------------------------------------
Tue Apr 29 12:36:47 CEST 2003 - mjancar@suse.cz
- update to version 0.12
- used $RPM_OPT_FLAGS
- fixed function prototype
-------------------------------------------------------------------
Thu Nov 28 23:10:30 CET 2002 - prehak@suse.cz
- fixed data types
- enabled make test for ppc64 and s390x
-------------------------------------------------------------------
Wed Aug 21 15:39:18 CEST 2002 - prehak@suse.cz
- disabled make test on ppc64 and s390x
-------------------------------------------------------------------
Tue Jul 2 17:40:06 MEST 2002 - mls@suse.de
- remove race in .packlist generation
-------------------------------------------------------------------
Tue Jan 15 15:43:55 CET 2002 - rvasice@suse.cz
- update to version 0.11
-------------------------------------------------------------------
Wed Aug 15 13:33:00 CEST 2001 - rvasice@suse.cz
- initial package release (version 0.10)

66
perl-Unicode-Map8.spec Normal file
View File

@ -0,0 +1,66 @@
#
# spec file for package perl-Unicode-Map8
#
# Copyright (c) 2014 SUSE LINUX Products 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-Unicode-Map8
Version: 0.13
Release: 0
%define cpan_name Unicode-Map8
Summary: Mapping table between 8-bit chars and Unicode
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Unicode-Map8/
Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Unicode::String) >= 2
Requires: perl(Unicode::String) >= 2
%{perl_requires}
# MANUAL BEGIN
Patch0: Unicode-Map8-%{version}-type.diff
Patch1: Unicode-Map8-%{version}-declaration.diff
# MANUAL END
%description
The Unicode::Map8 class implements efficient mapping tables between
8-bit character sets and 16-bit character sets like Unicode. The tables
are efficient both in terms of space allocated and translation speed.
The 16-bit strings are assumed to use network byte order.
%prep
%setup -n Unicode-Map8-%{version}
%patch0
%patch1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes diff_iso make_rfc1345_maps make_unicd_maps map8_bin2txt map8_txt2bin README rfc1345.txt umap
%changelog