File fsearch.spec of Package fsearch

#
# spec file for package fsearch
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

%define id_name io.github.cboxdoerfer.FSearch

Name:           fsearch
Version:        0.2.2
Release:        0
Summary:        Fast file search utility inspired by Everything Search Engine
License:        GPL-2.0-or-later
Group:          Productivity/File utilities
Url:            https://github.com/cboxdoerfer/fsearch      
Source0:        %{name}-%{version}.tar.xz

BuildRequires:  libicu-devel pcre2-devel meson libtool glib2-devel intltool autoconf-archive gtk3-devel

%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
Requires:       gtk3

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
FSearch is a fast file search utility for GNU/Linux operating systems, inspired
by Everything Search Engine. It's written in C and based on GTK+3.

%lang_package

%prep
%setup -q

%build
export LDFLAGS="%{?__global_ldflags} -pthread"
%meson -Dchannel=OBS-rpm-stable
%meson_build

%install
%meson_install
%find_lang %{name}
%suse_update_desktop_file -r %{id_name} %{id_name} System Filesystem

%files
%license License
%doc NEWS README.md
%{_bindir}/fsearch
%{_datadir}/applications/%{id_name}.desktop
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/icons/hicolor/scalable/apps/%{id_name}.svg
%{_datadir}/metainfo/%{id_name}.appdata.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by