File transmission-remote-gtk.spec of Package transmission-remote-gtk

#
# spec file for package transmission-remote-gtk
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define appid   io.github.TransmissionRemoteGtk
Name:           transmission-remote-gtk
Version:        1.6.0
Release:        0
Summary:        Remote control client for Transmission BitTorrent
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Other
URL:            https://github.com/%{name}/%{name}
Source0:        https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:  meson >= 0.59.0
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libproxy-1.0)
BuildRequires:  pkgconfig(appindicator3-0.1)
BuildRequires:  pkgconfig(mrss)
BuildRequires:  pkgconfig(appstream-glib)
BuildRequires:  pkgconfig(libsoup-3.0)
#BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files

%lang_package

%description
transmission-remote-gtk is a GTK application for remote management of the
Transmission BitTorrent client via its RPC interface.

%prep
%setup -q

%build
%meson -Dgeoip=disabled
%meson_build

%install
%meson_install
%find_lang %{name}

%suse_update_desktop_file -i %{appid}

%files
%defattr(-,root,root,-)
%license COPYING
%doc AUTHORS
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}*
%{_datadir}/metainfo/%{appid}.appdata.xml
%{_datadir}/applications/%{appid}.desktop

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by