2024-01-06 09:49:02 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Text-Unidecode
|
2024-01-06 09:49:02 +01:00
|
|
|
Version: 1.00_03
|
|
|
|
Release: 1mamba
|
2024-01-06 09:49:02 +01:00
|
|
|
Summary: Text::Unidecode -- US-ASCII transliterations of Unicode text
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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
|
2024-01-06 09:49:02 +01:00
|
|
|
* Tue Jun 24 2014 Automatic Build System <autodist@mambasoft.it> 1.00_03-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:49:02 +01:00
|
|
|
* Fri Feb 22 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-2mamba
|
|
|
|
- rebuilt in devel
|
|
|
|
|
|
|
|
* Sat Feb 12 2011 gil <puntogil@libero.it> 0.04-1mamba
|
|
|
|
- package created by autospec
|