3 %bcond_without kde # disable KDE support
5 Summary: twinkle - SIP Soft Phone
6 Summary(pl): twinkle - telefon programowy SIP
11 Group: Applications/Communications
12 Source0: http://www.xs4all.nl/~mfnboer/twinkle/download/%{name}-%{version}.tar.gz
13 # Source0-md5: 5f6b909cde026182750119bf8c0bed33
14 Source1: %{name}.desktop
15 Patch0: %{name}-gcc4.patch
16 Patch1: %{name}-gsm.patch
17 Patch2: %{name}-from-mainwindow.patch
18 URL: http://www.twinklephone.com/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: alsa-lib-devel
22 BuildRequires: commoncpp2-devel >= 1.3.0
23 BuildRequires: ccrtp-devel >= 1.3.4
24 %{?with_kde:BuildRequires: kdelibs-devel}
25 BuildRequires: libtool
26 BuildRequires: libgsm-devel >= 1.0.11
27 BuildRequires: libsndfile-devel
28 BuildRequires: pkgconfig
30 BuildRequires: qt-devel >= 6:3.3.0
31 BuildRequires: speex-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Twinkle is a SIP based soft phone for making telephone calls over IP
39 Twinkle to oparty na SIP programowy telefon do wykonywania po³±czeñ
40 telefonicznych po sieciach IP.
53 export QTDIR=%{_prefix}
55 %if "%{_lib}" == "lib64"
56 --enable-libsuffix=64 \
58 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
59 %{!?with_kde:--without-kde} \
60 --with-qt-libraries=%{_libdir}
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
68 DESTDIR=$RPM_BUILD_ROOT
70 install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc AUTHORS ChangeLog README THANKS
79 %attr(755,root,root) %{_bindir}/*
81 %{_pixmapsdir}/twinkle.png
82 %{_desktopdir}/twinkle.desktop