perl-Text-Unidecode/perl-Text-Unidecode.spec

76 lines
2.5 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Text-Unidecode
Version: 1.30
Release: 1mamba
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
* Sun Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 1.30-1mamba
- automatic update by autodist
* Fri Jan 08 2016 Automatic Build System <autodist@mambasoft.it> 1.27-1mamba
- automatic update by autodist
* Fri Dec 12 2014 Automatic Build System <autodist@mambasoft.it> 1.23-1mamba
- automatic update by autodist
* Fri Sep 19 2014 Automatic Build System <autodist@mambasoft.it> 1.22-1mamba
- automatic update by autodist
* Thu Jul 24 2014 Automatic Build System <autodist@mambasoft.it> 1.01-1mamba
- automatic update by autodist
* Tue Jun 24 2014 Automatic Build System <autodist@mambasoft.it> 1.00_03-1mamba
- automatic update by autodist
* 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