Blame SPECS/libxmlb.spec

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