Files
perl-Encoding-FixLatin/perl-Encoding-FixLatin.spec

89 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-perl-Encoding-FixLatin (Version 1.02)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Encoding-FixLatin
Version: 1.02
Release: 0%{?dist}
License: GPLv2+ or Artistic
Group: Development/Libraries/Perl
Summary: Takes mixed encoding input and produces UTF-8 output
Source: http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/Encoding-FixLatin-%{version}.tar.gz
Patch1: fixlatin_nonnull.patch
Url: http://search.cpan.org/dist/Encoding-FixLatin
BuildRequires: perl 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}
%patch1 -p1
%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
* Fri Aug 13 2010 %{packager}
- initial SUSE packaging
- generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8)