File pumpa.spec of Package pumpa

#
# spec file for package pumpa
#
# Copyright (c) 2014 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:           pumpa
Version:        0.9
Release:        0
Summary:        A simple pump.io client written in C++/Qt
License:        GPL-3.0+
Group:          System/GUI/Other
Url:            https://pumpa.branchable.com/
Source:         %{name}-%{version}.tar.gz

BuildRequires:  aspell-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libtidy-0_99-0-devel
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)

%description
Pumpa is a simple pump.io client written in C++ and Qt
and licensed under the GNU GPL 3.0 (or later).

%prep
%setup -q
sed -i 's/^Icon=\(.*\)/Icon=pumpa/' %{name}.desktop

%build
%qmake5 PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
%qmake5_install

mkdir -p %{buildroot}%{_datadir}/%{name}/images/ %{buildroot}%{_datadir}/%{name}/translations/
install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 0644 images/* %{buildroot}%{_datadir}/%{name}/images/
install -m 0644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/

%suse_update_desktop_file -G "pump.io client" -r %{name} Network InstantMessaging
fdupes -s %{buildroot}
%find_lang %{name} --with-qt

%files
%defattr(-,root,root)
%doc LICENSE README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/

%changelog
openSUSE Build Service is sponsored by