2010-12-01 17:58:08 +00:00
|
|
|
#
|
2014-08-22 12:52:11 +00:00
|
|
|
# spec file for package perl-Encoding-FixLatin
|
2010-12-01 17:58:08 +00:00
|
|
|
#
|
2014-08-22 12:52:11 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-01 17:58:08 +00:00
|
|
|
#
|
2014-08-22 12:52:11 +00:00
|
|
|
# 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.
|
|
|
|
|
2010-12-01 17:58:08 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-08-22 12:52:11 +00:00
|
|
|
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
|
2010-12-01 17:58:08 +00:00
|
|
|
|
2014-08-22 12:52:11 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.56
|
|
|
|
BuildRequires: perl(Test::More) >= 0.45
|
2010-12-01 17:58:08 +00:00
|
|
|
|
|
|
|
%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
|
2014-08-22 12:52:11 +00:00
|
|
|
|
2010-12-01 17:58:08 +00:00
|
|
|
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
|
2014-08-22 12:52:11 +00:00
|
|
|
|
2010-12-01 17:58:08 +00:00
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README Changes
|
|
|
|
|
|
|
|
%changelog
|