forked from TokTok/c-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.spec.in
67 lines (49 loc) · 1.47 KB
/
tox.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Name: @PACKAGE_NAME@
Version: @VERSION@
Release: 1%{?dist}
Summary: All-in-one secure communication platform
License: GPLv3
URL: https://github.com/irungentoo/toxcore
Source0: https://github.com/irungentoo/toxcore/releases/tox-%{version}.tar.gz
BuildRequires: autoconf automake libtool libvpx-devel opus-devel
BuildRequires: libsodium-devel libconfig-devel
%description
With the rise of governmental monitoring programs, Tox, a FOSS initiative, aims to be an easy to use, all-in-one communication platform that ensures their users full privacy and secure message delivery.
%package devel
Summary: Development files for @PACKAGE_NAME@
Requires: %{name} = %{version}-%{release}
%description devel
Development package for @PACKAGE_NAME@
%prep
%setup -q
%build
%configure \
--enable-shared \
--disable-static \
--enable-av \
--disable-ntox \
--disable-daemon \
--disable-testing
make %{?_smp_mflags}
%install
%make_install
# remove la files
find %{buildroot} -name '*.la' -delete -print
# not handling DHT_bootstrap yet
rm -f %{buildroot}%{_bindir}/DHT_bootstrap
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING README.md
%{_libdir}/libtox*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/tox/
%{_libdir}/libtox*.so
%{_libdir}/pkgconfig/libtox*.pc
%changelog
* Tue Mar 3 2015 Sergey 'Jin' Bostandzhyan <[email protected]> - 0.0.0-1
- initial package