Some time ago I wrote a spec file for latest kphone (4.0.1) for RH/Fedora. Maybe some of you will find it usefully. I tested on my computer but I have installed all libraries needed by old kphone versions (KDE dependent). If someone has a KDE-clean system and gets some dependency problems, just drop a mail and I will try to fix the spec.
.Daniel
%define name kphone %define ver 4.0.1 %define rel 0
Summary: KPhone - SIP user agent Name: %name Version: %ver Release: %rel License: GPL Group: Applications/Internet Source: http://www.wirlab.net/kphone/%%7Bname%7D-%%7Bver%7D.tgz URL: http://www.wirlab.net/kphone/index.html Packager: Daniel Mierla daniel@iptel.org Requires: qt >= 3.0.0 Requires: XFree86-libs >= 4.0.0 Requires: openssl >= 0.9.6 Requires: libpng >= 1.0.0 BuildPrereq: XFree86-devel >= 4.0.0 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%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 supports Presence and Instant Messaging, and, to some extent, video calls between two hosts.
%prep %setup
%build %configure %{__make}
%install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Internet install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons install -d $RPM_BUILD_ROOT%{_docdir}/%{name} install -d $RPM_BUILD_ROOT%{_bindir}
echo -e "[Desktop Entry]\nName=KPhone\nComment=SIP User Agent\nExec=%{_bindir}/%{name}\nIcon=%{_datadir}/%{name}/icons/large-kphone.png\nTerminal=0\nType=Application" >$RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Internet/%{name}.desktop
install -m644 icons/*.png $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/ install -m755 kphone/kphone $RPM_BUILD_ROOT%{_bindir}/kphone install -m644 README $RPM_BUILD_ROOT%{_docdir}/%{name}/README install -m644 COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}/COPYING install -m644 CHANGES $RPM_BUILD_ROOT%{_docdir}/%{name}/CHANGES
%post
%postun
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/kphone %{_sysconfdir}/X11/applnk/Internet/%{name}.desktop
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/icons %{_datadir}/%{name}/icons/dial.png %{_datadir}/%{name}/icons/enter.png %{_datadir}/%{name}/icons/hangup.png %{_datadir}/%{name}/icons/large-kphone.png %{_datadir}/%{name}/icons/lo-kphone.png %{_datadir}/%{name}/icons/mini-kphone.png %{_datadir}/%{name}/icons/offline.png %{_datadir}/%{name}/icons/online.png %{_datadir}/%{name}/icons/phonebook.png %{_datadir}/%{name}/icons/videocall.png
%dir %{_docdir}/%{name} %doc %{_docdir}/%{name}/README %doc %{_docdir}/%{name}/CHANGES %doc %{_docdir}/%{name}/COPYING
%changelog * Thu Feb 12 2004 Daniel Mierla daniel@iptel.org - Initial version for RH/Fedora