A new user interface for you!

File qt-ponies.spec of Package qt-ponies

# spec file for package qt-ponies
# 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:           qt-ponies
Version:        0.9
Release:        0
Summary:        Ponies walking on your desktop
License:        GPL-3.0+
Group:           Amusements/Toys/Background
Url:            https://github.com/myszha/qt-ponies
Source:         https://github.com/myszha/qt-ponies/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xfixes)
Requires:       %{name}-data = %{version}

qt-ponies (pronounced 'cute-ponies') is an implementation of
DesktopPonies (http://desktopponies.bugs3.com/) in Qt.

%package data
Summary:        Multi-protocol instant messaging client - data files
Group:          System/GUI
Requires:       %{name} = %{version}

%description data
This package contains architecture-independent supporting data files
required for use with qt-ponies, such as documentation, icons,
translations, and sounds.

%setup -q
sed -i 's|"./desktop-ponies"|"%{_datadir}/%{name}/desktop-ponies"|' src/configwindow.cpp

%{_libdir}/qt4/bin/qmake \
  PREFIX=%{_prefix}            \
  QMAKE_CFLAGS="%{optflags}"   \
make %{?_smp_mflags}

make INSTALL_ROOT=%{buildroot} install
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} --with-qt


%files data