File perl-Encode-JIS2K.spec of Package perl-Encode-JIS2K

#
# spec file for package perl-Encode-JIS2K (Version 0.02)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         perl-Encode-JIS2K
License:      Artistic License
Group:        Development/Libraries/Perl
Prereq:       /usr/bin/enc2xs
Requires:     perl = %{perl_version}
Autoreqprov:  on
Version:      0.02
Release:      3
URL:          http://search.cpan.org/~dankogai/Encode-JIS2K-0.02/
# Original Source is gzipped.
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
Summary:      JIS X 0212 (aka JIS 2000) Encodings

%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
%prep
%setup -q -n Encode-JIS2K-%{version}
%patch0 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%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/
/var/adm/perl-modules/perl-Encode-JIS2K

%changelog -n perl-Encode-JIS2K
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 28 2005 - dmueller@suse.de
- add norootforbuild
* Tue Aug 02 2005 - mfabian@suse.de
- update to 0.02.
* Sat Sep 13 2003 - mfabian@suse.de
- add "Prereq: /usr/bin/enc2xs".
* Fri Aug 29 2003 - mfabian@suse.de
- redirect stdout and stderr of "enc2xs -C" to /dev/null.
* Fri Aug 22 2003 - mjancar@suse.cz
- require the perl version we build with
* Wed Jul 16 2003 - mfabian@suse.de
- simplify file list.
* Wed Jul 16 2003 - mfabian@suse.de
- use vendorarch instead of sitearch.
* Sun Jun 15 2003 - mfabian@suse.de
- fix "directory not owned by any package".
* Fri May 16 2003 - mfabian@suse.de
- remove perllocal.pod from file list.
* Mon May 12 2003 - mfabian@suse.de
- use "enc2xs -C" in %%post and %%postun to register/unregister
  the new encodings in the on demand-loading list.
* Fri May 09 2003 - mfabian@suse.de
- new package: perl-Encode-JIS2K-0.01
- fix installation of man-page
openSUSE Build Service is sponsored by