packages perl-Template-XML.spec
      Pages: < 1 >  DOWNLOAD      
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)

Name:          perl-Template-XML
Version:       2.17
Release:       4mamba
Summary:       Template::XML - XML plugins for the Template Toolkit
Group:         System/Libraries/Perl
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.cpan.org
Source:        http://www.cpan.org/authors/id/A/AB/ABW/Template-XML-%{version}.tar.gz
License:       GPL, Artistic
Requires(post):%{__install_info}
Requires:      perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
BuildRequires: perl-Template-Toolkit
BuildRequires: perl-XML-DOM
BuildRequires: perl-XML-Parser
BuildRequires: perl-XML-RSS
BuildRequires: perl-XML-Simple
BuildRequires: perl-XML-XPath
BuildRequires: perl-XML-LibXML
BuildRequires: texinfo
## AUTOBUILDREQ-END
BuildRoot:     %{_tmppath}/%{name}-%{version}-root
Obsoletes:     perl-Template-Toolkit-XML

%description
The Template-XML distribution provides a number of Template Toolkit plugin modules for working with XML.

%prep
%setup -q -n Template-XML-%{version}

%define _use_internal_dependency_generator 0
%define __find_provides %{_builddir}/Template-XML-%{version}/find_provides.sh

cat > find_provides.sh << _EOF
#! /bin/sh
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} | \
grep -v "perl(XML::*"
_EOF
chmod +x find_provides.sh

%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
   sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
   sort -u > .packlist && rm $packlist

strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
   echo "%dir ${dir#%buildroot}" >> .packlist
done

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist

%files -f .packlist
%defattr(-,root,root)

%changelog
* Sat Aug 31 2013 Automatic Build System <autodist@...> 2.17-4mamba
- automatic rebuild by autodist

* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@...> 2.17-3mamba
- automatic rebuild by autodist

* Fri Nov 16 2007 Silvan Calarco <silvan.calarco@...> 2.17-2mamba
- don't obsolete perl-XML-XPath but remove incorrect provides for perl(XML::*)

* Thu Nov 15 2007 Silvan Calarco <silvan.calarco@...> 2.17-1mamba
- package created by autospec