perl-WebService-Smartling/perl-WebService-Smartling.spec

Name: perl-WebService-Smartling
Summary: Smartling API access
Version: 0.0.4
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/WebService-Smartling/
Description: This module provides a Perl wrapper around Smartling's ( http://smartling.com ) translation API. You will need to be a Smartling customer and have your API Key and project Id before you'll be able to do anything with this module.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: shuff
# Upstream: Matthew Cox <mcox$cpan,org>

%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)

%define real_name WebService-Smartling

%define perl_prefix %{buildroot}%{_prefix}

Summary: Smartling API access
Name: perl-WebService-Smartling
Version: 0.0.4
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/WebService-Smartling/

Source: http://search.cpan.org/CPAN/authors/id/M/MC/MCOX/WebService-Smartling-v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch

BuildRequires: perl
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(JSON)
BuildRequires: perl(Params::Validate)
BuildRequires: perl(Readonly)
BuildRequires: perl(WebService::Simple)
BuildRequires: perl(version)
BuildRequires: rpm-macros-rpmforge
Requires: perl
Requires: perl(Carp)
Requires: perl(JSON)
Requires: perl(Params::Validate)
Requires: perl(Readonly)
Requires: perl(WebService::Simple)
Requires: perl(version)

### remove autoreq Perl dependencies
%filter_from_requires /^perl.*/d
%filter_setup

# don't scan the examples for autoreq/prov
%filter_requires_in %{_docdir}
%filter_provides_in %{_docdir}

%description
This module provides a Perl wrapper around Smartling's ( http://smartling.com )
translation API. You will need to be a Smartling customer and have your API Key
and project Id before you'll be able to do anything with this module.

%prep
%setup -n %{real_name}-v%{version}

# fix problem with modules generated by older versions of Dist::Zilla
#%{?el5:%{__perl} -pi -e '/.*ExtUtils::MakeMaker.*6\.31.*/ && s/6\.3\d/6.30/' Makefile.PL}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{perl_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install
#%{__rm} -rf %{buildroot}%{perl_archlib} %{buildroot}%{perl_vendorarch}

# fix for stupid strip issue
#%{__chmod} -R u+w %{buildroot}/*

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes META.yml README README.md
%doc %{_mandir}/man?/*
%{perl_vendorlib}/WebService/Smartling.pm
#%{perl_vendorlib}/WebService/Smartling/*
#%exclude %{perl_archlib}/perllocal.pod
%exclude %{perl_vendorarch}/auto/*/*/.packlist

%changelog
* Sun Feb  3 2013 Steve Huff <shuff@vecna.org> - 0.0.4-1
New version format.

* Fri Feb  1 2013 Steve Huff <shuff@vecna.org> - 0.01-1
- Initial package.