| 1 | %include %{_rpmconfigdir}/macros.perl |
|---|
| 2 | |
|---|
| 3 | # Basic Information |
|---|
| 4 | Name: perl-Text-CharWidth |
|---|
| 5 | Version: 0.04 |
|---|
| 6 | Release: 3%{?_dist_release} |
|---|
| 7 | License: Artistic/GPL |
|---|
| 8 | Group: Development/Libraries |
|---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-CharWidth-%{version}.tar.gz |
|---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 11 | |
|---|
| 12 | Vendor: Project Vine |
|---|
| 13 | Distribution: Vine Linux |
|---|
| 14 | Packager: yasumichi |
|---|
| 15 | |
|---|
| 16 | Summary: Text-CharWidth module for perl |
|---|
| 17 | Summary(ja): Perl の Text-CharWidth モジュール |
|---|
| 18 | |
|---|
| 19 | # Dependency |
|---|
| 20 | # 以下に依存関係を記述してください。 |
|---|
| 21 | |
|---|
| 22 | Requires: perl |
|---|
| 23 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| 24 | Requires: glibc |
|---|
| 25 | |
|---|
| 26 | BuildRequires: perl |
|---|
| 27 | BuildRequires: glibc-devel |
|---|
| 28 | BuildRequires: glibc-headers |
|---|
| 29 | |
|---|
| 30 | %description |
|---|
| 31 | This is a module to provide equivalent feature as wcwidth(3) and |
|---|
| 32 | wcswidth(3). This also provides mblen(3) equivalent subroutine. |
|---|
| 33 | mbwidth() and mbswidth() are provided subroutines corresponding |
|---|
| 34 | wcwidth(3) and wcswidth(3) in C language. The prefix "mb" expresses |
|---|
| 35 | that they handles "multibyte character" in C meaning, i.e., character |
|---|
| 36 | encoding specified by LC_CTYPE locale. |
|---|
| 37 | |
|---|
| 38 | %description -l ja |
|---|
| 39 | このモジュールは、wcwidth(3)、wcswidth(3) および mblen(3) と同等の機能を提供 |
|---|
| 40 | します。 |
|---|
| 41 | mbwidth() および mbswidth() は、C言語の wcwidth(3) および wcswidth(3) に対応 |
|---|
| 42 | するサブルーチンとして提供されます。接頭辞「mb」は、Cでは、「マルチバイト文 |
|---|
| 43 | 字」を扱うことを意味します。文字エンコーディングは、LC_CTYPE によって指定し |
|---|
| 44 | ます。 |
|---|
| 45 | |
|---|
| 46 | %prep |
|---|
| 47 | %setup -q -n Text-CharWidth-%{version} |
|---|
| 48 | |
|---|
| 49 | %build |
|---|
| 50 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" |
|---|
| 51 | %{__make} |
|---|
| 52 | |
|---|
| 53 | %check |
|---|
| 54 | %{__make} test |
|---|
| 55 | |
|---|
| 56 | %install |
|---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 58 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 59 | |
|---|
| 60 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
|---|
| 61 | sed "s@^$RPM_BUILD_ROOT@@g" | |
|---|
| 62 | grep -v ^%{_mandir} | |
|---|
| 63 | grep -v perllocal.pod | |
|---|
| 64 | grep -v "\.packlist" > %{name}.files |
|---|
| 65 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
|---|
| 66 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 67 | exit -1 |
|---|
| 68 | fi |
|---|
| 69 | |
|---|
| 70 | # remove unnecessary files. |
|---|
| 71 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod |
|---|
| 72 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_vendorarch}/auto/Text/CharWidth/.packlist |
|---|
| 73 | |
|---|
| 74 | %clean |
|---|
| 75 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 76 | |
|---|
| 77 | %files -f %{name}.files |
|---|
| 78 | %defattr(-,root,root) |
|---|
| 79 | %doc Changes README |
|---|
| 80 | %dir %{perl_vendorarch}/Text |
|---|
| 81 | %dir %{perl_vendorarch}/auto/Text |
|---|
| 82 | %dir %{perl_vendorarch}/auto/Text/CharWidth |
|---|
| 83 | %{_mandir}/*/* |
|---|
| 84 | |
|---|
| 85 | %changelog |
|---|
| 86 | * Sun Jul 13 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.04-3 |
|---|
| 87 | - rebuild with perl-5.16.3 |
|---|
| 88 | |
|---|
| 89 | * Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.04-2 |
|---|
| 90 | - Fixed [VineSeed:22926] |
|---|
| 91 | |
|---|
| 92 | * Sun Dec 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.04-1 |
|---|
| 93 | - initial build for Vine Linux |
|---|
| 94 | |
|---|