#
# Conditional build:
-%bcond_with kde # enable KDE support
+%bcond_without kde # disable KDE support
#
Summary: twinkle - SIP Soft Phone
-Summary(pl): twinkle - telefon programowy SIP
+Summary(pl.UTF-8): twinkle - telefon programowy SIP
Name: twinkle
-Version: 0.6
+Version: 1.0.1
Release: 1
License: GPL v2
Group: Applications/Communications
Source0: http://www.xs4all.nl/~mfnboer/twinkle/download/%{name}-%{version}.tar.gz
-# Source0-md5: 9d8c4ceca35a27163468f7dd42334459
+# Source0-md5: 625328b58d8432067be80d47026a4551
+Source1: %{name}.desktop
+Patch0: %{name}-gsm.patch
+Patch1: %{name}-nobind.patch
URL: http://www.twinklephone.com/
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: alsa-lib-devel
-BuildRequires: commoncpp2-devel >= 1.3.0
-BuildRequires: ccrtp-devel >= 1.3.4
+BuildRequires: boost-regex-devel
+BuildRequires: commoncpp2-devel >= 1.5.0
+BuildRequires: ccrtp-devel >= 1.5.0
%{?with_kde:BuildRequires: kdelibs-devel}
+BuildRequires: libtool
+BuildRequires: libgsm-devel >= 1.0.11
+BuildRequires: libilbc-devel
BuildRequires: libsndfile-devel
+BuildRequires: libzrtpcpp-devel
BuildRequires: pkgconfig
BuildRequires: qmake
BuildRequires: qt-devel >= 6:3.3.0
+BuildRequires: qt-linguist
+BuildRequires: speex-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Twinkle is a SIP based soft phone for making telephone calls over IP
networks.
-%description -l pl
-Twinkle to oparty na SIP programowy telefon do wykonywania po³±czeñ
+%description -l pl.UTF-8
+Twinkle to oparty na SIP programowy telefon do wykonywania połączeń
telefonicznych po sieciach IP.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
export QTDIR=%{_prefix}
%configure \
%if "%{_lib}" == "lib64"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/*
%{_datadir}/twinkle
%{_pixmapsdir}/twinkle.png
+%{_desktopdir}/twinkle.desktop