File homechat.spec of Package homechat
#
# spec file for package homechat
#
# Copyright (c) 2015 SUSE LINUX Products 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: homechat
Version: 2.2.3
Release: 0
License: GPL-2.0
Summary: Personal Chat
Url: http://hugo.pereira.free.fr/software/index.php?page=software&full=1
Group: Productivity/Networking/IRC
Source: %{name}-%{version}.tar.gz
BuildRequires: aspell-devel
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libssh2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: pkgconfig(zlib)
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Homechat is a simple client/server communication application, that, if configured
properly, can serve as a personal messaging application.
%prep
%setup -q
%build
%cmake \
-DUSE_QT5=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
%cmake_install
install -dm 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -Dm 0644 %{name}*.desktop %{buildroot}%{_datadir}/applications
install -Dm 0644 %{name}*.png %{buildroot}%{_datadir}/pixmaps
%suse_update_desktop_file -r %{name} Qt Internet IRCClient
%suse_update_desktop_file -r %{name}-server Qt System Network
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/pixmaps/%{name}*.png