File twinkle.spec of Package twinkle

#
# spec file for package twinkle
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           twinkle
# BR's in openSUSE:
BuildRequires:  bison boost-devel file-devel kdelibs3-devel libsndfile-devel qt3-devel-tools readline-devel xorg-x11-devel
# BR's in network:telephony
BuildRequires:  libzrtpcpp-devel >= 2.0.0
BuildRequires:  speex-devel
Summary:        A SIP Soft Phone
Version:        1.4.2
Release:        14
License:        GPLv2+
Group:          Productivity/Telephony/SIP/Clients
Source:         %{name}-%{version}.tar.bz2
Patch0:         twinkle-ucommon.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.twinklephone.com

%description
Twinkle is a SIP-based soft phone for making telephone calls over IP
networks.

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%suse_update_libdir configure
export QTDIR=%_libdir/qt3
export CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" 
%configure \
        --without-arts --with-qt-libraries=%{_libdir}/qt3/%{_lib}
make

%install
%makeinstall
install -d 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 src/gui/images/twinkle48.png %{buildroot}%{_datadir}/pixmaps/twinkle.png
%suse_update_desktop_file -c twinkle Twinkle "SIP VoIP Phone" twinkle twinkle Network Telephony 

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING README ChangeLog
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/twinkle.png
%{_datadir}/applications/twinkle.desktop

%changelog
openSUSE Build Service is sponsored by