Blame SPECS/libxmlb.spec

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