refresh spec file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Jcode?expand=0&rev=8
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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.
|
||||
*<Japanese document is now available as Jcode::Nihongo.>>*
|
||||
|
||||
Author:
|
||||
-------
|
||||
Dan Kogai <dankogai@dan.co.jp>
|
||||
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
|
||||
|
Reference in New Issue
Block a user