# RPM specfile for XML-LibXML module # Generated Fri Nov 5 23:42:38 2004 GMT by Ximian build system # $Id: bb_do,v 1.256 2004/08/20 21:13:35 v_thunder Exp $ # from $Id: ximian-build.conf,v 1.9 2004/05/11 21:00:32 duncan Exp $ %define nam XML-LibXML %define ver 1.58 %define licensedir %{_datadir}/licenses/%{nam}-%{ver} %define ximrev 1 Name: perl-XML-LibXML Version: 1.58 Release: 1.ximian.6.1 Vendor: Ximian, Inc. Distribution: Ximian GNOME for Red Hat Linux 9 / i386 Copyright: Artistic BuildRoot: /var/tmp/%{nam}-%{ver}-root Docdir: /usr/share/doc URL: http://www.cpan.org/ Source0: XML-LibXML-1.58.tar.gz Patch0: XML-LibXML-makefile.patch BuildRequires: libxml2-devel BuildRequires: perl BuildRequires: perl-XML-LibXML-Common BuildRequires: perl-XML-NamespaceSupport BuildRequires: perl-XML-NodeFilter BuildRequires: perl-XML-SAX Summary: XML-LibXML extension for Perl5 Group: Development/Perl Requires: libxml2 Requires: perl Requires: perl-XML-LibXML-Common Requires: perl-XML-NamespaceSupport Requires: perl-XML-NodeFilter Requires: perl-XML-SAX Provides: ximian-perl-XML-LibXML = %{?epoch:%{epoch}:}%{version}-%{?ximrev:%{ximrev}}%{!?ximrev:%{release}} %description This package provides a perl module. %files %defattr(-, root, root) %doc README /usr/lib/perl5/*/* /usr/share/man/man*/* # $RPM_COMMAND is an environment variable used by the Ximian build # system to control the build process with finer granularity than RPM # normally allows. This specfile will function as expected by RPM if # $RPM_COMMAND is unset. If you are not the Ximian build system, # feel free to ignore it. %prep case "${RPM_COMMAND:-all}" in dist) %setup -q -D -n XML-LibXML-1.58 ;; all) %setup -q -n XML-LibXML-1.58 ;; esac case "${RPM_COMMAND:-all}" in dist|all) %patch -p1 -P 0 ;; esac %build MAKE=${MAKE:-make} RPM_COMMAND=${RPM_COMMAND:-all} DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} ARCH=%{_target_platform} export MAKE RPM_COMMAND DESTDIR ARCH case "$RPM_COMMAND" in prepare|all) perl Makefile.PL PREFIX=${DESTDIR}/usr INSTALLDIRS=site ;; esac case "$RPM_COMMAND" in clean|all) if [ "/" != "$DESTDIR" ]; then rm -rf "$DESTDIR" fi ;; esac case "$RPM_COMMAND" in build|all) ${MAKE} OPTIMIZE="-O2 -g -Wall"; ${MAKE} test || true ;; esac %install MAKE=${MAKE:-make} DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} # export DESTDIR case "${RPM_COMMAND:-all}" in install|all) ${MAKE} PREFIX=${DESTDIR}/usr install # Remove unwanted files before pack stage. rm -rf $DESTDIR/usr/lib/perl5/*/*/*/perllocal.pod rm -rf $DESTDIR/usr/lib/perl5/*/*/perllocal.pod ;; esac %clean DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} export DESTDIR case "${RPM_COMMAND:-all}" in clean|all) if [ "/" != "$DESTDIR" ]; then rm -rf "$DESTDIR" fi ;; esac %changelog * Fri Nov 5 2004 Ximian, Inc. - Version: 1.58-1.ximian.6.1 - Summary: New build. - New automated build.