commit
569600fbf6
BIN
libxmlb-0.1.13.tar.xz
Normal file
BIN
libxmlb-0.1.13.tar.xz
Normal file
Binary file not shown.
64
libxmlb.spec
Normal file
64
libxmlb.spec
Normal file
@ -0,0 +1,64 @@
|
||||
Name: libxmlb
|
||||
Version: 0.1.13
|
||||
Release: 2
|
||||
Summary: A library to help create and query binary XML blobs
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/hughsie/libxmlb
|
||||
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: glib2-devel gobject-introspection-devel meson libuuid-devel
|
||||
BuildRequires: gtk-doc libstemmer-devel shared-mime-info
|
||||
|
||||
Requires: glib2 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
|
||||
%{_libexecdir}/xb-tool
|
||||
%{_libdir}/girepository-1.0/*.typelib
|
||||
%{_libdir}/%{name}.so.1*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/%{name}.so
|
||||
%{_datadir}/gir-1.0/*.gir
|
||||
%{_datadir}/gtk-doc/html/%{name}
|
||||
%{_includedir}/%{name}-1
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_libexecdir}/*tests/%{name}/xb-self-test
|
||||
%{_datadir}/*tests/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Nov 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.13-2
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user