# # Conditional build: %bcond_without tests # do not perform "make test" %define pdir Text %define pnam Unidecode Summary: Text::Unidecode -- US-ASCII transliterations of Unicode text Summary(pl.UTF-8): Text::Unidecode - transliteracje US-ASCII dla tekstu Unicode Name: perl-Text-Unidecode Version: 1.30 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: https://cpan.metacpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 31cca8505bd74ed9d8036cdc84c808ca URL: https://metacpan.org/release/Text-Unidecode BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpmbuild(macros) >= 1.737 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # avoid extremely long provides list %define _noautoprov_perl Text::Unidecode::x.. %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. %description -l pl.UTF-8 Text::Unidecode udostępnia funkcje unidecode(...) przyjmującą dane zakodowane w Unicode i próbującą stworzyć ich reprezentację przy użyciu znaków US-ASCII (czyli uniwersalnych znaków zdatnych do wyświetlenia, o kodach od 0x00 do 0x7F). Reprezentacja jest prawie zawsze próbą transliteracji - czyli przybliżeniem znakami łacińskimi wymowy tekstu wyrażonego w innym systemie pisma. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ChangeLog README TODO.txt %{perl_vendorlib}/Text/Unidecode.pm %{perl_vendorlib}/Text/Unidecode %{_mandir}/man3/Text::Unidecode.3pm*