2007-01-15 23:30:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Encode-JIS2K (Version 0.02)
|
|
|
|
#
|
2010-01-12 12:53:58 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 15:02:42 +00:00
|
|
|
|
|
|
|
Name: perl-Encode-JIS2K
|
2010-01-12 12:53:58 +00:00
|
|
|
License: Artistic
|
2009-06-18 15:02:42 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
PreReq: /usr/bin/enc2xs
|
2010-12-01 13:44:14 +00:00
|
|
|
%{perl_requires}
|
2009-06-18 15:02:42 +00:00
|
|
|
AutoReqProv: on
|
|
|
|
Version: 0.02
|
2010-10-19 11:02:32 +00:00
|
|
|
Release: 144
|
2009-06-18 15:02:42 +00:00
|
|
|
Url: http://search.cpan.org/~dankogai/Encode-JIS2K-0.02/
|
2007-01-15 23:30:29 +00:00
|
|
|
# Original Source is gzipped.
|
2009-06-18 15:02:42 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Encode-JIS2K-0.02.tar.bz2
|
|
|
|
Patch0: perl-Encode-JIS2K.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 11:02:28 +00:00
|
|
|
BuildRequires: perl
|
2009-06-18 15:02:42 +00:00
|
|
|
Summary: JIS X 0212 (aka JIS 2000) Encodings
|
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dan Kogai <dankogai@dan.co.jp>
|
|
|
|
|
|
|
|
%define __find_provides /usr/lib/rpm/find-provides
|
|
|
|
%define __find_requires /usr/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
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
2010-01-12 12:53:58 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:30:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
|
|
install -d $RPM_BUILD_ROOT/%{perl_archlib}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%post
|
|
|
|
enc2xs -C > /dev/null 2>&1
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 == 0 ] ; then
|
|
|
|
enc2xs -C > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes MANIFEST README*
|
|
|
|
%{_mandir}/man3/*.3pm.gz
|
|
|
|
%{perl_vendorarch}/Encode/
|
|
|
|
%{perl_vendorarch}/auto/Encode/
|
|
|
|
|
2009-06-18 15:02:42 +00:00
|
|
|
%changelog
|