Name: utox Version: 0.17.0 Release: 3%{?dist} Summary: The lightweight Tox client License: MIT or GPLv3+ URL: https://github.com/uTox/uTox/ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}.appdata.xml # git clone https://github.com/uTox/uTox # cd uTox # git checkout v0.17.0 # git submodule init ; git submodule update # tar -zcvf third-party.tar.gz third-party/ Source2: third-party.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake3 BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: pkgconfig(check) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(filteraudio) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(opus) BuildRequires: pkgconfig(vpx) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(libv4l2) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(libsodium) BuildRequires: pkgconfig(toxcore) Requires: hicolor-icon-theme %description %summary %prep %autosetup -n uTox-%{version} %autosetup -N -T -D -a 2 -n uTox-%{version} %build mkdir build cd build %cmake3 .. %make_build %install pushd build %make_install popd install -Dp -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/metainfo/%{name}.appdata.xml rm -rf %{buildroot}/%{_datadir}/icons/hicolor/14x14 %check ctest3 -V %{?_smp_mflags} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/%{name}.appdata.xml %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/%{name} %{_datadir}/metainfo/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}* %{_mandir}/man1/%{name}.1* %changelog * Sat Jul 14 2018 Fedora Release Engineering - 0.17.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 26 2018 Robert-André Mauchin - 0.17.0-2 - Rebuilt for toxcore soname bump * Thu Apr 19 2018 Robert-André Mauchin - 0.17.0-1 - Upstream release 0.17.0 * Fri Feb 09 2018 Fedora Release Engineering - 0.16.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 28 2018 Robert-André Mauchin 0.16.1-5 - actually rebuild for new libvpx * Fri Jan 26 2018 Tom Callaway - 0.16.1-4 - rebuild for new libvpx * Thu Jan 18 2018 Igor Gnatenko - 0.16.1-3 - Remove obsolete scriptlets * Tue Oct 31 2017 Robert-André Mauchin 0.16.1-2 - Clean-up the SPEC * Thu Oct 12 2017 Robert-André Mauchin 0.16.1-1 - New upstream release 0.16.1 * Fri Aug 18 2017 Robert-André Mauchin 0.15.0-2 - Added appdata.xml - Fixed Requires dependencies * Sat Jul 29 2017 Robert-André Mauchin 0.15.0-1 - First RPM release