LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qt-ponies.spec of Package qt-ponies (Project home:XRevan86)

#
# 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}

%description
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.

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

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

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

%files
%defattr(-,root,root)
%doc CREDITS LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%files data
%defattr(-,root,root)
%{_datadir}/%{name}/

%changelog