File ihu.spec of Package ihu

#
# spec file for package ihu
#
# Copyright (c) 2015 SUSE LINUX 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:           ihu
Version:        0.6.0
Release:        0
Summary:        VoIP softphone written in Qt4 with an encrypted protocol
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Url:            http://ihu.sourceforge.net/
Source:         http://downloads.sf.net/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
# PATCH-FIX-UPSTREAM 0000-fix-man.patch capriott@debian.org -- man-page related changes.
Patch0:         0000-fix-man.patch
# PATCH-FIX-UPSTREAM 0001-fix-compilation.patch sor.alexei@meowr.ru -- Generic compilation fixes, new FSF address.
Patch1:         0001-fix-compilation.patch
# PATCH-FIX-UPSTREAM 0002-qt4-port.patch sor.alexei@meowr.ru -- Port to Qt4 (with Qt3Support module).
Patch2:         0002-qt4-port.patch
# PATCH-FIX-UPSTREAM 0003-proper-tray.patch sor.alexei@meowr.ru -- Use QSystemTrayIcon for creating a tray icon.
Patch3:         0003-proper-tray.patch
# PATCH-FIX-UPSTREAM 0004-use-getaddrinfo.patch sor.alexei@meowr.ru -- Use getaddrinfo.
Patch4:         0004-use-getaddrinfo.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  gmp-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt3Support)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(QtNetwork)
BuildRequires:  pkgconfig(QtXml)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(jack)
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(soundtouch)
BuildRequires:  pkgconfig(speex)
BuildRequires:  pkgconfig(x11)

%description
IHU is a Voice over IP (VoIP) application for GNU/Linux that
creates an audio stream between two computers easily and with the
minimal traffic on the network.

The main features are:
 * Peer-to-Peer: the communication takes place directly between the
   computers (UDP and TCP both supported), without need of session
   protocols (such as SIP or H.323) or other servers in the middle.
 * Good audio performance: IHU was born to give the best audio
   performance, low latency above all.
   For this purpose IHU is compatible with ALSA and with JACK.
   For the audio compression, IHU uses Speex, a codec optimized for
   speech (and completely free and open source).
 * Crypted stream: you have also the possibility to Encrypt/Decrypt
   the stream using a fast hybrid cryptographic system
   (RSA + Blowfish).
 * Command-line support: the GUI is not strictly necessary, you
   can run also a textual IHU from command-line (for example if
   you need to run the program on remote computers).

%prep
%setup -q
%patch0 -p1
%patch1 -p1
rm -f acinclude.m4
%patch2 -p1
%patch3 -p1
%patch4 -p1
cp -f %{SOURCE1} %{name}.desktop

%build
autoreconf -fi
%configure
make %{?_smp_mflags}

%install
%make_install

rm -rf %{buildroot}%{_datadir}/doc/
install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm 0644 icon/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -Dm 0644 doc/%{name}big.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
# For manual.html.
mkdir -p %{buildroot}%{_docdir}/%{name}/
ln -s %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %{buildroot}%{_docdir}/%{name}/%{name}big.png

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README doc/manual.html doc/ihubig.png
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man?/%{name}.?%{?ext_man}

%changelog
openSUSE Build Service is sponsored by