[perl-Encode-JIS2K] Initial import.
Xavier Bachelot
xavierb at fedoraproject.org
Thu Dec 22 13:45:40 UTC 2011
commit 4be38b77157f6baac04dcf208b0a9420fdca4743
Author: Xavier Bachelot <xavier at bachelot.org>
Date: Thu Dec 22 14:45:33 2011 +0100
Initial import.
.gitignore | 1 +
...Encode-JIS2K-0.02-Fix_package_declaration.patch | 8 +++
perl-Encode-JIS2K.spec | 57 ++++++++++++++++++++
sources | 1 +
4 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..798a217 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Encode-JIS2K-0.02.tar.gz
diff --git a/perl-Encode-JIS2K-0.02-Fix_package_declaration.patch b/perl-Encode-JIS2K-0.02-Fix_package_declaration.patch
new file mode 100644
index 0000000..e8677f5
--- /dev/null
+++ b/perl-Encode-JIS2K-0.02-Fix_package_declaration.patch
@@ -0,0 +1,8 @@
+--- Encode-JIS2K-0.02/lib/Encode/JIS2K/2022JP3.pm.orig 2011-12-21 00:52:53.000000000 +0100
++++ Encode-JIS2K-0.02/lib/Encode/JIS2K/2022JP3.pm 2011-12-21 00:53:31.000000000 +0100
+@@ -1,4 +1,4 @@
+-package Encode::JIS7::2022JP3;
++package Encode::JIS2K::2022JP3;
+ use strict;
+
+ our $VERSION = do { my @r = (q$Revision: 0.2 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
diff --git a/perl-Encode-JIS2K.spec b/perl-Encode-JIS2K.spec
new file mode 100644
index 0000000..4b023d9
--- /dev/null
+++ b/perl-Encode-JIS2K.spec
@@ -0,0 +1,57 @@
+Name: perl-Encode-JIS2K
+Version: 0.02
+Release: 2%{?dist}
+Summary: JIS X 0212 (aka JIS 2000) Encodings
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Encode-JIS2K/
+Source0: http://www.cpan.org/modules/by-module/Encode/Encode-JIS2K-%{version}.tar.gz
+Patch0: perl-Encode-JIS2K-0.02-Fix_package_declaration.patch
+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
+This module implements encodings that covers JIS X 0213 charset (AKA JIS 2000,
+hence the module name).
+
+%prep
+%setup -q -n Encode-JIS2K-%{version}
+%patch0 -p1
+
+%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/
+
+%changelog
+* Tue Dec 20 2011 Xavier Bachelot <xavier at bachelot.org> 0.02-2
+- Follow the rpmdevtools perl spec template to fix packaging bugs.
+- Don't include ucm directory in %%doc.
+- Add patch to fix package declaration.
+
+* Tue Nov 29 2011 Xavier Bachelot <xavier at bachelot.org> 0.02-1
+- Initial Fedora release.
diff --git a/sources b/sources
index e69de29..3b22d80 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+00e73ee943fb2f882b00b7b61e4c9db1 Encode-JIS2K-0.02.tar.gz
More information about the scm-commits
mailing list