perl-URI-Escape-XS/perl-URI-Escape-XS.spec

Name: perl-URI-Escape-XS
Summary: Perl module that is a drop-in replacement for URI::Escape
Version: 0.08
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/URI-Escape-XS/
Description: perl-URI-Escape-XS is a Perl module that is a drop-in replacement for URI::Escape.

This package contains the following Perl module:

URI::Escape::XS

CentOS 7 x86_64

The build could not start because the following file is missing: URI-Escape-XS-0.08.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: URI-Escape-XS-0.08.tar.gz

Build Status

Contents

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

# $Id$
# Authority: dag
# Upstream: Dan Kogai <dankogai$dan,co,jp>

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

%define real_name URI-Escape-XS

Summary: Perl module that is a drop-in replacement for URI::Escape
Name: perl-URI-Escape-XS
Version: 0.08
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/URI-Escape-XS/

Source: http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/URI-Escape-XS-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(Test::More)
Requires: perl 

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

%description
perl-URI-Escape-XS is a Perl module that is a drop-in replacement
for URI::Escape.

This package contains the following Perl module:

    URI::Escape::XS

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

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install
%{__make} test

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

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

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/URI::Escape::XS.3pm*
%dir %{perl_vendorarch}/URI/
%dir %{perl_vendorarch}/URI/Escape/
%{perl_vendorarch}/URI/Escape/XS.pm
%dir %{perl_vendorarch}/auto/URI/
%dir %{perl_vendorarch}/auto/URI/Escape/
%{perl_vendorarch}/auto/URI/Escape/XS/

%changelog
* Tue Feb  8 2011 Christoph Maser <cmaser@gmx.de> - 0.08-1
- Updated to version 0.08.

* Fri Oct 16 2009 Christoph Maser <cmr@financial.com> - 0.06-1
- Updated to version 0.06.

* Mon Jun  8 2009 Christoph Maser <cmr@financial.com> - 0.05-1
- Updated to version 0.05.

* Sun Nov 04 2007 Dag Wieers <dag@wieers.com> - 0.01-1
- Initial package. (using DAR)