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: 390c9f94a519fa58575c1752d7559a89
14 Source1: %{name}.desktop
15 Patch0: %{name}-gcc4.patch
16 Patch1: %{name}-gsm.patch
17 Patch2: %{name}-from-mainwindow.patch
18 Patch3: %{name}-userprofileform_map.patch
19 URL: http://www.twinklephone.com/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: alsa-lib-devel
23 BuildRequires: boost-regex-devel
24 BuildRequires: commoncpp2-devel >= 1.3.0
25 BuildRequires: ccrtp-devel >= 1.3.4
26 %{?with_kde:BuildRequires: kdelibs-devel}
27 BuildRequires: libtool
28 BuildRequires: libgsm-devel >= 1.0.11
29 BuildRequires: libsndfile-devel
30 BuildRequires: pkgconfig
32 BuildRequires: qt-devel >= 6:3.3.0
33 BuildRequires: speex-devel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Twinkle is a SIP based soft phone for making telephone calls over IP
41 Twinkle to oparty na SIP programowy telefon do wykonywania po³±czeñ
42 telefonicznych po sieciach IP.
48 #%patch2 -p1 # seems obsolete (arekm?)
56 export QTDIR=%{_prefix}
58 %if "%{_lib}" == "lib64"
59 --enable-libsuffix=64 \
61 --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
62 %{!?with_kde:--without-kde} \
63 --with-qt-libraries=%{_libdir}
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
71 DESTDIR=$RPM_BUILD_ROOT
73 install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog README THANKS
82 %attr(755,root,root) %{_bindir}/*
84 %{_pixmapsdir}/twinkle.png
85 %{_desktopdir}/twinkle.desktop