| 1 | Summary: Library providing XML and HTML support
|
|---|
| 2 | Name: libxml2
|
|---|
| 3 | Version: 2.7.7
|
|---|
| 4 | Release: 4%{?dist}
|
|---|
| 5 | License: MIT
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
|---|
| 8 |
|
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|---|
| 10 | BuildRequires: python python-devel zlib-devel pkgconfig
|
|---|
| 11 | URL: http://xmlsoft.org/
|
|---|
| 12 |
|
|---|
| 13 | Patch1: libxml2-os2.diff
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | This library allows to manipulate XML files. It includes support
|
|---|
| 17 | to read, modify and write XML and HTML files. There is DTDs support
|
|---|
| 18 | this includes parsing and validation even with complex DtDs, either
|
|---|
| 19 | at parse time or later once the document has been modified. The output
|
|---|
| 20 | can be a simple SAX stream or and in-memory DOM like representations.
|
|---|
| 21 | In this case one can use the built-in XPath and XPointer implementation
|
|---|
| 22 | to select subnodes or ranges. A flexible Input/Output mechanism is
|
|---|
| 23 | available, with existing HTTP and FTP modules and combined to an
|
|---|
| 24 | URI library.
|
|---|
| 25 |
|
|---|
| 26 | %package devel
|
|---|
| 27 | Summary: Libraries, includes, etc. to develop XML and HTML applications
|
|---|
| 28 | Group: Development/Libraries
|
|---|
| 29 | Requires: libxml2 = %{version}-%{release}
|
|---|
| 30 | Requires: zlib-devel
|
|---|
| 31 | Requires: pkgconfig
|
|---|
| 32 |
|
|---|
| 33 | %description devel
|
|---|
| 34 | Libraries, include files, etc you can use to develop XML applications.
|
|---|
| 35 | This library allows to manipulate XML files. It includes support
|
|---|
| 36 | to read, modify and write XML and HTML files. There is DTDs support
|
|---|
| 37 | this includes parsing and validation even with complex DtDs, either
|
|---|
| 38 | at parse time or later once the document has been modified. The output
|
|---|
| 39 | can be a simple SAX stream or and in-memory DOM like representations.
|
|---|
| 40 | In this case one can use the built-in XPath and XPointer implementation
|
|---|
| 41 | to select subnodes or ranges. A flexible Input/Output mechanism is
|
|---|
| 42 | available, with existing HTTP and FTP modules and combined to an
|
|---|
| 43 | URI library.
|
|---|
| 44 |
|
|---|
| 45 | %package static
|
|---|
| 46 | Summary: Static library for libxml2
|
|---|
| 47 | Group: Development/Libraries
|
|---|
| 48 | Requires: libxml2 = %{version}-%{release}
|
|---|
| 49 |
|
|---|
| 50 | %description static
|
|---|
| 51 | Static library for libxml2 provided for specific uses or shaving a few
|
|---|
| 52 | microseconds when parsing, do not link to them for generic purpose packages.
|
|---|
| 53 |
|
|---|
| 54 | %package python
|
|---|
| 55 | Summary: Python bindings for the libxml2 library
|
|---|
| 56 | Group: Development/Libraries
|
|---|
| 57 | Requires: libxml2 = %{version}-%{release}
|
|---|
| 58 |
|
|---|
| 59 | %description python
|
|---|
| 60 | The libxml2-python package contains a module that permits applications
|
|---|
| 61 | written in the Python programming language to use the interface
|
|---|
| 62 | supplied by the libxml2 library to manipulate XML files.
|
|---|
| 63 |
|
|---|
| 64 | This library allows to manipulate XML files. It includes support
|
|---|
| 65 | to read, modify and write XML and HTML files. There is DTDs support
|
|---|
| 66 | this includes parsing and validation even with complex DTDs, either
|
|---|
| 67 | at parse time or later once the document has been modified.
|
|---|
| 68 |
|
|---|
| 69 | %prep
|
|---|
| 70 | %setup -q
|
|---|
| 71 | %patch001 -p1 -b .os2~
|
|---|
| 72 |
|
|---|
| 73 | %build
|
|---|
| 74 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 75 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
|
|---|
| 76 | export LIBS="-lurpo -lmmap -lpthread" ; \
|
|---|
| 77 | %configure \
|
|---|
| 78 | --without-python \
|
|---|
| 79 | --enable-shared --disable-static \
|
|---|
| 80 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 81 |
|
|---|
| 82 | make %{?smp_mflags}
|
|---|
| 83 |
|
|---|
| 84 | gzip -9 ChangeLog
|
|---|
| 85 |
|
|---|
| 86 | %install
|
|---|
| 87 | rm -fr %{buildroot}
|
|---|
| 88 |
|
|---|
| 89 | %makeinstall
|
|---|
| 90 | gzip -9 doc/libxml2-api.xml
|
|---|
| 91 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 92 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python*
|
|---|
| 93 |
|
|---|
| 94 | cp libxml2.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 95 | cp .libs/xml2.lib $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 96 | cp .libs/xml2_s.a $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 97 | rm $RPM_BUILD_ROOT%{_libdir}/xml2Conf.sh
|
|---|
| 98 |
|
|---|
| 99 | # multiarch crazyness on timestamp differences or Makefile/binaries for examples
|
|---|
| 100 | touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config
|
|---|
| 101 | (cd doc/examples ; make clean ; rm -rf .deps Makefile)
|
|---|
| 102 |
|
|---|
| 103 | %clean
|
|---|
| 104 | rm -fr %{buildroot}
|
|---|
| 105 |
|
|---|
| 106 | #%post -p /sbin/ldconfig
|
|---|
| 107 |
|
|---|
| 108 | #%postun -p /sbin/ldconfig
|
|---|
| 109 |
|
|---|
| 110 | %files
|
|---|
| 111 | %defattr(-, root, root)
|
|---|
| 112 |
|
|---|
| 113 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
|
|---|
| 114 | %doc %{_mandir}/man1/xmllint.1*
|
|---|
| 115 | %doc %{_mandir}/man1/xmlcatalog.1*
|
|---|
| 116 | %doc %{_mandir}/man3/libxml.3*
|
|---|
| 117 |
|
|---|
| 118 | %{_libdir}/lib*.dll
|
|---|
| 119 | %{_bindir}/xmllint.exe
|
|---|
| 120 | %{_bindir}/xmlcatalog.exe
|
|---|
| 121 |
|
|---|
| 122 | %files devel
|
|---|
| 123 | %defattr(-, root, root)
|
|---|
| 124 |
|
|---|
| 125 | %doc %{_mandir}/man1/xml2-config.1*
|
|---|
| 126 | %doc doc/*.html doc/html doc/*.gif doc/*.png
|
|---|
| 127 | %doc doc/tutorial doc/libxml2-api.xml.gz
|
|---|
| 128 | %doc doc/examples
|
|---|
| 129 | %doc %dir %{_datadir}/gtk-doc/html/libxml2
|
|---|
| 130 | %doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
|
|---|
| 131 | %doc %{_datadir}/gtk-doc/html/libxml2/*.html
|
|---|
| 132 | %doc %{_datadir}/gtk-doc/html/libxml2/*.png
|
|---|
| 133 | %doc %{_datadir}/gtk-doc/html/libxml2/*.css
|
|---|
| 134 |
|
|---|
| 135 | %{_libdir}/lib*.dll
|
|---|
| 136 | %{_libdir}/xml2.a
|
|---|
| 137 | %{_libdir}/xml2.lib
|
|---|
| 138 | #%{_libdir}/*.sh
|
|---|
| 139 | %{_includedir}/*
|
|---|
| 140 | %{_bindir}/xml2-config
|
|---|
| 141 | %{_datadir}/aclocal/libxml.m4
|
|---|
| 142 | %{_libdir}/pkgconfig/libxml-2.0.pc
|
|---|
| 143 |
|
|---|
| 144 | %files static
|
|---|
| 145 | %defattr(-, root, root)
|
|---|
| 146 |
|
|---|
| 147 | %{_libdir}/xml2_s.a
|
|---|
| 148 |
|
|---|
| 149 | #%files python
|
|---|
| 150 | #%defattr(-, root, root)
|
|---|
| 151 | #%{_libdir}/python*/site-packages/libxml2.py*
|
|---|
| 152 | #%{_libdir}/python*/site-packages/drv_libxml2.py*
|
|---|
| 153 | #%{_libdir}/python*/site-packages/libxml2mod*
|
|---|
| 154 | #%doc python/TODO
|
|---|
| 155 | #%doc python/libxml2class.txt
|
|---|
| 156 | #%doc python/tests/*.py
|
|---|
| 157 | #%doc doc/*.py
|
|---|
| 158 | #%doc doc/python.html
|
|---|
| 159 |
|
|---|
| 160 | %changelog
|
|---|
| 161 | * Mon Jan 16 2012 yd
|
|---|
| 162 | - rebuild with libc 0.6.4 runtime.
|
|---|