File kiwix-tools.spec of Package kiwix-tools

#
# spec file for package kiwix-tools
#
# Copyright (c) 2021 Samu Voutilainen <kiwix@smar.fi>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:           kiwix-tools
Version:        3.4.0
Release:        0
Summary:        Collection of Kiwix related command line tools
License:        GPL-3.0
Group:          Productivity/Other
Url:            https://github.com/kiwix/kiwix-tools
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  libkiwix-devel
BuildRequires:  libmicrohttpd-devel
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  pkg-config
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Kiwix tools is a collection of Kiwix related command line tools:

* kiwix-manage: Manage XML based library of ZIM files
* kiwix-search: Fulltext search in ZIM files
* kiwix-serve: HTTP daemon serving ZIM files

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%files
%defattr(-,root,root,-)

%{_bindir}/kiwix-manage
%{_bindir}/kiwix-search
%{_bindir}/kiwix-serve

# TODO: these probably need to be localization package.
%{_datadir}/man/fr/man1/kiwix-manage.1%{ext_man}
%{_datadir}/man/fr/man1/kiwix-serve.1%{ext_man}

%{_datadir}/man/man1/kiwix-manage.1%{ext_man}
%{_datadir}/man/man1/kiwix-search.1%{ext_man}
%{_datadir}/man/man1/kiwix-serve.1%{ext_man}

%changelog