File kphone.spec of Package kphone
# Packmangroup: Multimedia
# Packmanpackagename: kphone
# Packman: Rainer Lay
# changed for packman
#
# spec file for package kphone (Version 3.13)
#
# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
BuildRequires: kdebase3-devel kdelibs3-devel
%define _prefix /opt/kde3
Name: kphone
Version: 4.0.3
Release: 1
Source0: kphone-4.0.3.tar.bz2
Source1: kphone.desktop
Patch0: kphone.diff
BuildRoot: %{_tmppath}/buildroot-%{name}-%{version}
License: GPL-2.0
Group: Productivity/Telephony/SIP/Clients
Summary: SIP user agent for linux
Summary(de): SIP user agent for linux
URL: http://www.wirlab.net/kphone
%description
SIP (Session Initiation Protocol) user agent for Linux,
with which you can initiate VoIP (Voice over IP) connections over the
Internet.
Authors:
--------
Billy Biggs <vektor@div8.net>
modifications made by
Pekka Raisio, Jouni Vuorela and Juha Heinanen at Wirlab
%description -l de
KPhone ist ein SIP (Session Initiation Protocol) Programm fuer Linux,
mit dem VoIP (Voice over IP) Verbindungen ueber des Internet abgewickelt
werden koennen.
Authoren:
--------
Billy Biggs <vektor@div8.net>
modifications made by
Pekka Raisio, Jouni Vuorela and Juha Heinanen at Wirlab
%prep
%setup -qn %name
%patch -P 0
sed -i 's|videoSWParam\.latin1(), 0|videoSWParam\.latin1(), (void \*)NULL|g' kphone/callaudio.cpp
cp -f %{SOURCE1} kphone/kphone.desktop
%build
autoconf
. /etc/opt/kde3/common_options
./configure $configkde
sed -i 's/-Wall/-std=c++14/g' **/Makefile
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
install -d $RPM_BUILD_ROOT/opt/kde3/share/applnk/Internet
install kphone/kphone.desktop $RPM_BUILD_ROOT/opt/kde3/share/applnk/Internet/kphone.desktop
install -d $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/48x48/apps
install -d $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps
install -d $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/16x16/apps
install icons/large-kphone.png $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/48x48/apps/kphone.png
install icons/lo-kphone.png $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps/kphone.png
install icons/mini-kphone.png $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/16x16/apps/kphone.png
# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Internet/kphone.desktop %{buildroot}/opt/kde3/share/applications/kde/kphone.desktop
%files
%defattr(-,root,root)
%doc [A-LN-Z]*
%_bindir/*
%dir /opt/kde3/share/apps/kphone
%dir /opt/kde3/share/apps/kphone/icons
%_datadir/apps/kphone/icons/*
%_datadir/applications/kde/kphone.desktop
%_datadir/icons/hicolor/16x16/apps/kphone.png
%_datadir/icons/hicolor/32x32/apps/kphone.png
%_datadir/icons/hicolor/48x48/apps/kphone.png
%changelog