%global sover 2 Name: toxcore Version: 0.2.7 Release: 2%{?dist} Summary: Peer to peer instant messenger # GPLv3+: main library # BSD: toxencryptsave/crypto_pwhash_scryptsalsa208sha256 # ISC: toxcore/crypto_core_mem.c License: GPLv3+ and BSD and ISC URL: https://github.com/TokTok/c-toxcore Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # https://github.com/TokTok/c-toxcore/issues/1144 Patch0: toxcore-0.2.7-install_libmisc.patch BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: cmake BuildRequires: pkgconfig(libsodium) BuildRequires: pkgconfig(opus) BuildRequires: pkgconfig(vpx) %description Tox is a peer to peer (serverless) instant messenger aimed at making security and privacy easy to obtain for regular users. It uses NaCl for its encryption and authentication. %package devel Summary: Development files for Toxcore Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Tox is a peer to peer (serverless) instant messenger aimed at making security and privacy easy to obtain for regular users. It uses NaCl for its encryption and authentication. This package contains Toxcore development files. %prep %autosetup -p1 -n c-%{name}-%{version} %build mkdir _build cd _build export CFLAGS="%{optflags} -fPIC" export CXXFLAGS="%{optflags} -fPIC" %cmake .. %make_build %install cd _build %make_install rm -f %{buildroot}/%{_libdir}/*.{a,la} %ldconfig_scriptlets %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/DHT_bootstrap %{_libdir}/libtoxcore.so.%{sover} %{_libdir}/libtoxcore.so.%{sover}.* %{_libdir}/libmisc_tools.so %files devel %{_includedir}/tox/ %{_libdir}/libtoxcore.so %{_libdir}/pkgconfig/toxcore.pc %changelog * Fri Aug 31 2018 Robert-André Mauchin - 0.2.7-2 - Add patch to install libmisc_tools needed by DHT_bootstrap * Fri Aug 31 2018 Robert-André Mauchin - 0.2.7-1 - Upstream release 0.2.7 * Tue Jun 26 2018 Robert-André Mauchin - 0.2.3-1 - Upstream release 0.2.3 * Thu Apr 19 2018 Robert-André Mauchin - 0.2.2-2 - Build using cmake * Thu Apr 19 2018 Robert-André Mauchin - 0.2.2-1 - Upstream release 0.2.2 * Wed Jan 10 2018 Robert-André Mauchin - 0.1.11-1 - Upstream release 0.1.11 * Tue Oct 31 2017 Robert-André Mauchin - 0.1.10-2 - Clean-up the SPEC * Thu Oct 12 2017 Robert-André Mauchin - 0.1.10-1 - New upstream release 0.1.10 * Fri Aug 18 2017 Robert-André Mauchin - 0.1.9-2 - Fix Requires dependencies * Sat Jul 29 2017 Robert-André Mauchin - 0.1.9-1 - First RPM release