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 Patch2: %{name}-ucommon.patch
18 URL: http://www.twinklephone.com/
19 BuildRequires: alsa-lib-devel
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: boost-devel >= 1.35.0
23 BuildRequires: ccrtp-devel >= 2.0.0
24 BuildRequires: commoncpp2-devel >= 1.7.1
25 %{?with_kde:BuildRequires: kdelibs-devel}
26 BuildRequires: libgsm-devel >= 1.0.11
27 BuildRequires: libilbc-devel
28 BuildRequires: libmagic-devel
29 BuildRequires: libsndfile-devel
30 BuildRequires: libtool
31 BuildRequires: libxml2-devel
32 BuildRequires: libzrtpcpp-devel >= 1.4.3
33 BuildRequires: pkgconfig
35 BuildRequires: qt-devel >= 6:3.3.0
36 BuildRequires: qt-linguist
37 BuildRequires: readline-devel
38 BuildRequires: speex-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Twinkle is a SIP based soft phone for making telephone calls over IP
45 %description -l pl.UTF-8
46 Twinkle to oparty na SIP programowy telefon do wykonywania połączeń
47 telefonicznych po sieciach IP.
60 export QTDIR=%{_prefix}
62 %if "%{_lib}" == "lib64"
63 --enable-libsuffix=64 \
65 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
66 %{!?with_kde:--without-kde} \
67 --with-qt-libraries=%{_libdir}
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
75 DESTDIR=$RPM_BUILD_ROOT
77 install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog README THANKS
86 %attr(755,root,root) %{_bindir}/*
88 %{_pixmapsdir}/twinkle.png
89 %{_desktopdir}/twinkle.desktop