Blame SPECS/libxmlb.spec

122f5f
%global glib2_version 2.45.8
122f5f
122f5f
Summary:   Library for querying compressed XML metadata
122f5f
Name:      libxmlb
122f5f
Version:   0.1.15
122f5f
Release:   1%{?dist}
122f5f
License:   LGPLv2+
122f5f
URL:       https://github.com/hughsie/libxmlb
122f5f
Source0:   http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
122f5f
122f5f
BuildRequires: glib2-devel >= %{glib2_version}
122f5f
BuildRequires: gtk-doc
122f5f
BuildRequires: libstemmer-devel
122f5f
BuildRequires: meson
122f5f
BuildRequires: gobject-introspection-devel
122f5f
BuildRequires: python3-setuptools
122f5f
122f5f
# needed for the self tests
122f5f
BuildRequires: shared-mime-info
122f5f
122f5f
Requires: glib2%{?_isa} >= %{glib2_version}
122f5f
Requires: shared-mime-info
122f5f
122f5f
%description
122f5f
XML is slow to parse and strings inside the document cannot be memory mapped as
122f5f
they do not have a trailing NUL char. The libxmlb library takes XML source, and
122f5f
converts it to a structured binary representation with a deduplicated string
122f5f
table -- where the strings have the NULs included.
122f5f
122f5f
This allows an application to mmap the binary XML file, do an XPath query and
122f5f
return some strings without actually parsing the entire document. This is all
122f5f
done using (almost) zero allocations and no actual copying of the binary data.
122f5f
122f5f
%package devel
122f5f
Summary: Development package for %{name}
122f5f
Requires: %{name}%{?_isa} = %{version}-%{release}
122f5f
122f5f
%description devel
122f5f
Files for development with %{name}.
122f5f
122f5f
%package tests
122f5f
Summary: Files for installed tests
122f5f
122f5f
%description tests
122f5f
Executable and data files for installed tests.
122f5f
122f5f
%prep
122f5f
%setup -q
122f5f
122f5f
%build
122f5f
122f5f
%meson \
122f5f
    -Dgtkdoc=true \
122f5f
    -Dtests=true
122f5f
122f5f
%meson_build
122f5f
122f5f
%check
122f5f
%meson_test
122f5f
122f5f
%install
122f5f
%meson_install
122f5f
122f5f
%files
122f5f
%doc README.md
122f5f
%license LICENSE
122f5f
%{_libexecdir}/xb-tool
122f5f
%dir %{_libdir}/girepository-1.0
122f5f
%{_libdir}/girepository-1.0/*.typelib
122f5f
%{_libdir}/libxmlb.so.1*
122f5f
122f5f
%files devel
122f5f
%dir %{_datadir}/gir-1.0
122f5f
%{_datadir}/gir-1.0/*.gir
122f5f
%dir %{_datadir}/gtk-doc
122f5f
%dir %{_datadir}/gtk-doc/html
122f5f
%{_datadir}/gtk-doc/html/libxmlb
122f5f
%{_includedir}/libxmlb-1
122f5f
%{_libdir}/libxmlb.so
122f5f
%{_libdir}/pkgconfig/xmlb.pc
122f5f
122f5f
%files tests
122f5f
%{_libexecdir}/installed-tests/libxmlb/xb-self-test
122f5f
%{_datadir}/installed-tests/libxmlb/libxmlb.test
122f5f
%{_datadir}/installed-tests/libxmlb/test.xml.gz.gz.gz
122f5f
%dir %{_datadir}/installed-tests/libxmlb
122f5f
122f5f
%changelog
122f5f
* Wed Mar 11 2020 Richard Hughes <richard@hughsie.com> 0.1.15-1
122f5f
- Initial release for RHEL