3 # check is defined off at .rpmmacros file.
11 Summary: A Library to Manipulate XML Files
13 Group: System/Libraries
14 Url: http://xmlsoft.org
15 # Source ftp://xmlsoft.org/libxml2/libxml2-git-snapshot.tar.gz changes every day
16 Source: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
17 Source2: baselibs.conf
18 Source1001: libxml2.manifest
19 BuildRequires: pkg-config
20 BuildRequires: readline-devel
21 BuildRequires: xz-devel
22 BuildRequires: zlib-devel
25 The XML C library was initially developed for the GNOME project. It is
26 now used by many programs to load and save extensible data structures
27 or manipulate any kind of XML files.
29 This library implements a number of existing standards related to
30 markup languages, including the XML standard, name spaces in XML, XML
31 Base, RFC 2396, XPath, XPointer, HTML4, XInclude, SGML catalogs, and
32 XML catalogs. In most cases, libxml tries to implement the
33 specification in a rather strict way. To some extent, it provides
34 support for the following specifications, but does not claim to
35 implement them: DOM, FTP client, HTTP client, and SAX.
37 The library also supports RelaxNG. Support for W3C XML Schemas is in
42 Summary: Tools using libxml
43 Group: System/Libraries
46 This package contains xmllint, a very useful tool proving libxml's power.
49 Summary: Include Files and Libraries mandatory for Development
50 Group: Development/Libraries
51 Requires: %{name} = %{version}
52 Requires: %{name}-tools = %{version}
54 Requires: readline-devel
59 This package contains all necessary include files and libraries needed
60 to develop applications that require these.
67 %configure --disable-static \
68 --docdir=%_docdir/%name \
69 --with-html-dir=%_docdir/%name/html \
80 make %{?_smp_mflags} BASE_DIR="%_docdir" DOC_MODULE="%name"
84 %__make runtests || exit 0
89 make install DESTDIR="%buildroot" BASE_DIR="%_docdir" DOC_MODULE="%name"
90 ln -s libxml2/libxml %{buildroot}%{_includedir}/libxml
94 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %manifest %{name}.manifest
100 %defattr(-, root, root)
105 %manifest %{name}.manifest
106 %defattr(-, root, root)
109 %{_bindir}/xmlcatalog
112 %manifest %{name}.manifest
113 %defattr(-, root, root)
115 %{_bindir}/xml2-config
116 %dir %{_datadir}/aclocal
117 %{_datadir}/aclocal/libxml.m4
118 %{_includedir}/libxml
119 %{_includedir}/libxml2
121 # libxml2.la is needed for the python-libxml2 build. Deleting it breaks build of python-libxml2.
122 %{_libdir}/libxml2.la
124 %{_libdir}/pkgconfig/*.pc
125 %{_libdir}/cmake/libxml2/libxml2-config.cmake