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