You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.8 KiB

  1. Summary: Xerces-C++ validating XML parser
  2. Name: xerces-c
  3. Version: 3.1.2
  4. Release: 1
  5. URL: http://xerces.apache.org/xerces-c/
  6. Source0: %{name}-%{version}.tar.gz
  7. License: Apache
  8. Group: Libraries
  9. BuildRoot: %{_tmppath}/%{name}-root
  10. Prefix: /usr
  11. %{!?_without_curl:BuildRequires: curl-devel}
  12. %{?_with_icu:BuildRequires: libicu-devel}
  13. %description
  14. Xerces-C++ is a validating XML parser written in a portable subset of C++.
  15. Xerces-C++ makes it easy to give your application the ability to read and
  16. write XML data. A shared library is provided for parsing, generating,
  17. manipulating, and validating XML documents.
  18. The parser provides high performance, modularity, and scalability. Source
  19. code, samples and API documentation are provided with the parser. For
  20. portability, care has been taken to make minimal use of templates, no RTTI,
  21. and minimal use of #ifdefs.
  22. %package devel
  23. Requires: %{name} = %{version}
  24. Group: Development/Libraries
  25. Summary: Header files for Xerces-C++ validating XML parser
  26. %description devel
  27. Header files you can use to develop XML applications with Xerces-C++.
  28. Xerces-C++ is a validating XML parser written in a portable subset of C++.
  29. Xerces-C++ makes it easy to give your application the ability to read and
  30. write XML data. A shared library is provided for parsing, generating,
  31. manipulating, and validating XML documents.
  32. %prep
  33. %setup -q
  34. %build
  35. %configure %{!?_without_curl:--enable-netaccessor-curl} %{?_with_icu:--enable-transcoder-icu --enable-msgloader-icu} %{?xerces_options}
  36. %{__make}
  37. %install
  38. [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
  39. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  40. %clean
  41. [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
  42. %ifnos solaris2.8 solaris2.9 solaris2.10
  43. %post -p /sbin/ldconfig
  44. %endif
  45. %ifnos solaris2.8 solaris2.9 solaris2.10
  46. %postun -p /sbin/ldconfig
  47. %endif
  48. %files
  49. %defattr(755,root,root)
  50. %{_bindir}/*
  51. %{_libdir}/lib%{name}-*.so
  52. %exclude %{_libdir}/lib%{name}.la
  53. %files devel
  54. %defattr(-,root,root)
  55. %{_includedir}/xercesc
  56. %{_libdir}/lib%{name}.so
  57. %{_libdir}/lib%{name}.a
  58. %{_libdir}/pkgconfig/%{name}.pc
  59. %changelog
  60. * Fri Feb 27 2015 Scott Cantor <cantor.2@osu.edu>
  61. - Upped version and avoided ownership of /usr/include
  62. * Fri Mar 7 2008 Boris Kolpackov <boris@codesynthesis.com>
  63. - Integrated updates for 3.0.0 from Scott Cantor.
  64. * Fri Jun 6 2003 Tuan Hoang <tqhoang@bigfoot.com>
  65. - updated for new Xerces-C filename and directory format
  66. - fixed date format in changelog section
  67. * Fri Mar 14 2003 Tinny Ng <tng@ca.ibm.com>
  68. - changed to 2.3
  69. * Wed Dec 18 2002 Albert Strasheim <albert@stonethree.com>
  70. - added symlink to libxerces-c.so in lib directory
  71. * Fri Dec 13 2002 Albert Strasheim <albert@stonethree.com>
  72. - added seperate doc package
  73. - major cleanups
  74. * Tue Sep 03 2002 <thomas@linux.de>
  75. - fixed missing DESTDIR in Makefile.util.submodule
  76. * Mon Sep 02 2002 <thomas@linux.de>
  77. - Initial build.