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

#
# spec file for package perl-Text-Kakasi
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Text-Kakasi
BuildRequires:  kakasi-devel
License:        GPL-2.0+
Group:          Development/Libraries/Perl
Requires:       kakasi >= 2.3.4
AutoReqProv:    on
Version:        2.04
Release:        146
Url:            http://www.daionet.gr.jp/~knok/kakasi/
Source0:        http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Text-Kakasi-2.04.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Perl binding for KAKASI, the kanji kana simple inverter
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
# Summary(ja): KAKASIを perlから利用するためのモジュールです。
# %description -l ja
# このモジュールは、高橋裕信さんの作成されたソフトウェアKAKASIを
# perlから用いるためのものです。
# 
# このモジュールを使うためには、最新版のKAKASI(2.3.0以降)が必要です。最
# 新版に関しては、<http://kakasi.namazu.org/>を参照してください。
# 
# Authors:
# --------
# 
#     NOKUBI Takatsugu <knok@daionet.gr.jp>

%description
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
<http://kakasi.namazu.org/>.



Authors:
--------
    NOKUBI Takatsugu <knok@daionet.gr.jp>

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

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

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

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

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
install -d $RPM_BUILD_ROOT/%{perl_archlib}
make -e DESTDIR=$RPM_BUILD_ROOT \
	INSTALLVENDORMAN1DIR=%{_mandir}/ja/man1 \
	INSTALLVENDORMAN3DIR=%{_mandir}/ja/man3 \
	install_vendor
%perl_process_packlist
# install English man-page:
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
pod2man --section 1 --center=" " Kakasi.pm \
    | 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

%files 
%defattr(-,root,root)
%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/
%{perl_vendorarch}/Text/Kakasi.pm
%dir %{perl_vendorarch}/Text/Kakasi/
%{perl_vendorarch}/Text/Kakasi/JP.pod
%dir %{perl_vendorarch}/auto/Text/
%dir %{perl_vendorarch}/auto/Text/Kakasi
%{perl_vendorarch}/auto/Text/Kakasi/Kakasi.so
%{perl_vendorarch}/auto/Text/Kakasi/Kakasi.bs

%changelog
openSUSE Build Service is sponsored by