summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac3
-rw-r--r--tox.spec.in67
4 files changed, 74 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 4397a1c1..4d92363b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,3 +71,6 @@ toxcore-android-*
71 71
72# cscope files list 72# cscope files list
73cscope.files 73cscope.files
74
75# rpm
76tox.spec
diff --git a/Makefile.am b/Makefile.am
index 6b28280e..995620ef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,9 @@ CLEANFILES = $(top_builddir)/libtoxcore.pc
11 11
12 12
13EXTRA_DIST = \ 13EXTRA_DIST = \
14 README.md \
14 libtoxcore.pc.in \ 15 libtoxcore.pc.in \
16 tox.spec \
15 dist-build/android-arm.sh \ 17 dist-build/android-arm.sh \
16 dist-build/android-armv7.sh \ 18 dist-build/android-armv7.sh \
17 dist-build/android-x86.sh \ 19 dist-build/android-x86.sh \
diff --git a/configure.ac b/configure.ac
index 3a45b35d..e43e8f78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_INIT([tox], [0.0.0], [https://tox.im])
6AC_CONFIG_AUX_DIR(configure_aux) 6AC_CONFIG_AUX_DIR(configure_aux)
7AC_CONFIG_SRCDIR([toxcore/net_crypto.c]) 7AC_CONFIG_SRCDIR([toxcore/net_crypto.c])
8AC_CONFIG_HEADERS([config.h]) 8AC_CONFIG_HEADERS([config.h])
9AM_INIT_AUTOMAKE([1.10 -Wall subdir-objects]) 9AM_INIT_AUTOMAKE([1.10 -Wall subdir-objects tar-ustar])
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11AC_CONFIG_MACRO_DIR([m4]) 11AC_CONFIG_MACRO_DIR([m4])
12 12
@@ -693,6 +693,7 @@ AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
693AC_CONFIG_FILES([Makefile 693AC_CONFIG_FILES([Makefile
694 build/Makefile 694 build/Makefile
695 libtoxcore.pc 695 libtoxcore.pc
696 tox.spec
696 ]) 697 ])
697 698
698AM_COND_IF(BUILD_AV, 699AM_COND_IF(BUILD_AV,
diff --git a/tox.spec.in b/tox.spec.in
new file mode 100644
index 00000000..f6136dc7
--- /dev/null
+++ b/tox.spec.in
@@ -0,0 +1,67 @@
1Name: @PACKAGE_NAME@
2Version: @VERSION@
3Release: 1%{?dist}
4Summary: All-in-one secure communication platform
5
6License: GPLv3
7URL: https://github.com/irungentoo/toxcore
8Source0: https://github.com/irungentoo/toxcore/releases/tox-%{version}.tar.gz
9
10BuildRequires: autoconf automake libtool libvpx-devel opus-devel
11BuildRequires: libsodium-devel libconfig-devel
12
13%description
14With 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.
15
16%package devel
17Summary: Development files for @PACKAGE_NAME@
18Requires: %{name} = %{version}-%{release}
19
20%description devel
21Development package for @PACKAGE_NAME@
22
23%prep
24%setup -q
25
26
27%build
28%configure \
29 --enable-shared \
30 --disable-static \
31 --enable-av \
32 --disable-ntox \
33 --disable-daemon \
34 --disable-testing
35
36make %{?_smp_mflags}
37
38
39%install
40%make_install
41
42# remove la files
43find %{buildroot} -name '*.la' -delete -print
44
45# not handling DHT_bootstrap yet
46rm -f %{buildroot}%{_bindir}/DHT_bootstrap
47
48%post
49/sbin/ldconfig
50
51%postun
52/sbin/ldconfig
53
54%files
55%defattr(-,root,root)
56%doc COPYING README.md
57%{_libdir}/libtox*.so.*
58
59%files devel
60%defattr(-, root, root)
61%{_includedir}/tox/
62%{_libdir}/libtox*.so
63%{_libdir}/pkgconfig/libtox*.pc
64
65%changelog
66* Tue Mar 3 2015 Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc> - 0.0.0-1
67- initial package