]>
Commit | Line | Data |
---|---|---|
af377a36 | 1 | # TODO: |
f390d5ce | 2 | # - g729 support: https://github.com/LubosD/twinkle/issues/104 |
cf18f140 AM |
3 | # |
4 | Summary: twinkle - SIP Soft Phone | |
5 | Summary(pl.UTF-8): twinkle - telefon programowy SIP | |
6 | Name: twinkle | |
af377a36 | 7 | Version: 1.10.2 |
6e0a5621 | 8 | Release: 2 |
cf18f140 AM |
9 | License: GPL v2 |
10 | Group: Applications/Communications | |
af377a36 AM |
11 | Source0: https://github.com/LubosD/twinkle/archive/v%{version}.tar.gz |
12 | # Source0-md5: ca6884f9834a25e89fc945b48a91c7a2 | |
f390d5ce | 13 | Patch0: ilbc.patch |
6e0a5621 | 14 | Patch1: webrtc-libilbc3.patch |
af377a36 AM |
15 | URL: http://twinkle.dolezel.info/ |
16 | BuildRequires: Qt5Quick-devel | |
17 | BuildRequires: Qt5Widgets-devel | |
cf18f140 | 18 | BuildRequires: alsa-lib-devel |
af377a36 AM |
19 | #BuildRequires: bcg729-devel |
20 | BuildRequires: bison | |
cf18f140 AM |
21 | BuildRequires: boost-devel >= 1.35.0 |
22 | BuildRequires: ccrtp-devel >= 2.0.0 | |
af377a36 AM |
23 | BuildRequires: cmake |
24 | BuildRequires: flex | |
cf18f140 | 25 | BuildRequires: libgsm-devel >= 1.0.11 |
cf18f140 AM |
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 | |
cf18f140 AM |
32 | BuildRequires: readline-devel |
33 | BuildRequires: speex-devel | |
af377a36 | 34 | BuildRequires: ucommon-devel |
f390d5ce | 35 | BuildRequires: webrtc-libilbc-devel |
cf18f140 AM |
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 | |
f390d5ce | 48 | %patch0 -p1 |
6e0a5621 | 49 | %patch1 -p1 |
cf18f140 AM |
50 | |
51 | %build | |
af377a36 AM |
52 | install -d build |
53 | cd build | |
54 | %cmake \ | |
55 | -DWITH_ALSA=ON \ | |
56 | -DWITH_SPEEX=ON \ | |
f390d5ce | 57 | -DWITH_ILBC=ON \ |
af377a36 AM |
58 | -DWITH_ZRTP=ON \ |
59 | -DWITH_G729=OFF \ | |
60 | -DWITH_QT5=ON \ | |
61 | -DWITH_DIAMONDCARD=OFF \ | |
62 | .. | |
63 | ||
cf18f140 AM |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} | |
69 | ||
af377a36 | 70 | %{__make} -C build install \ |
cf18f140 AM |
71 | DESTDIR=$RPM_BUILD_ROOT |
72 | ||
cf18f140 AM |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
af377a36 AM |
78 | %doc AUTHORS README.md THANKS |
79 | %attr(755,root,root) %{_bindir}/twinkle | |
80 | %attr(755,root,root) %{_bindir}/twinkle-console | |
cf18f140 AM |
81 | %{_datadir}/twinkle |
82 | %{_pixmapsdir}/twinkle.png | |
83 | %{_desktopdir}/twinkle.desktop | |
af377a36 AM |
84 | %{_iconsdir}/*/*/apps/twinkle.png |
85 | %{_iconsdir}/*/*/apps/twinkle.svg | |
86 | %{_mandir}/man1/twinkle.1* |