3 %bcond_with 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: d70c8972f296ffd998c7fb698774705b
14 Source1: %{name}.desktop
15 Patch0: %{name}-nobind.patch
16 Patch1: %{name}-build.patch
17 URL: http://www.twinklephone.com/
18 BuildRequires: alsa-lib-devel
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: boost-devel >= 1.35.0
22 BuildRequires: ccrtp-devel >= 1.7.1
23 BuildRequires: commoncpp2-devel >= 1.7.1
24 %{?with_kde:BuildRequires: kdelibs-devel}
25 BuildRequires: libgsm-devel >= 1.0.11
26 BuildRequires: libilbc-devel
27 BuildRequires: libmagic-devel
28 BuildRequires: libsndfile-devel
29 BuildRequires: libtool
30 BuildRequires: libxml2-devel
31 BuildRequires: libzrtpcpp-devel >= 1.4.3
32 BuildRequires: pkgconfig
34 BuildRequires: qt-devel >= 6:3.3.0
35 BuildRequires: qt-linguist
36 BuildRequires: readline-devel
37 BuildRequires: speex-devel
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Twinkle is a SIP based soft phone for making telephone calls over IP
44 %description -l pl.UTF-8
45 Twinkle to oparty na SIP programowy telefon do wykonywania połączeń
46 telefonicznych po sieciach IP.
58 export QTDIR=%{_prefix}
60 %if "%{_lib}" == "lib64"
61 --enable-libsuffix=64 \
63 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
64 %{!?with_kde:--without-kde} \
65 --with-qt-libraries=%{_libdir}
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
73 DESTDIR=$RPM_BUILD_ROOT
75 install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
76 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog README THANKS
84 %attr(755,root,root) %{_bindir}/*
86 %{_pixmapsdir}/twinkle.png
87 %{_desktopdir}/twinkle.desktop