6 Summary: A Library to Manipulate XML Files
8 Group: System/Libraries
9 Url: http://xmlsoft.org
10 # Source ftp://xmlsoft.org/libxml2/libxml2-git-snapshot.tar.gz changes every day
11 Source: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
12 Source2: baselibs.conf
14 BuildRequires: pkg-config
15 BuildRequires: readline-devel
16 BuildRequires: xz-devel
17 BuildRequires: zlib-devel
20 The XML C library was initially developed for the GNOME project. It is
21 now used by many programs to load and save extensible data structures
22 or manipulate any kind of XML files.
24 This library implements a number of existing standards related to
25 markup languages, including the XML standard, name spaces in XML, XML
26 Base, RFC 2396, XPath, XPointer, HTML4, XInclude, SGML catalogs, and
27 XML catalogs. In most cases, libxml tries to implement the
28 specification in a rather strict way. To some extent, it provides
29 support for the following specifications, but does not claim to
30 implement them: DOM, FTP client, HTTP client, and SAX.
32 The library also supports RelaxNG. Support for W3C XML Schemas is in
37 Summary: Tools using libxml
38 Group: System/Libraries
41 This package contains xmllint, a very useful tool proving libxml's power.
44 Summary: Include Files and Libraries mandatory for Development
45 Group: Development/Libraries/C and C++
46 Requires: %{lname} = %{version}
47 Requires: %{name}-tools = %{version}
49 Requires: readline-devel
54 This package contains all necessary include files and libraries needed
55 to develop applications that require these.
58 Summary: A Library to Manipulate XML Files
59 Group: System/Libraries
60 Requires: %{lname} = %{version}
64 The XML C library was initially developed for the GNOME project. It is
65 now used by many programs to load and save extensible data structures
66 or manipulate any kind of XML files.
68 This library implements a number of existing standards related to
69 markup languages, including the XML standard, name spaces in XML, XML
70 Base, RFC 2396, XPath, XPointer, HTML4, XInclude, SGML catalogs, and
71 XML catalogs. In most cases, libxml tries to implement the
72 specification in a rather strict way. To some extent, it provides
73 support for the following specifications, but does not claim to
74 implement them: DOM, FTP client, HTTP client, and SAX.
76 The library also supports RelaxNG. Support for W3C XML Schemas is in
84 %configure --disable-static \
85 --docdir=%_docdir/%name \
86 --with-html-dir=%_docdir/%name/html \
97 make %{?_smp_mflags} BASE_DIR="%_docdir" DOC_MODULE="%name"
100 # qemu-arm can't keep up atm, disabling check for arm
106 make install DESTDIR="%buildroot" BASE_DIR="%_docdir" DOC_MODULE="%name"
107 mkdir -p "%buildroot/%_docdir/%name"
108 cp -a AUTHORS NEWS README COPYING* Copyright TODO* %{buildroot}%{_docdir}/%{name}/
109 ln -s libxml2/libxml %{buildroot}%{_includedir}/libxml
112 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(-, root, root)
119 %doc %dir %{_docdir}/%{name}
120 %doc %{_docdir}/%{name}/[ANRCT]*
123 %defattr(-, root, root)
125 %{_bindir}/xmlcatalog
126 %doc %{_mandir}/man1/xmllint.1*
127 %doc %{_mandir}/man1/xmlcatalog.1*
130 %defattr(-, root, root)
131 %{_bindir}/xml2-config
132 %dir %{_datadir}/aclocal
133 %{_datadir}/aclocal/libxml.m4
134 %{_includedir}/libxml
135 %{_includedir}/libxml2
137 # libxml2.la is needed for the python-libxml2 build. Deleting it breaks build of python-libxml2.
138 %{_libdir}/libxml2.la
140 %{_libdir}/pkgconfig/*.pc
141 %doc %{_mandir}/man1/xml2-config.1*
142 %doc %{_mandir}/man3/libxml.3*
145 %defattr(-, root, root)
146 %{_datadir}/gtk-doc/html/*
147 %doc %{_docdir}/%{name}/examples
148 %doc %{_docdir}/%{name}/html
149 # owning these directories prevents gtk-doc <-> libxml2 build loop:
150 %dir %{_datadir}/gtk-doc
151 %dir %{_datadir}/gtk-doc/html