libxmlb/libxmlb.spec

73 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-12-17 11:35:34 +08:00
Name: libxmlb
2022-07-22 09:41:09 +08:00
Version: 0.3.9
2022-04-15 17:02:38 +08:00
Release: 1
2019-12-17 11:35:34 +08:00
Summary: A library to help create and query binary XML blobs
License: LGPLv2+
URL: https://github.com/hughsie/libxmlb
2022-07-22 09:41:09 +08:00
Source0: https://github.com/hughsie/libxmlb/archive/refs/tags/0.3.9.tar.gz
2019-12-17 11:35:34 +08:00
2022-04-15 17:02:38 +08:00
BuildRequires: glib2-devel >= 2.45.8 gobject-introspection-devel meson libuuid-devel
BuildRequires: gtk-doc libstemmer-devel shared-mime-info xz-devel python3-setuptools
2019-12-17 11:35:34 +08:00
2022-04-15 17:02:38 +08:00
Requires: glib2 >= 2.45.8 shared-mime-info
2019-12-17 11:35:34 +08:00
%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
2022-07-22 09:41:09 +08:00
%{_bindir}/xb-tool
%{_mandir}/man1/xb-tool.1.gz
2019-12-17 11:35:34 +08:00
%{_libdir}/girepository-1.0/*.typelib
2022-04-15 17:02:38 +08:00
%{_libdir}/%{name}.so.2*
2019-12-17 11:35:34 +08:00
%files devel
%{_libdir}/%{name}.so
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/%{name}
2022-04-15 17:02:38 +08:00
%{_includedir}/%{name}-2
2019-12-17 11:35:34 +08:00
%{_libdir}/pkgconfig/*.pc
2022-04-15 17:02:38 +08:00
%{_libexecdir}/*tests/%{name}/*
2019-12-17 11:35:34 +08:00
%{_datadir}/*tests/%{name}
%changelog
2022-07-22 09:41:09 +08:00
* Thu Jul 21 2022 bijie wu <wubijie@kylinos.cn> - 0.3.9-1
- Update to 0.3.9
2022-04-15 17:02:38 +08:00
* Fri Apr 15 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.3.7-1
- Update to 0.3.7
2019-12-17 11:35:34 +08:00
* Mon Nov 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.13-2
- Package init
2022-07-22 09:41:09 +08:00