File dianara.spec of Package dianara

#
# spec file for package dianara
#
# 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:           dianara
%define _name   Dianara
Version:        1.2.3
Release:        0
Summary:        Pump.io social network desktop client
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            http://jancoding.wordpress.com/dianara
Source:         http://download.savannah.gnu.org/releases/%{name}/%{name}-v%{version}.tar.gz

BuildRequires:  file-devel
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(QJson)
BuildRequires:  pkgconfig(QtDBus)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(QtNetwork)
BuildRequires:  pkgconfig(qoauth)

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

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

%build
%{_libdir}/qt4/bin/qmake -makefile %{_name}.pro \
  QMAKE_CFLAGS="%{optflags}"   \
  QMAKE_CXXFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_datadir}/%{name}/locale/
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -m 0644 translations/*.qm %{buildroot}%{_datadir}/%{name}/locale/
ls icon | while read size; do
    install -Dm 0644 icon/$size/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/$size/apps/%{name}.png
done
install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

%suse_update_desktop_file -r %{name} Network InstantMessaging
%find_lang %{name} --with-qt

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

%changelog
openSUSE Build Service is sponsored by