perl-Unicode-Japanese/perl-Unicode-Japanese.spec

Name: perl-Unicode-Japanese
Summary: Convert encoding of Japanese text
Version: 0.47
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Unicode-Japanese/
Description: Convert encoding of Japanese text.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: SANO Taku (SAWATARI Mikage) and YAMASHINA Hio

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Unicode-Japanese

Summary: Convert encoding of Japanese text
Name: perl-Unicode-Japanese
Version: 0.47
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Unicode-Japanese/

Source: http://search.cpan.org/CPAN/authors/id/H/HI/HIO/Unicode-Japanese-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker)

%filter_from_requires /^perl*/d
%filter_setup

%description
Convert encoding of Japanese text.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST MANIFEST.en MANIFEST.noxs META.yml README SIGNATURE
%doc %{_mandir}/man1/ujconv.1*
%doc %{_mandir}/man1/ujguess.1*
%doc %{_mandir}/man3/Unicode::Japanese.3pm*
%doc %{_mandir}/man3/Unicode::Japanese::JA.3pm*
%{_bindir}/ujconv
%{_bindir}/ujguess
%dir %{perl_vendorlib}/Unicode/
%{perl_vendorlib}/Unicode/Japanese/
%{perl_vendorlib}/Unicode/Japanese.mlpod
%{perl_vendorlib}/Unicode/Japanese.pm
%dir %{perl_vendorarch}/auto/Unicode/
%{perl_vendorarch}/auto/Unicode/Japanese/

%changelog
* Tue Dec 22 2009 Christoph Maser <cmr@financial.com> - 0.47-1
- Updated to version 0.47.

* Wed Jun 10 2009 Christoph Maser <cmr@financial.com> - 0.46-1
- Updated to version 0.46.

* Wed Jan 23 2008 Dag Wieers <dag@wieers.com> - 0.45-1
- Updated to release 0.45.

* Sun Nov 04 2007 Dag Wieers <dag@wieers.com> - 0.44-1
- Initial package. (using DAR)