File xgrabcolor.spec of Package xgrabcolor

#
# spec file for package xgrabcolor
#
# Copyright (c) 2018 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 http://bugs.opensuse.org/
#


Name:           xgrabcolor
Version:        1.4.6
Release:        0
Summary:        Color picker
License:        GPL-2.0
Group:          Productivity/Graphics/Other
Url:            http://hugo.pereira.free.fr/software
Source:         %{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(x11-xcb)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  pkgconfig(xcb-shape)
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xgrabcolor is a basic color picker, that allows to grab a color from any pixel on
screen, display the corresponding colorname, to be used, for instance, in HTML
pages, the color RGB and HSV values, as well as the color alpha channels. Each of
these values can also be modified directly by the user in a synchronized way to
generate new colors. Colors can be stored in a list, for later use.

%prep
%setup -q

%build
%cmake \
    -DUSE_QT5=ON \
    -DCMAKE_INSTALL_PREFIX=%{_prefix}
%make_jobs

%install
%cmake_install
install -Dm 0644 %{name}.desktop -t %{buildroot}%{_datadir}/applications/
install -Dm 0644 %{name}.png -t %{buildroot}%{_datadir}/pixmaps/
%suse_update_desktop_file -r %{name} Qt Utility DesktopUtility

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

%changelog
openSUSE Build Service is sponsored by