Package: libxml2 Version: 2.6.11 Revision: 1 Maintainer: The Gnome Core Team Depends: %N-shlibs (>= %v-%r), %N-bin BuildDepends: libiconv-dev Source: mirror:gnome:sources/%n/2.6/%n-%v.tar.bz2 Source-MD5: 0a5439d172555472d4b3d8442eb2478f PatchScript: << sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1 perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure << NoSetLDFLAGS: true SetLDFLAGS: -no-undefined ConfigureParams: --mandir='${prefix}/share/man' --with-iconv=%p --without-python InstallScript: << make install prefix=%i mkdir -p %i/etc/xml mkdir -p %i/share/doc mv %i/share/doc/%n-%v %i/share/doc/%n mkdir -p %i/sbin install -c -m 755 update-xml-catalog %i/sbin/ install -c -m 755 update-sgml-catalog %i/sbin/ << DocFiles: AUTHORS Copyright NEWS README TODO BuildDependsOnly: True SplitOff: << Package: %N-shlibs Replaces: libxml2 (<< 2.4.18-2) Suggests: %N-bin Files: lib/libxml2.%v.dylib lib/libxml2.2.dylib Shlibs: %p/lib/libxml2.2.dylib 9.0.0 %n (>= 2.6.1-1) DocFiles: Copyright README << SplitOff2: << Package: %N-bin Depends: %N-shlibs (>= %v-%r) Replaces: libxml2 (<< 2.4.18-2) Files: bin/xmlcatalog bin/xmllint sbin share/man/man1/xmlcatalog.1 share/man/man1/xmllint.1 etc/xml DocFiles: Copyright README RuntimeVars: << SGML_CATALOG_FILES: %p/etc/sgml/catalog XML_CATALOG_FILES: %p/etc/xml/catalog << PostInstScript: << case "$1" in configure) update-xml-catalog update-sgml-catalog ;; esac << PostRmScript: << case "$1" in abort-install|purge|remove) rm -f %p/etc/xml/catalog rm -f %p/etc/sgml/catalog ;; esac << << Description: XML parsing library, version 2 DescPort: << The Makefile is too stupid to link the executables against the right copy of the library, so we help by setting LDFLAGS. << DescPackaging: << Uses pkgconfig, but there are no pkgconfig-related dependencies. libxml2 uses XML/SGML super catalog to know location of DTDs installed on local system. They are managed by update-xml-catalog and update-sgml-catalog script. Each package that provides DTDs should also provide configuration file(s) for these script and call them within Pre/PostInstScript. When update-xml-catalog is called, it reads every configuration file belongs to %p/etc/xml/catalog.d/. Each line of them contain 3 fields, TYPE, ORIG and REPLACE, correspond to arguments of `xmlcatalog --add'. See xmlcatalog(1) for detail. Also, update-sgml-catalog reads every configuration file belongs to %p/etc/ sgml/catalog.d/ when it is called. Each line of them contain only 1 field, reference to other SGML catalog file. Makefile.in is patched to not set LDFLAGS to avoid linking problems when an older version of libxml2 is already installed while building. Libtool gets patched to fix bundle (loadable module, .so file) building. Previous versions by Christoph Pfisterer << License: LGPL Homepage: http://www.xmlsoft.org/