libxmlb-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. %global glib2_version 2.45.8
  2. Summary: Library for querying compressed XML metadata
  3. Name: libxmlb
  4. Version: 0.1.15
  5. Release: 3%{?_dist_release}
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: LGPLv2+
  9. URL: https://github.com/hughsie/libxmlb
  10. Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
  11. BuildRequires: glib2-devel >= %{glib2_version}
  12. BuildRequires: gtk-doc
  13. #BuildRequires: libstemmer-devel
  14. BuildRequires: meson
  15. BuildRequires: gobject-introspection-devel
  16. BuildRequires: python3-setuptools
  17. # needed for the self tests
  18. BuildRequires: shared-mime-info
  19. Requires: glib2%{?_isa} >= %{glib2_version}
  20. Requires: shared-mime-info
  21. %description
  22. XML is slow to parse and strings inside the document cannot be memory mapped as
  23. they do not have a trailing NUL char. The libxmlb library takes XML source, and
  24. converts it to a structured binary representation with a deduplicated string
  25. table -- where the strings have the NULs included.
  26. This allows an application to mmap the binary XML file, do an XPath query and
  27. return some strings without actually parsing the entire document. This is all
  28. done using (almost) zero allocations and no actual copying of the binary data.
  29. %package devel
  30. Summary: Development package for %{name}
  31. Requires: %{name}%{?_isa} = %{version}-%{release}
  32. %description devel
  33. Files for development with %{name}.
  34. %prep
  35. %setup -q
  36. %build
  37. %meson \
  38. -Dstemmer=false \
  39. -Dgtkdoc=true \
  40. -Dtests=true
  41. %meson_build
  42. %check
  43. %meson_test
  44. %install
  45. %meson_install
  46. rm -rf %{buildroot}%{_libexecdir}/installed-tests
  47. rm -rf %{buildroot}%{_datadir}/installed-tests
  48. %files
  49. %doc README.md
  50. %license LICENSE
  51. %{_libexecdir}/xb-tool
  52. %dir %{_libdir}/girepository-1.0
  53. %{_libdir}/girepository-1.0/*.typelib
  54. %{_libdir}/libxmlb.so.1*
  55. %files devel
  56. %dir %{_datadir}/gir-1.0
  57. %{_datadir}/gir-1.0/*.gir
  58. %dir %{_datadir}/gtk-doc
  59. %dir %{_datadir}/gtk-doc/html
  60. %{_datadir}/gtk-doc/html/libxmlb
  61. %{_includedir}/libxmlb-1
  62. %{_libdir}/libxmlb.so
  63. %{_libdir}/pkgconfig/xmlb.pc
  64. %changelog
  65. * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.1.15-3
  66. - initial build for Vine Linux.
  67. * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.15-2
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
  69. * Wed Mar 04 2020 Richard Hughes <richard@hughsie.com> 0.1.15-1
  70. - New upstream release
  71. - Add xb_builder_source_add_simple_adapter()
  72. - Allow reversing the query results
  73. * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.14-2
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  75. * Mon Jan 06 2020 Richard Hughes <richard@hughsie.com> 0.1.14-1
  76. - New upstream release
  77. - Do not use libuuid
  78. - Ignore adaptors added with xb_builder_source_add_converter()
  79. * Thu Oct 17 2019 Richard Hughes <richard@hughsie.com> 0.1.13-1
  80. - New upstream release
  81. - Export xb_silo_query_full()
  82. - Show the XPath that was used in the query in the error message
  83. * Fri Sep 27 2019 Richard Hughes <richard@hughsie.com> 0.1.12-1
  84. - New upstream release
  85. - Add xb_node_transmogrify to allow changing XML format
  86. - Do not escape a single quote with &apos;
  87. - Don't invalidate the silo for a GIO temp file
  88. - Fix up two memory leaks if using libxmlb from an introspected binding
  89. * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.11-2
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  91. * Mon Jul 15 2019 Richard Hughes <richard@hughsie.com> 0.1.11-1
  92. - New upstream release
  93. - Add xb_node_query_first_full() API
  94. - Rebuild the XbMachine parser to support 'and' and 'or' predicates
  95. * Thu May 16 2019 Richard Hughes <richard@hughsie.com> 0.1.10-1
  96. - New upstream release
  97. - Do not mistake gzipped files as being application/x-zerosize content type
  98. - Fix running the installed tests with no checkout directory
  99. * Tue May 07 2019 Richard Hughes <richard@hughsie.com> 0.1.9-1
  100. - New upstream release
  101. - Correctly implement building a silo with _SINGLE_LANG set
  102. * Tue Apr 16 2019 Adam Williamson <awilliam@redhat.com> - 0.1.8-2
  103. - Rebuild with Meson fix for #1699099
  104. * Tue Mar 26 2019 Richard Hughes <richard@hughsie.com> 0.1.8-1
  105. - New upstream release
  106. - Add some installed tests
  107. - Always add all children when importing parent-less XML data
  108. * Fri Mar 08 2019 Richard Hughes <richard@hughsie.com> 0.1.7-1
  109. - New upstream release
  110. - Add XB_BUILDER_COMPILE_FLAG_IGNORE_GUID
  111. - Allow nesting XbBuilderSource content type handlers
  112. * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-2
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  114. * Sun Dec 30 2018 Richard Hughes <richard@hughsie.com> 0.1.6-1
  115. - New upstream release
  116. - Allow controlling how the XbQuery is parsed
  117. * Wed Nov 21 2018 Richard Hughes <richard@hughsie.com> 0.1.5-1
  118. - New upstream release
  119. - Add xb_builder_node_export() for gnome-software
  120. - Ignore calls to xb_silo_query_build_index() with no results
  121. - Lazy load the stemmer when required
  122. * Fri Nov 09 2018 Richard Hughes <richard@hughsie.com> 0.1.4-1
  123. - New upstream release
  124. - Add support for bound variables and indexed strings
  125. - Optionally optimize predicates
  126. - Use INTE:INTE for comparison where available
  127. * Mon Oct 22 2018 Richard Hughes <richard@hughsie.com> 0.1.3-1
  128. - New upstream release
  129. - Add more API for fwupd and gnome-software
  130. - Switch from GPtrArray to XbStack for performance reasons
  131. * Tue Oct 16 2018 Richard Hughes <richard@hughsie.com> 0.1.2-1
  132. - New upstream release
  133. - Add more API for fwupd and gnome-software
  134. - Fix a crash when using xb_builder_node_set_text() in a fixup
  135. - Only run the XbBuilderSourceConverterFunc if the silo needs rebuilding
  136. - Return an error when the XPath predicate has invalid syntax
  137. * Thu Oct 11 2018 Richard Hughes <richard@hughsie.com> 0.1.1-1
  138. - New upstream release
  139. - Add support for more XPath funtions
  140. - Add new API required for gnome-software and fwupd
  141. * Thu Oct 04 2018 Richard Hughes <richard@hughsie.com> 0.1.0-1
  142. - Initial release for Fedora package review