2007-01-15 23:30:29 +00:00
|
|
|
#
|
2011-11-18 08:45:31 +00:00
|
|
|
# spec file for package perl-Encode-JIS2K
|
2007-01-15 23:30:29 +00:00
|
|
|
#
|
2018-09-26 07:35:19 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:30:29 +00:00
|
|
|
#
|
2009-06-18 15:02:42 +00:00
|
|
|
# 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/
|
2007-01-15 23:30:29 +00:00
|
|
|
#
|
|
|
|
|
2009-06-18 15:02:42 +00:00
|
|
|
|
2018-09-26 07:35:19 +00:00
|
|
|
%define cpan_name Encode-JIS2K
|
2009-06-18 15:02:42 +00:00
|
|
|
Name: perl-Encode-JIS2K
|
2018-09-26 07:35:19 +00:00
|
|
|
Version: 0.03
|
2014-11-10 09:15:39 +00:00
|
|
|
Release: 0
|
2009-06-18 15:02:42 +00:00
|
|
|
Summary: JIS X 0212 (aka JIS 2000) Encodings
|
2014-11-10 09:15:39 +00:00
|
|
|
License: Artistic-1.0
|
|
|
|
Group: Development/Libraries/Perl
|
2018-09-26 07:35:19 +00:00
|
|
|
Url: https://metacpan.org/pod/Encode::JIS2K
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Patch0: perl-Encode-JIS2K.patch
|
2010-12-03 14:04:12 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2018-09-26 07:35:19 +00:00
|
|
|
Requires: %{_bindir}/enc2xs
|
|
|
|
%{perl_requires}
|
2007-01-15 23:30:29 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module implements encodings that covers JIS X 0213 charset (AKA
|
|
|
|
JIS 2000, hence the module name).
|
|
|
|
|
2018-09-26 07:35:19 +00:00
|
|
|
%define __find_provides %{_prefix}/lib/rpm/find-provides
|
|
|
|
%define __find_requires %{_prefix}/lib/rpm/find-requires
|
2009-06-18 15:02:42 +00:00
|
|
|
|
2007-01-15 23:30:29 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n Encode-JIS2K-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
2018-09-26 07:35:19 +00:00
|
|
|
CFLAGS="%{optflags}" perl Makefile.PL
|
2010-01-12 12:53:58 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:30:29 +00:00
|
|
|
|
|
|
|
%install
|
2018-09-26 07:35:19 +00:00
|
|
|
install -d %{buildroot}/%{perl_archlib}
|
|
|
|
make DESTDIR=%{buildroot} install_vendor
|
2007-01-15 23:30:29 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%post
|
|
|
|
enc2xs -C > /dev/null 2>&1
|
|
|
|
|
|
|
|
%postun
|
2014-11-10 09:15:39 +00:00
|
|
|
if [ $1 = 0 ]; then
|
2007-01-15 23:30:29 +00:00
|
|
|
enc2xs -C > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
2018-09-26 07:35:19 +00:00
|
|
|
%files
|
2007-01-15 23:30:29 +00:00
|
|
|
%doc Changes MANIFEST README*
|
|
|
|
%{_mandir}/man3/*.3pm.gz
|
|
|
|
%{perl_vendorarch}/Encode/
|
|
|
|
%{perl_vendorarch}/auto/Encode/
|
|
|
|
|
2009-06-18 15:02:42 +00:00
|
|
|
%changelog
|