From a0289c5c014ca784d2ab6850be466b26cc63b40e Mon Sep 17 00:00:00 2001 From: pertusus Date: Tue, 31 Jan 2006 10:09:26 +0000 Subject: [PATCH] auto-import perl-Text-Unidecode-0.04-1 on branch devel from perl-Text-Unidecode-0.04-1.src.rpm --- .cvsignore | 1 + perl-Text-Unidecode.spec | 61 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 perl-Text-Unidecode.spec diff --git a/.cvsignore b/.cvsignore index e69de29..be4ee10 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Text-Unidecode-0.04.tar.gz diff --git a/perl-Text-Unidecode.spec b/perl-Text-Unidecode.spec new file mode 100644 index 0000000..a0f6dc4 --- /dev/null +++ b/perl-Text-Unidecode.spec @@ -0,0 +1,61 @@ +Name: perl-Text-Unidecode +Version: 0.04 +Release: 1%{?dist} +Summary: US-ASCII transliterations of Unicode text + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Text-Unidecode/ +Source0: http://www.cpan.org/modules/by-module/Text/Text-Unidecode-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description + +Text::Unidecode provides a function, `unidecode(...)' that +takes Unicode data and tries to represent it in US-ASCII +characters (i.e., the universally displayable characters between +0x00 and 0x7F). The representation is almost always an attempt at +*transliteration* -- i.e., conveying, in Roman letters, the +pronunciation expressed by the text in some other writing +system. + + +%prep +%setup -q -n Text-Unidecode-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README TODO.txt ChangeLog +%{perl_vendorlib}/Text/ +%{_mandir}/man3/*.3* + + +%changelog +* Sun Jan 29 2006 Patrice Dumas - 0.04-1 +- fedora extras submission diff --git a/sources b/sources index e69de29..131fe09 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +06f6bddb396ab386aa66a2bc8a04df76 Text-Unidecode-0.04.tar.gz