mxml.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # "$Id: mxml.spec 465 2016-06-12 21:20:41Z msweet $"
  3. #
  4. # RPM "spec" file for Mini-XML, a small XML library.
  5. #
  6. # Copyright 2003-2016 by Michael Sweet.
  7. #
  8. # These coded instructions, statements, and computer programs are the
  9. # property of Michael R Sweet and are protected by Federal copyright
  10. # law. Distribution and use rights are outlined in the file "COPYING"
  11. # which should have been included with this file. If this file is
  12. # missing or damaged, see the license at:
  13. #
  14. # http://www.msweet.org/projects.php/Mini-XML
  15. #
  16. Summary: Miniature XML development library
  17. Name: mxml
  18. Version: 2.10
  19. Release: 1
  20. License: LGPL
  21. Group: Development/Libraries
  22. Source: https://www.msweet.org/files/project3/mxml-%{version}.tar.gz
  23. Url: http://www.msweet.org/projects.php/Mini-XML
  24. Packager: John Doe <johndoe@example.com>
  25. Vendor: Michael R Sweet
  26. # Use buildroot so as not to disturb the version already installed
  27. BuildRoot: /var/tmp/%{name}-root
  28. %description
  29. Mini-XML is a small XML parsing library that you can use to read
  30. XML and XML-like data files in your application without
  31. requiring large non-standard libraries. Mini-XML provides the
  32. following functionality:
  33. - Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded
  34. XML files and strings.
  35. - Data is stored in a linked-list tree structure, preserving
  36. the XML data hierarchy.
  37. - Supports arbitrary element names, attributes, and
  38. attribute values with no preset limits, just available
  39. memory.
  40. - Supports integer, real, opaque ("cdata"), and text data
  41. types in "leaf" nodes.
  42. - Functions for creating and managing trees of data.
  43. - "Find" and "walk" functions for easily locating and
  44. navigating trees of data.
  45. Mini-XML doesn't do validation or other types of processing on
  46. the data based upon schema files or other sources of definition
  47. information, nor does it support character entities other than
  48. those required by the XML specification.
  49. %prep
  50. %setup
  51. %build
  52. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --enable-shared --prefix=/usr
  53. # If we got this far, all prerequisite libraries must be here.
  54. make
  55. %install
  56. # Make sure the RPM_BUILD_ROOT directory exists.
  57. rm -rf $RPM_BUILD_ROOT
  58. make BUILDROOT=$RPM_BUILD_ROOT install
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-,root,root)
  63. %dir /usr/bin
  64. /usr/bin/*
  65. %dir /usr/include
  66. /usr/include/mxml.h
  67. %dir /usr/lib
  68. /usr/lib/*
  69. %dir /usr/lib/pkgconfig
  70. /usr/lib/pkgconfig/mxml.pc
  71. %dir /usr/share/doc/mxml
  72. /usr/share/doc/mxml/*
  73. %dir /usr/share/man/man1
  74. /usr/share/man/man1/*
  75. %dir /usr/share/man/man3
  76. /usr/share/man/man3/*
  77. #
  78. # End of "$Id: mxml.spec 465 2016-06-12 21:20:41Z msweet $".
  79. #