Compare commits
10 Commits
28383d05df
...
1f0bf5040a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f0bf5040a | ||
|
|
bf76f3ad67 | ||
|
|
6bafa76171 | ||
|
|
43ceba8ba5 | ||
|
|
1179ee5690 | ||
|
|
c655525790 | ||
|
|
3d619ef2e5 | ||
|
|
285e2c1250 | ||
|
|
569600fbf6 | ||
|
|
d7b50fb7e8 |
BIN
libxmlb-0.3.14.tar.xz
Normal file
BIN
libxmlb-0.3.14.tar.xz
Normal file
Binary file not shown.
76
libxmlb.spec
Normal file
76
libxmlb.spec
Normal file
@ -0,0 +1,76 @@
|
||||
Name: libxmlb
|
||||
Version: 0.3.14
|
||||
Release: 1
|
||||
Summary: A library to help create and query binary XML blobs
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/hughsie/libxmlb
|
||||
Source0: https://github.com/hughsie/libxmlb/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: glib2-devel >= 2.45.8 gobject-introspection-devel meson libuuid-devel
|
||||
BuildRequires: gtk-doc libstemmer-devel shared-mime-info xz-devel python3-setuptools
|
||||
BuildRequires: libzstd-devel
|
||||
|
||||
Requires: glib2 >= 2.45.8 shared-mime-info
|
||||
|
||||
%description
|
||||
XML is slow to parse and strings inside the document cannot be memory mapped as they do not have
|
||||
a trailing NUL char. The libxmlb library takes XML source, and converts it to a structured binary
|
||||
representation with a deduplicated string table -- where the strings have the NULs included.
|
||||
|
||||
This allows an application to mmap the binary XML file, do an XPath query and return some strings
|
||||
without actually parsing the entire document. This is all done using (almost) zero allocations and
|
||||
no actual copying of the binary data.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Provides: libxmlb-tests
|
||||
Obsoletes: libxmlb-tests
|
||||
|
||||
%description devel
|
||||
This package contains the development files for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%meson -Dtests=true -Dgtkdoc=true
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%check
|
||||
%meson_test
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/xb-tool
|
||||
%{_mandir}/man1/xb-tool.1.gz
|
||||
%{_libdir}/girepository-1.0/*.typelib
|
||||
%{_libdir}/%{name}.so.2*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/%{name}.so
|
||||
%{_datadir}/gir-1.0/*.gir
|
||||
%{_datadir}/gtk-doc/html/%{name}
|
||||
%{_includedir}/%{name}-2
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libexecdir}/*tests/%{name}/*
|
||||
%{_datadir}/*tests/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Oct 16 2023 chenyaqiang <chenyaqiang@huawei.com> - 0.3.14-1
|
||||
- Upgrade to 0.3.14
|
||||
|
||||
* Thu Jul 21 2022 bijie wu <wubijie@kylinos.cn> - 0.3.9-1
|
||||
- Update to 0.3.9
|
||||
|
||||
* Fri Apr 15 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.3.7-1
|
||||
- Update to 0.3.7
|
||||
|
||||
* Mon Nov 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.13-2
|
||||
- Package init
|
||||
|
||||
4
libxmlb.yaml
Normal file
4
libxmlb.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: hughsie/libxmlb
|
||||
tag_prefix: ^
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user