3 %bcond_without kde # disable KDE support
5 Summary: twinkle - SIP Soft Phone
6 Summary(pl.UTF-8): twinkle - telefon programowy SIP
11 Group: Applications/Communications
12 Source0: http://www.xs4all.nl/~mfnboer/twinkle/download/%{name}-%{version}.tar.gz
13 # Source0-md5: 40f8341a4a82c06d00bd1b326d9c6bbf
14 Source1: %{name}.desktop
15 Patch0: %{name}-gsm.patch
16 Patch1: %{name}-nobind.patch
17 URL: http://www.twinklephone.com/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: alsa-lib-devel
21 BuildRequires: boost-regex-devel
22 BuildRequires: commoncpp2-devel >= 1.5.0
23 BuildRequires: ccrtp-devel >= 1.5.0
24 %{?with_kde:BuildRequires: kdelibs-devel}
25 BuildRequires: libtool
26 BuildRequires: libgsm-devel >= 1.0.11
27 BuildRequires: libilbc-devel
28 BuildRequires: libsndfile-devel
29 BuildRequires: libzrtpcpp-devel
30 BuildRequires: pkgconfig
32 BuildRequires: qt-devel >= 6:3.3.0
33 BuildRequires: qt-linguist
34 BuildRequires: speex-devel
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Twinkle is a SIP based soft phone for making telephone calls over IP
41 %description -l pl.UTF-8
42 Twinkle to oparty na SIP programowy telefon do wykonywania połączeń
43 telefonicznych po sieciach IP.
55 export QTDIR=%{_prefix}
57 %if "%{_lib}" == "lib64"
58 --enable-libsuffix=64 \
60 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
61 %{!?with_kde:--without-kde} \
62 --with-qt-libraries=%{_libdir}
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
70 DESTDIR=$RPM_BUILD_ROOT
72 install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
73 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog README THANKS
81 %attr(755,root,root) %{_bindir}/*
83 %{_pixmapsdir}/twinkle.png
84 %{_desktopdir}/twinkle.desktop