c058d6
Name:           perl-ExtUtils-ParseXS
c058d6
# Epoch to compete with perl.spec
c058d6
Epoch:          1
c058d6
Version:        3.18
1fcd91
Release:        3%{?dist}
c058d6
Summary:        Module and a script for converting Perl XS code into C code
c058d6
License:        GPL+ or Artistic
c058d6
Group:          Development/Libraries
c058d6
URL:            http://search.cpan.org/dist/ExtUtils-ParseXS/
c058d6
Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/ExtUtils-ParseXS-%{version}.tar.gz
1fcd91
# Improve compatibility with C++, CPAN RT#86367, bug #1078438,
1fcd91
# in upstream 3.18_03
1fcd91
Patch0:         ExtUtils-ParseXS-3.18-EU-ParseXS-Attempt-to-canonicalize-C-types-in-tidy_t.patch
c058d6
BuildArch:      noarch
c058d6
BuildRequires:  perl
c058d6
BuildRequires:  perl(Config)
c058d6
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.46
c058d6
BuildRequires:  perl(File::Spec)
c058d6
BuildRequires:  perl(strict)
c058d6
BuildRequires:  perl(warnings)
c058d6
# Run-time:
c058d6
BuildRequires:  perl(Cwd)
c058d6
BuildRequires:  perl(Exporter)
c058d6
# ExtUtils::XSSymSet not needed
c058d6
BuildRequires:  perl(File::Basename)
c058d6
# Getopt::Long not tested
c058d6
BuildRequires:  perl(lib)
c058d6
BuildRequires:  perl(re)
c058d6
BuildRequires:  perl(Symbol)
c058d6
# Tests:
c058d6
BuildRequires:  perl-devel
c058d6
BuildRequires:  perl(attributes)
c058d6
BuildRequires:  perl(Carp)
c058d6
BuildRequires:  perl(DynaLoader)
c058d6
BuildRequires:  perl(ExtUtils::CBuilder)
c058d6
BuildRequires:  perl(File::Temp)
c058d6
BuildRequires:  perl(overload)
c058d6
BuildRequires:  perl(Test::More) >= 0.47
c058d6
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c058d6
Requires:       perl-devel
c058d6
# perl-ExtUtils-Typemaps has been merged into perl-ExtUtils-ParseXS, bug #891952
c058d6
Obsoletes:      perl-ExtUtils-Typemaps
c058d6
c058d6
%description
c058d6
ExtUtils::ParseXS will compile XS code into C code by embedding the
c058d6
constructs necessary to let C functions manipulate Perl values and creates
c058d6
the glue necessary to let Perl access those functions.
c058d6
c058d6
%prep
c058d6
%setup -q -n ExtUtils-ParseXS-%{version}
1fcd91
%patch0 -p1
c058d6
c058d6
%build
c058d6
perl Makefile.PL INSTALLDIRS=vendor
c058d6
make %{?_smp_mflags}
c058d6
c058d6
%install
c058d6
make pure_install DESTDIR=$RPM_BUILD_ROOT
c058d6
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
c058d6
%{_fixperms} $RPM_BUILD_ROOT/*
c058d6
# Do not install xsubpp twice, RT#117289
c058d6
rm $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/xsubpp
c058d6
ln -s ../../../../bin/xsubpp $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/
c058d6
c058d6
%check
c058d6
make test
c058d6
c058d6
%files
c058d6
%doc Changes README
c058d6
%{_bindir}/*
c058d6
%{perl_vendorlib}/*
c058d6
%{_mandir}/man1/*
c058d6
%{_mandir}/man3/*
c058d6
c058d6
%changelog
1fcd91
* Thu Mar 20 2014 Petr Pisar <ppisar@redhat.com> - 1:3.18-3
1fcd91
- Improve compatibility with C++ (bug #1078438)
1fcd91
df56b7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:3.18-2
df56b7
- Mass rebuild 2013-12-27
df56b7
c058d6
* Fri Mar 22 2013 Petr Pisar <ppisar@redhat.com> 1:3.18-1
c058d6
- Specfile autogenerated by cpanspec 1.78.