File tox-git.spec of Package tox-git
#
# spec file for package tox
#
# Copyright (c) 2013 Markus Kolb, Innsbruck, Austria.
#
# 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/
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
%define realname ProjectTox-Core
Name: tox-git
Version: 0.0.1
Release: 0
Summary: Secure decentralized instant messaging application
License: GPL-3.0
Group: Productivity/Networking/Instant Messenger
Url: http://tox.im/
Source0: %{realname}-%{version}.tar.xz
#Patch0: msi.c_no-return-in-nonvoid-function.patch
Provides: libtox = %{version}
BuildRequires: cmake gcc-c++ libconfig-devel libsodium-devel ncurses-devel libopus-devel libvpx-devel openal-soft-devel
BuildRequires: libtool autoconf automake check check-devel pkg-config
%description
Project Tox, also known as Tox, is a FOSS instant messaging
application aimed to replace Skype.
With the rise of governmental monitoring programs,
Tox aims to be an easy to use application that allows
people to connect with friends and loved ones without
the worry of privacy.
%package devel
Group: Development/Libraries
Summary: Development files for %{realname}
Requires: %{name} = %{version}
Provides: libtox-devel = %{version}
%description devel
Development libraries and headers needed to build software using %{realname}
%prep
%setup -q -n %{realname}-%{version}
#%patch0 -p1
%build
autoreconf -i
# working around missing linking flag
export LIBS="${LIBS} -lm"
%configure --disable-static
make %{?_smp_mflags}
%install
%if 0%{?suse_version}
%makeinstall
%else
make install DESTDIR=%{buildroot}
%endif
# getting rid of .la-files for good
find %{buildroot}/usr -name "*.la" -exec rm -v "{}" \;
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING README.md
%{_bindir}/*
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/tox
%{_includedir}/tox/*
%changelog