diff --git a/perl-Jcode.changes b/perl-Jcode.changes index 74858e4..166aeaf 100644 --- a/perl-Jcode.changes +++ b/perl-Jcode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 22 16:39:14 UTC 2021 - Dirk Stoecker + +- refresh spec file + ------------------------------------------------------------------- Tue Nov 30 19:20:23 UTC 2010 - coolo@novell.com diff --git a/perl-Jcode.spec b/perl-Jcode.spec index dc1502a..526944f 100644 --- a/perl-Jcode.spec +++ b/perl-Jcode.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 -Summary: Japanese Charset Handler -Url: http://search.cpan.org/perldoc?Jcode -Group: Development/Libraries/Perl -License: Artistic License +Name: perl-Jcode Version: 2.07 -Release: 1 -Source: %{cpan_name}-%{version}.tar.gz +Release: 0 +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 -BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} %description -Jcode is a Japanese Charset Handler. It supports both object and traditional approach. +*>* -Author: -------- - Dan Kogai +Jcode.pm supports both object and traditional approach. With object +approach, you can go like; + $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 -%setup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -perl Makefile.PL -make %{?jobs:-j%jobs} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build %check make test @@ -54,11 +62,7 @@ make test %perl_process_packlist %perl_gen_filelist -%clean -rm -rf %{buildroot} - -%files -f %{name}.files -%defattr(-, root, root) -%doc Changes README MANIFEST +%files -f %{name}.files +%doc Changes Changes.ver0X README %changelog