libxml2.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Summary: Library providing XML and HTML support
  2. Name: libxml2
  3. Version: 2.7.7
  4. Release: 1
  5. License: MIT
  6. Group: Development/Libraries
  7. Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  9. BuildRequires: python python-devel zlib-devel pkgconfig
  10. URL: http://xmlsoft.org/
  11. %description
  12. This library allows to manipulate XML files. It includes support
  13. to read, modify and write XML and HTML files. There is DTDs support
  14. this includes parsing and validation even with complex DtDs, either
  15. at parse time or later once the document has been modified. The output
  16. can be a simple SAX stream or and in-memory DOM like representations.
  17. In this case one can use the built-in XPath and XPointer implementation
  18. to select subnodes or ranges. A flexible Input/Output mechanism is
  19. available, with existing HTTP and FTP modules and combined to an
  20. URI library.
  21. %package devel
  22. Summary: Libraries, includes, etc. to develop XML and HTML applications
  23. Group: Development/Libraries
  24. Requires: libxml2 = %{version}-%{release}
  25. Requires: zlib-devel
  26. Requires: pkgconfig
  27. %description devel
  28. Libraries, include files, etc you can use to develop XML applications.
  29. This library allows to manipulate XML files. It includes support
  30. to read, modify and write XML and HTML files. There is DTDs support
  31. this includes parsing and validation even with complex DtDs, either
  32. at parse time or later once the document has been modified. The output
  33. can be a simple SAX stream or and in-memory DOM like representations.
  34. In this case one can use the built-in XPath and XPointer implementation
  35. to select subnodes or ranges. A flexible Input/Output mechanism is
  36. available, with existing HTTP and FTP modules and combined to an
  37. URI library.
  38. %package python
  39. Summary: Python bindings for the libxml2 library
  40. Group: Development/Libraries
  41. Requires: libxml2 = %{version}-%{release}
  42. Requires: python
  43. %description python
  44. The libxml2-python package contains a module that permits applications
  45. written in the Python programming language to use the interface
  46. supplied by the libxml2 library to manipulate XML files.
  47. This library allows to manipulate XML files. It includes support
  48. to read, modify and write XML and HTML files. There is DTDs support
  49. this includes parsing and validation even with complex DTDs, either
  50. at parse time or later once the document has been modified.
  51. %prep
  52. %setup -q
  53. %build
  54. %configure
  55. make %{_smp_mflags}
  56. gzip -9 ChangeLog
  57. %install
  58. rm -fr %{buildroot}
  59. %makeinstall
  60. (cd doc/examples ; make clean ; rm -rf .deps Makefile)
  61. gzip -9 doc/libxml2-api.xml
  62. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  63. %clean
  64. rm -fr %{buildroot}
  65. %post
  66. /sbin/ldconfig
  67. %postun
  68. /sbin/ldconfig
  69. %files
  70. %defattr(-, root, root)
  71. %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
  72. %doc %{_mandir}/man1/xmllint.1*
  73. %doc %{_mandir}/man1/xmlcatalog.1*
  74. %doc %{_mandir}/man3/libxml.3*
  75. %{_libdir}/lib*.so.*
  76. %{_bindir}/xmllint
  77. %{_bindir}/xmlcatalog
  78. %files devel
  79. %defattr(-, root, root)
  80. %doc %{_mandir}/man1/xml2-config.1*
  81. %doc AUTHORS ChangeLog.gz NEWS README Copyright
  82. %doc doc/*.html doc/html doc/*.gif doc/*.png
  83. %doc doc/tutorial doc/libxml2-api.xml.gz
  84. %doc doc/examples
  85. %doc %dir %{_datadir}/gtk-doc/html/libxml2
  86. %doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
  87. %doc %{_datadir}/gtk-doc/html/libxml2/*.html
  88. %doc %{_datadir}/gtk-doc/html/libxml2/*.png
  89. %doc %{_datadir}/gtk-doc/html/libxml2/*.css
  90. %{_libdir}/lib*.so
  91. %{_libdir}/*a
  92. %{_libdir}/*.sh
  93. %{_includedir}/*
  94. %{_bindir}/xml2-config
  95. %{_datadir}/aclocal/libxml.m4
  96. %{_libdir}/pkgconfig/libxml-2.0.pc
  97. %files python
  98. %defattr(-, root, root)
  99. %doc AUTHORS ChangeLog.gz NEWS README Copyright
  100. %{_libdir}/python*/site-packages/libxml2.py*
  101. %{_libdir}/python*/site-packages/drv_libxml2.py*
  102. %{_libdir}/python*/site-packages/libxml2mod*
  103. %doc python/TODO
  104. %doc python/libxml2class.txt
  105. %doc python/tests/*.py
  106. %doc doc/*.py
  107. %doc doc/python.html
  108. %changelog
  109. * Mon Mar 15 2010 Daniel Veillard <veillard@redhat.com>
  110. - upstream release 2.7.7 see http://xmlsoft.org/news.html