]> git.pld-linux.org Git - packages/twinkle.git/blob - twinkle.spec
- fix building with webrtc-libilbc 3.x
[packages/twinkle.git] / twinkle.spec
1 # TODO:
2 # - g729 support: https://github.com/LubosD/twinkle/issues/104
3 #
4 Summary:        twinkle - SIP Soft Phone
5 Summary(pl.UTF-8):      twinkle - telefon programowy SIP
6 Name:           twinkle
7 Version:        1.10.2
8 Release:        2
9 License:        GPL v2
10 Group:          Applications/Communications
11 Source0:        https://github.com/LubosD/twinkle/archive/v%{version}.tar.gz
12 # Source0-md5:  ca6884f9834a25e89fc945b48a91c7a2
13 Patch0:         ilbc.patch
14 Patch1:         webrtc-libilbc3.patch
15 URL:            http://twinkle.dolezel.info/
16 BuildRequires:  Qt5Quick-devel
17 BuildRequires:  Qt5Widgets-devel
18 BuildRequires:  alsa-lib-devel
19 #BuildRequires: bcg729-devel
20 BuildRequires:  bison
21 BuildRequires:  boost-devel >= 1.35.0
22 BuildRequires:  ccrtp-devel >= 2.0.0
23 BuildRequires:  cmake
24 BuildRequires:  flex
25 BuildRequires:  libgsm-devel >= 1.0.11
26 BuildRequires:  libmagic-devel
27 BuildRequires:  libsndfile-devel
28 BuildRequires:  libtool
29 BuildRequires:  libxml2-devel
30 BuildRequires:  libzrtpcpp-devel >= 1.4.3
31 BuildRequires:  pkgconfig
32 BuildRequires:  readline-devel
33 BuildRequires:  speex-devel
34 BuildRequires:  ucommon-devel
35 BuildRequires:  webrtc-libilbc-devel
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 Twinkle is a SIP based soft phone for making telephone calls over IP
40 networks.
41
42 %description -l pl.UTF-8
43 Twinkle to oparty na SIP programowy telefon do wykonywania połączeń
44 telefonicznych po sieciach IP.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49 %patch1 -p1
50
51 %build
52 install -d build
53 cd build
54 %cmake \
55         -DWITH_ALSA=ON \
56         -DWITH_SPEEX=ON \
57         -DWITH_ILBC=ON \
58         -DWITH_ZRTP=ON \
59         -DWITH_G729=OFF \
60         -DWITH_QT5=ON \
61         -DWITH_DIAMONDCARD=OFF \
62         ..
63
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
69
70 %{__make} -C build install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc AUTHORS README.md THANKS
79 %attr(755,root,root) %{_bindir}/twinkle
80 %attr(755,root,root) %{_bindir}/twinkle-console
81 %{_datadir}/twinkle
82 %{_pixmapsdir}/twinkle.png
83 %{_desktopdir}/twinkle.desktop
84 %{_iconsdir}/*/*/apps/twinkle.png
85 %{_iconsdir}/*/*/apps/twinkle.svg
86 %{_mandir}/man1/twinkle.1*
This page took 0.053763 seconds and 3 git commands to generate.