# # spec file for package perl-Encoding-FixLatin # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Encoding-FixLatin Version: 1.04 Release: 0%{?dist} Summary: Takes mixed encoding input and produces UTF-8 output License: GPL-2.0+ or Artistic-1.0 Group: Development/Libraries/Perl Source: http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/Encoding-FixLatin-%{version}.tar.gz Url: http://search.cpan.org/dist/Encoding-FixLatin BuildRequires: perl BuildRequires: perl-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build %perl_requires BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) >= 6.56 BuildRequires: perl(Test::More) >= 0.45 %description Most encoding conversion tools take input in one encoding and produce output in another encoding. This module takes input which may contain characters in more than one encoding and makes a best effort to convert them all to UTF-8 output. %prep %setup -q -n Encoding-FixLatin-%{version} %build if [ -f Build.PL ]; then %{__perl} Build.PL --installdirs vendor else %{__perl} Makefile.PL INSTALLDIRS=vendor fi if [ -f Build.PL ]; then ./Build build flags=%{?_smp_mflags} else %{__make} %{?_smp_mflags} fi %install if [ -f Build.PL ]; then ./Build pure_install --destdir %{buildroot} else %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} fi find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %perl_process_packlist %perl_gen_filelist %check if [ -f Build.PL ]; then ./Build test else %{__make} test fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files %defattr(-,root,root,-) %doc README Changes %changelog