diff --git a/README.md b/README.md index 9eaa56f..fb3a558 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Text-Unidecode +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. + diff --git a/perl-Text-Unidecode.spec b/perl-Text-Unidecode.spec new file mode 100644 index 0000000..f848479 --- /dev/null +++ b/perl-Text-Unidecode.spec @@ -0,0 +1,57 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Text-Unidecode +Version: 0.04 +Release: 2mamba +Summary: Text::Unidecode -- US-ASCII transliterations of Unicode text +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Text-Unidecode-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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} +#%patch0 -p1 + +%build +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +make +make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/Text/ +%{_mandir}/man3/*.3pm.gz +#% doc ChangeLog README TODO.txt + +%changelog +* Fri Feb 22 2013 Silvan Calarco 0.04-2mamba +- rebuilt in devel + +* Sat Feb 12 2011 gil 0.04-1mamba +- package created by autospec