[perl-Encode-HanExtra] Initial import.

Xavier Bachelot xavierb at fedoraproject.org
Wed Dec 21 20:34:55 UTC 2011


commit 3ad480edd0e23b5f1e6fc000b1771fa07e6a76e3
Author: Xavier Bachelot <xavier at bachelot.org>
Date:   Wed Dec 21 21:34:38 2011 +0100

    Initial import.

 .gitignore                |    1 +
 perl-Encode-HanExtra.spec |   64 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..279631b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Encode-HanExtra-0.23.tar.gz
diff --git a/perl-Encode-HanExtra.spec b/perl-Encode-HanExtra.spec
new file mode 100644
index 0000000..2e2f505
--- /dev/null
+++ b/perl-Encode-HanExtra.spec
@@ -0,0 +1,64 @@
+Name:           perl-Encode-HanExtra
+Version:        0.23
+Release:        3%{?dist}
+Summary:        Extra sets of Chinese encodings
+License:        MIT
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Encode-HanExtra/
+Source0:        http://www.cpan.org/modules/by-module/Encode/Encode-HanExtra-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+Perl 5.7.3 and later ships with an adequate set of Chinese encodings,
+including the commonly used CP950, CP936 (also known as GBK), Big5 (alias
+for Big5-Eten), Big5-HKSCS, EUC-CN, HZ, and ISO-IR-165.
+However, the numbers of Chinese encodings are staggering, and a complete
+coverage will easily increase the size of perl distribution by several
+megabytes; hence, this CPAN module tries to provide the rest of them.
+If you are using Perl 5.8 or later, Encode::CN and Encode::TW will
+automatically load the extra encodings for you, so there's no need to
+explicitly write use Encode::HanExtra if you are using one of them already.
+
+%prep
+%setup -q -n Encode-HanExtra-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+# Remove the next line from noarch packages (unneeded)
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorarch}/*
+%exclude %dir %{perl_vendorarch}/auto/
+%{_mandir}/man3/*
+
+%changelog
+* Wed Dec 21 2011 Xavier Bachelot <xavier at bachelot.org> 0.23-3
+- Fix bad copy/paste.
+
+* Tue Dec 20 2011 Xavier Bachelot <xavier at bachelot.org> 0.23-2
+- Follow the rpmdevtools perl spec template to fix packaging bugs.
+
+* Tue Nov 29 2011 Xavier Bachelot <xavier at bachelot.org> 0.23-1
+- Initial Fedora release.
diff --git a/sources b/sources
index e69de29..7786f25 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e1d3bc32c1c8ee304235a06fbcd5d5a4  Encode-HanExtra-0.23.tar.gz


More information about the scm-commits mailing list