%define _use_internal_dependency_generator 0 %define module libxml-perl Summary: A collection of Perl modules for working with XML. Name: perl-%{module} Version: 0.07 Release: 29 License: distributable Group: System Environment/Libraries Source0: %{module}-%{version}.tar.bz2 Url: http://www.cpan.org BuildRoot: %{_tmppath}/%{name}-buildroot/ Requires: perl >= 5.6.0, perl-XML-Parser BuildRequires: perl-XML-Parser BuildArch: noarch %description libxml-perl is a collection of smaller Perl modules, scripts, and documents for working with XML in Perl. libxml-perl software works in combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove and others. %prep %setup -q -n %{module}-%{version} %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make make test || /bin/true %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod | grep -v "\.packlist" > perl-libxml-perl-%{version}-filelist if [ "$(cat perl-libxml-perl-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %files -f perl-libxml-perl-%{version}-filelist %defattr(-,root,root) %changelog * Fri Apr 23 2004 Chip Turner 0.07-29 - bump * Tue Aug 6 2002 Chip Turner - automated release bump and build * Wed Mar 27 2002 Chip Turner - move to vendor_perl * Wed Jan 09 2002 Tim Powers - automated rebuild * Thu Jul 18 2001 Crutcher Dunnavant 0.07-5 - imported from mandrake. tweaked man path. * Sun Jun 17 2001 Geoffrey Lee 0.07-4mdk - Rebuild for the latest perl. - Remove Distribution and Vendor tag. - Don't run make test for now. * Tue Mar 13 2001 Jeff Garzik 0.07-3mdk - BuildArch: noarch - add docs - rename spec file - clean up spec a bit - run automated tests * Sat Sep 16 2000 Stefan van der Eijk 0.07-2mdk - Call spec-helper before creating filelist * Wed Aug 09 2000 Jean-Michel Dault 0.07-1mdk - Macroize package