08a2d87
Name:       utox
e6ce3d0
Version:    0.18.1
53d1ca2
Release:    %autorelease
08a2d87
Summary:    The lightweight Tox client
08a2d87
01d4d06
License:    MIT or GPLv3+
08a2d87
URL:        https://github.com/uTox/uTox/
08a2d87
Source0:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
08a2d87
Source1:    %{name}.appdata.xml
51a380e
# git clone https://github.com/uTox/uTox
51a380e
# cd uTox
e6ce3d0
# git checkout v0.18.1
51a380e
# git submodule init ; git submodule update
ab02007
# tar -zcvf third_party.tar.gz third_party/
ab02007
Source2:    third_party.tar.gz
08a2d87
5eb08e5
# https://github.com/uTox/uTox/issues/1541
5eb08e5
# ExcludeArch:    s390x
5eb08e5
08a2d87
BuildRequires:  gcc-c++
08a2d87
BuildRequires:  cmake
08a2d87
BuildRequires:  desktop-file-utils
08a2d87
BuildRequires:  libappstream-glib
08a2d87
BuildRequires:  pkgconfig(check)
08a2d87
BuildRequires:  pkgconfig(dbus-1)
08a2d87
BuildRequires:  pkgconfig(filteraudio)
08a2d87
BuildRequires:  pkgconfig(freetype2)
08a2d87
BuildRequires:  pkgconfig(gtk+-2.0)
08a2d87
BuildRequires:  pkgconfig(opus)
08a2d87
BuildRequires:  pkgconfig(vpx)
08a2d87
BuildRequires:  pkgconfig(openal)
08a2d87
BuildRequires:  pkgconfig(libv4l2)
08a2d87
BuildRequires:  pkgconfig(xext)
08a2d87
BuildRequires:  pkgconfig(xrender)
08a2d87
BuildRequires:  pkgconfig(libsodium)
51a380e
BuildRequires:  pkgconfig(toxcore)
08a2d87
Requires:       hicolor-icon-theme
08a2d87
08a2d87
%description
08a2d87
%summary
08a2d87
08a2d87
%prep
f443967
%autosetup -p 1 -n uTox-%{version}
51a380e
%autosetup -N -T -D -a 2 -n uTox-%{version}
08a2d87
08a2d87
%build
5eb08e5
# We use CMAKE_BUILD_TYPE="Release" to turn ASAN off
5eb08e5
%cmake -DCMAKE_BUILD_TYPE="Release"
195f0b6
%cmake_build
08a2d87
08a2d87
%install
195f0b6
%cmake_install
08a2d87
install -Dp -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/metainfo/%{name}.appdata.xml
08a2d87
rm -rf %{buildroot}/%{_datadir}/icons/hicolor/14x14
08a2d87
08a2d87
%check
144e63f
# Test "chrono" fails on armv7l
144e63f
%ifnarch %{arm}
195f0b6
%ctest
144e63f
%endif
08a2d87
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
08a2d87
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/%{name}.appdata.xml
08a2d87
08a2d87
%files
08a2d87
%license LICENSE
08a2d87
%doc README.md CHANGELOG.md
08a2d87
%{_bindir}/%{name}
08a2d87
%{_datadir}/metainfo/%{name}.appdata.xml
08a2d87
%{_datadir}/applications/%{name}.desktop
08a2d87
%{_datadir}/icons/hicolor/*/apps/%{name}*
08a2d87
%{_mandir}/man1/%{name}.1*
08a2d87
08a2d87
%changelog
53d1ca2
%autochangelog