File perl-Text-Kakasi.spec of Package perl-Text-Kakasi

# spec file for package perl-Text-Kakasi (Version 2.04)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# norootforbuild

Name:           perl-Text-Kakasi
BuildRequires:  kakasi-devel
License:        GPLv2+
Group:          Development/Libraries/Perl
Requires:       kakasi >= 2.3.4
AutoReqProv:    on
Version:        2.04
Release:        146
# Original Source is gzipped.
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Perl binding for KAKASI, the kanji kana simple inverter
BuildRequires:  perl
BuildRequires:  perl-macros
# Summary(ja): KAKASIを perlから利用するためのモジュールです。
# %description -l ja
# このモジュールは、高橋裕信さんの作成されたソフトウェアKAKASIを
# perlから用いるためのものです。
# このモジュールを使うためには、最新版のKAKASI(2.3.0以降)が必要です。最
# 新版に関しては、<>を参照してください。
# Authors:
# --------
#     NOKUBI Takatsugu <>

This module provides libkakasi interface for perl. libkakasi is a part
of KAKASI.  KAKASI is the language processing filter to convert Kanji
characters to Hiragana, Katakana or Romaji and may be helpful to read
Japanese documents.  More information about KAKASI is available at

    NOKUBI Takatsugu <>

%define __find_provides /usr/lib/rpm/find-provides
%define __find_requires /usr/lib/rpm/find-requires

%setup -n Text-Kakasi-%{version} 

CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make %{?_smp_mflags}

#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
install -d $RPM_BUILD_ROOT/%{perl_archlib}
	INSTALLVENDORMAN1DIR=%{_mandir}/ja/man1 \
	INSTALLVENDORMAN3DIR=%{_mandir}/ja/man3 \
# install English man-page:
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
pod2man --section 1 --center=" " \
    | gzip -9 -c > $RPM_BUILD_ROOT/%{_mandir}/man3/Text::Kakasi.3pm.gz
echo "/usr/share/man/man3/Text::Kakasi.3pm" >> .packlist
echo "/usr/share/man/ja/man3/Text::Kakasi::JP.3pm" >> .packlist

%doc COPYING Changes ChangeLog* MANIFEST README*
%doc %{_mandir}/man3/Text::Kakasi.3pm.gz
%dir %{_mandir}/ja/man3/
%doc %{_mandir}/ja/man3/Text::Kakasi.3pm.gz
%doc %{_mandir}/ja/man3/Text::Kakasi::JP.3pm.gz
%dir %{perl_vendorarch}/Text/
%dir %{perl_vendorarch}/Text/Kakasi/
%dir %{perl_vendorarch}/auto/Text/
%dir %{perl_vendorarch}/auto/Text/Kakasi

openSUSE Build Service is sponsored by