The attached patch to the CURRENT perl-xml spec file fixes a
problem I had building this on OS X/Darwin. There was on
unresolved reference in the XML-XSH module, where it either was
looking for libxml, or wasn't looking for any library.
I put this under the %build section rather than %prep as I prefer
not to be munging the sources in %prep where it may interfere
with creating new patches.
NOTE: This patch requires sed, called by shtool, to support the
standard C escape sequences, '\n', and '\t'.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc.
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
If you want government to intervene domestically, you're a liberal. If you
want government to intervene overseas, you're a conservative. If you want
government to intervene everywhere, you're a moderate. If you don't want
government to intervene anywhere, you're an extremist -- Joseph Sobran
--- /tmp/perl-xml.spec Wed Feb 23 15:11:18 2005
+++ perl-xml.spec Wed Feb 23 14:47:25 2005
@@ -80,7 +80,7 @@
Group: Language
License: GPL/Artistic
Version: %{V_perl}
-Release: 20050218
+Release: 20050223
# package options
%option with_libxml no
@@ -483,6 +483,15 @@
%patch -p0 -d XML-LibXML-%{V_xml_libxml}
%build
+ case %{l_platform t} in #{
+ *darwin*)
+ ( cd XML-XSH-%{V_xml_xsh}
+ %{l_shtool} subst -s \
+ -e '/WriteMakefile/s/$/\n\tLIBS =>
[q(-lxml2)],/' \
+ Makefile.PL
+ )
+ ;;
+ esac #}
%install
rm -rf $RPM_BUILD_ROOT