File toxic.spec of Package toxic

#
# spec file for package toxic
#
# 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/
#


Name:           toxic
Version:        0.11.3
Release:        0
Summary:        Console Tox-based instant messenging client
License:        GPL-3.0-only
Group:          Productivity/Networking/Instant Messenger
URL:            https://github.com/Tox/toxic
Source0:        https://github.com/JFreegman/toxic/archive/v%{version}.tar.gz#./%{name}-%{version}.tar.gz
Source1:        https://github.com/JFreegman/toxic/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(freealut)
BuildRequires:  pkgconfig(libconfig)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libqrencode)
BuildRequires:  pkgconfig(libsodium)
BuildRequires:  pkgconfig(ncursesw) >= 6.0
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(opus)
BuildRequires:  pkgconfig(toxcore)
BuildRequires:  pkgconfig(vpx)
BuildRequires:  pkgconfig(x11)

%description
Toxic is a Tox-based instant messenging client which formerly resided in the
Tox core repository, and is now available as a standalone application.

%prep
%setup -q

%build
%make_build \
    USER_CFLAGS="%{optflags}" \
    PREFIX="%{_prefix}"

%install
%make_install PREFIX="%{_prefix}"
%suse_update_desktop_file -G Toxic toxic
%suse_update_desktop_file -r toxic Network InstantMessaging

%files
%doc README.md
%license LICENSE
%{_bindir}/toxic
%{_datadir}/applications/toxic.desktop
%{_mandir}/man1/toxic.1%{?ext_man}
%{_mandir}/man5/toxic.conf.5%{?ext_man}
%dir %{_datadir}/toxic
%{_datadir}/toxic/nameservers
%{_datadir}/toxic/toxic.conf.example
%dir %{_datadir}/toxic/sounds
%{_datadir}/toxic/sounds/*.wav

%changelog
openSUSE Build Service is sponsored by