perl-ExtUtils-ParseXS/perl-ExtUtils-ParseXS.spec

107 lines
3.4 KiB
RPMSpec

%define PERL_VERSION %(eval `perl -V:version`; echo $version)
Name: perl-ExtUtils-ParseXS
Version: 3.24
Release: 1mamba
Summary: Converts Perl XS code into C code
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
Source: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-ParseXS-%{version}.tar.gz
URL: http://www.cpan.org
License: Artistic
Requires: perl >= %PERL_VERSION
BuildRoot: %{_tmppath}/perl-root
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-ExtUtils-CBuilder
%description
Converts Perl XS code into C code
%prep
%setup -q -n ExtUtils-ParseXS-%{version}
%build
sed -i "s|'perl'|'site'|" Makefile.PL
perl Makefile.PL
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%make pure_install DESTDIR=%{buildroot}
packlist=`find $RPM_BUILD_ROOT -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s@$RPM_BUILD_ROOT@@g;s@.*/man/.*@&.gz@g" | \
sort -u > .packlist && rm -f $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find $RPM_BUILD_ROOT -type d | grep $strid`; do
echo "%dir ${dir#$RPM_BUILD_ROOT}" >> .packlist
done
#sed -i s"|.*/ExtUtils/xsubpp||" .packlist
#rm $RPM_BUILD_ROOT/%{_libdir}/perl5/%{PERL_VERSION}/ExtUtils/xsubpp
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 3.24-1mamba
- automatic update by autodist
* Fri Sep 06 2013 Automatic Build System <autodist@mambasoft.it> 3.22-1mamba
- automatic update by autodist
* Tue Aug 13 2013 Automatic Build System <autodist@mambasoft.it> 3.21-1mamba
- automatic update by autodist
* Tue Nov 20 2012 Automatic Build System <autodist@mambasoft.it> 3.18-1mamba
- update to 3.18
* Fri Jun 15 2012 Automatic Build System <autodist@mambasoft.it> 3.15-1mamba
- automatic version update by autodist
* Sat Oct 08 2011 Automatic Build System <autodist@mambasoft.it> 3.05-1mamba
- automatic version update by autodist
* Tue Oct 04 2011 Automatic Build System <autodist@mambasoft.it> 3.04-1mamba
- automatic version update by autodist
* Sat Aug 20 2011 Automatic Build System <autodist@mambasoft.it> 3.03-1mamba
- automatic version update by autodist
* Fri Oct 23 2009 Automatic Build System <autodist@mambasoft.it> 2.200403-1mamba
- automatic update by autodist
* Thu Oct 01 2009 Automatic Build System <autodist@mambasoft.it> 2.200401-1mamba
- automatic update by autodist
* Tue Jul 21 2009 Automatic Build System <autodist@mambasoft.it> 2.2002-1mamba
- automatic update by autodist
* Thu Jul 09 2009 Automatic Build System <autodist@mambasoft.it> 2.20-1mamba
- automatic update by autodist
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.19-2mamba
- automatic rebuild by autodist
* Wed Jun 25 2008 Tiziana Ferro <tiziana.ferro@email.it> 2.19-1mamba
- update to 2.19
* Mon Nov 22 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.08-3qilnx
- make test enabled now that perl-ExtUtils-CBuilder is fixed
* Mon Nov 22 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.08-2qilnx
- install to site instead of perl
* Sun Jul 18 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.08-1qilnx
- first build