File dianara.spec of Package dianara

# spec file for package dianara
# Copyright (c) 2017 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

%define _name   Dianara
Name:           dianara
Version:        1.4.0
Release:        0
Summary: social network desktop client
License:        GPL-2.0+
Group:          Productivity/Networking/Other
%if 0%{?suse_version} <= 1320
Source1:        %{name}.changes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  qoauth-qt5-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)

Dianara is a client for (and GNU MediaGoblin), a desktop
application for GNU/Linux that allows users to manage their
social networking accounts without the need to use a web browser.
You can read your timelines, post messages and pictures, and manage
your contacts.

%setup -q -n %{name}-v%{version}

%if 0%{?suse_version} <= 1320
SOURCE_DATE="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
export SOURCE_DATE_EPOCH="$(date -d "$SOURCE_DATE" "+%%s")"

make %{?_smp_mflags} V=1


%if 0%{?suse_version} <= 1320
mv %{buildroot}%{_datadir}/{metainfo,appdata}/
%suse_update_desktop_file -r %{name} Network InstantMessaging

%if 0%{?suse_version} <= 1320


%if 0%{?suse_version} > 1320
%dir %{_datadir}/metainfo/
%dir %{_datadir}/appdata/

openSUSE Build Service is sponsored by