File revolt.spec of Package revolt
#
# spec file for package revolt
#
# Copyright (c) 2018 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/
#
Name: revolt
%define _title org.perezdecastro.Revolt
Version: 0.0+git.20180319
Release: 0
Summary: GTK+ and Electron client for Matrix protocol
License: GPL-3.0-or-later
Group: Productivity/Networking/Instant Messenger
Url: https://github.com/aperezdc/revolt
Source0: %{name}-%{version}.tar.xz
BuildRequires: gobject-introspection
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: glib2-devel
BuildRequires: gtk3-tools
BuildRequires: python3
BuildRequires: hicolor-icon-theme
Requires: python3-gobject-Gdk gobject-introspection
BuildArch: noarch
%description
Revolt is a small application which wraps Riot to provide better integration with desktop environments in general, and GNOME.
%prep
%setup -q
%build
%configure
make
%install
%make_install %{buildroot}
%suse_update_desktop_file -r %{_title} "Network;InstantMessaging;"
rm -r %{buildroot}/usr/share/icons/hicolor/16x16@2x/apps
rm -r %{buildroot}/usr/share/icons/hicolor/24x24@2x/apps
rm -r %{buildroot}/usr/share/revolt/py/revolt/__pycache__
%files
%{_datadir}/%{name}/
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{_title}.appdata.xml
%{_datadir}/applications/%{_title}.desktop
%{_datadir}/glib-2.0/schemas/%{_title}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/status/*
%{_bindir}/%{name}
%changelog