2021-03-22 16:40:03 +00:00
committed by Git OBS Bridge
parent 361f2f99cd
commit 47ac3fdcf0
2 changed files with 34 additions and 25 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 22 16:39:14 UTC 2021 - Dirk Stoecker <opensuse@dstoecker.de>
- refresh spec file
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 30 19:20:23 UTC 2010 - coolo@novell.com Tue Nov 30 19:20:23 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Jcode # spec file for package perl-Jcode
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,39 +12,47 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-Jcode
%define cpan_name Jcode %define cpan_name Jcode
Summary: Japanese Charset Handler Name: perl-Jcode
Url: http://search.cpan.org/perldoc?Jcode
Group: Development/Libraries/Perl
License: Artistic License
Version: 2.07 Version: 2.07
Release: 1 Release: 0
Source: %{cpan_name}-%{version}.tar.gz License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Japanese Charset Handler
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/%{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires} %{perl_requires}
%description %description
Jcode is a Japanese Charset Handler. It supports both object and traditional approach. *<Japanese document is now available as Jcode::Nihongo.>>*
Author: Jcode.pm supports both object and traditional approach. With object
------- approach, you can go like;
Dan Kogai <dankogai@dan.co.jp>
$iso_2022_jp = Jcode->new($str)->h2z->jis;
Which is more elegant than:
$iso_2022_jp = $str;
&jcode::convert(\$iso_2022_jp, 'jis', &jcode::getcode(\$str), "z");
For those unfamiliar with objects, Jcode.pm still supports 'getcode()' and
'convert().'
If the perl version is 5.8.1, Jcode acts as a wrapper to Encode, the
standard charset handler module for Perl 5.8 or later.
%prep %prep
%setup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{version}
%build %build
perl Makefile.PL perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?jobs:-j%jobs} %make_build
%check %check
make test make test
@@ -54,11 +62,7 @@ make test
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-, root, root) %doc Changes Changes.ver0X README
%doc Changes README MANIFEST
%changelog %changelog