Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 04b8bc15fffb6eff1a63f3274e3cf2a5 > files > 4

kiax-0.8.4-2mdk.src.rpm

Summary:	Kiax is an IAX client application (a so called Softphone)
Name:		kiax
Version:	0.8.4
Release:	%mkrel 2
License:	GPL
Group:		Graphical desktop/KDE
URL:		http://kiax.org/
Source0:	http://prdownloads.sourceforge.net/kiax/%{name}-%{version}.tar.bz2
Source1:	http://kiax.sourceforge.net/img/kiax_logo_small.png
Patch0:		kiax-0.8.4-system_iaxclient_libs.diff.bz2
Patch1:		kiax-0.8.4-x86_64_fix.diff.bz2
BuildRequires:	libqt-devel
BuildRequires:	XFree86-devel
BuildRequires:	XFree86-libs
BuildRequires:	kdelibs-devel
BuildRequires:	kdelibs-common >= 3.1.93-5mdk
BuildRequires:	iaxclient-devel
BuildRequires:	iax-devel
BuildRequires:	ImageMagick
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Kiax is an IAX client application (a so called Softphone) which
allows PC users to make ordinary VoIP calls to Asterisk servers,
the same way as they do it with their hardware telephone. It aims
to provide a simple and user-friendly graphical interface and
desktop integration for calling, contact list, call register
management and easy configuration. That is - a simple to use IAX
Client.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p0

%build
export QTDIR=%{_prefix}/lib/qt3
export KDEDIR=%{_prefix}
export LD_LIBRARY_PATH="$QTDIR:/%{_lib}:$LD_LIBRARY_PATH"
export PATH="$KDEDIR/bin:$PATH"

sh configure --prefix=%{_prefix} --targetos=mandrake

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
#export DONT_STRIP=1

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}
install -d %{buildroot}%{_menudir}
install -d %{buildroot}%{_datadir}/%{name}/icons
install -d %{buildroot}%{_datadir}/%{name}/i18n

install -m0755 bin/%{name} %{buildroot}%{_bindir}/
install -m0644 icons/*.png %{buildroot}%{_datadir}/%{name}/icons/
install -m0644 i18n/*.qm %{buildroot}%{_datadir}/%{name}/i18n/

# fix some icons
convert %{SOURCE1} -geometry 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert %{SOURCE1} -geometry 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert %{SOURCE1} -geometry 16x16 %{buildroot}%{_miconsdir}/%{name}.png

# fix mandrake menu entry
cat >> %{buildroot}%{_menudir}/%{name} << EOF
?package(%{name}): \
 command="%{_bindir}/%{name}" \
 icon="%{name}.png" \
 needs="X11" \
 section="Office/Communications/Phone" \
 title="Kiax" \
 longtitle="Kiax is an IAX client application (a so called Softphone)"
EOF

%post
%update_menus

%postun
%clean_menus

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING README
%{_bindir}/%{name}
%{_menudir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/%{name}

%changelog
* Mon Apr 18 2005 Oden Eriksson <oeriksson@mandriva.com> 0.8.4-2mdk
- make it work on x86_64 (P1 by emosto at users.sourceforge.net)

* Fri Apr 15 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.4-1mdk
- 0.8.4
- fix P0
- use correct menu group
- note 0.8.4 segfaults on 10.1 x86_64

* Mon Apr 11 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.3-1mdk
- initial package