%define iconname kphone.png Summary: KPhone - SIP user agent Name: kphone Version: 4.0.5 Release: 1sde License: GPL Group: Communications URL: http://www.wirlab.net/kphone/index.html BuildRequires: autoconf >= 2.1 BuildRequires: kdelibs-devel >= 3.1.1 BuildRequires: openssl-devel >= 0.9.6j Obsoletes: libkphone3 Obsoletes: libkphone3-devel Provides: libkphone3 libkphone3-devel BuildRoot: %_tmppath/%{name}-%{version}-root-%(id -u -n) Source: %{name}-%{version}.tar.gz # LJB: Don't really know how to deal with this best %define _pixmapsdir %{_prefix}/share/icons # Deal with --tag %define __libtoolize /bin/true # Taken from arts package # QTDIR is always /usr/lib/qt3, whether that's a lib64 architecture or # not (sublibdirs are correctly qualified in the latter case however). %define qtdir %{_prefix}/lib/qt3 %description KPhone is a SIP (Session Initiation Protocol) user agent for Linux, with which you can initiate VoIP (Voice over IP) connections over the Internet. It also supports Presence and Instant Messaging. %prep %setup -q -n %{name} autoconf %build # This will be outside the build root and thus ignored. # We don't want the .desktop file anyway kde_appsdir="%{_applnkdir}"; export kde_appsdir kde_icondir="%{_pixmapsdir}"; export kde_icondir QTDIR=%qtdir export LD_LIBRARY_PATH=$QTLIB:$LD_LIBRARY_PATH # Update config.{sub,guess} to recognize amd64-* %{?__cputoolize: %{__cputoolize}} %configure \ --enable-shared \ --with-gnu-ld \ --with-pic \ --enable-mt \ --disable-rpath # crashes build - from copied spec file, not verified: LJB # --enable-final \ make %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_menudir} # Don't want to patch the Makefile cp kphone/kphone.menu $RPM_BUILD_ROOT%{_menudir}/kphone mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir},%{_menudir}} cp icons/large-kphone.png %{buildroot}%{_liconsdir}/%{iconname} cp icons/lo-kphone.png %{buildroot}%{_iconsdir}/%{iconname} cp icons/mini-kphone.png %{buildroot}%{_miconsdir}/%{iconname} %clean rm -rf $RPM_BUILD_ROOT %post -p /usr/bin/update-menus %postun -p /usr/bin/update-menus %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/kphone %{_menudir}/kphone %{_datadir}/kphone/icons/*.png %_iconsdir/%iconname %_liconsdir/%iconname %_miconsdir/%iconname %doc CHANGES COPYING INSTALL README %changelog * Mon Oct 18 2004 Gwenole Beauchesne 4.0.3-3mdk - lib64 fixes * Tue Sep 28 2004 Laurent MONTEL 4.0.3-2mdk - Allow to translate it * Sun Jun 27 2004 Stefan van der Eijk 4.0.3-1mdk - 4.0.3 * Wed Jun 14 2004 Lonnie Borntreger 4.0.2-1mdk - Update to 4.0.2 - Remove patch1 (kdb2html) no longer needed - Rework patch2 (mdkmenu) to change menu name from KT&T to K-Phone - Add patch3 (destdir) to make install work in rpm - Change spec file due to png location change - Remove lib packages - kphone source no longer creates shared libs - Obsolete lib packages - Fix my 3.14 brain damage on doc section of spec file * Mon Jun 14 2004 Laurent MONTEL 3.14-4mdk - Rebuild * Fri Feb 20 2004 David Baudens 3.14-3mdk - Fix menu * Wed Dec 31 2003 Lenny Cartier 3.14-1mdk - from Lonnie Borntreger 3.14-1mdk - First attempt to create Mandrake RPM - patch1: remove kdb2html from configure - patch2: add Mandrake menu file - Add libification