File cairo-dock.spec of Package cairo-dock
#
# spec file for package cairo-dock
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: cairo-dock
Version: 3.6.0
Release: 0
License: GPL-3.0-or-later
Summary: Pretty, light, convenient and highly customizable dock to your desktop
Url: https://github.com/Cairo-Dock/cairo-dock-core/wiki/
Group: System/GUI/GNOME
Source0: https://github.com/Cairo-Dock/cairo-dock-core/archive/refs/tags/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: kf6-extra-cmake-modules
BuildRequires: gtk-layer-shell-devel
BuildRequires: wayland-protocols-devel
BuildRequires: libjson-c-devel
BuildRequires: libjson-c5
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: %{name}-plugins-Help = %{version}
Obsoletes: %{name}-plugins-Help < %{version}
%description
Cairo-Dock is a pretty, light, convenient and highly customizable
interface to your desktop, able to replace advantageously your
system panel! It features multi-docks, taskbar, launchers, a lot
of useful applets and a set of ready-to-use themes.
Cairo-Dock works well under a wide range of X11 desktop environments
and window managers; support for a (slowly growing) set of Wayland
compositors is currently available in the beta version.
%package devel
Summary: Development files for Cairo Dock
Requires: %{name} = %{version}
%description devel
Headers to build plugins with the Cairo Dock.
%lang_package
%prep
%autosetup -n cairo-dock-core-%{version}
%build
%cmake -DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \
-Denable-egl-support=True -Denable-x11-support=True -Denable-glx-support=True \
-Denable-wayland-support=True -Denable-wayland-protocols=True -Denable-gtk-layer-shell=True \
-Denable-desktop-manager=False -Denable-systemd-service=False
%cmake_build
%install
%cmake_install
%find_lang %{name}
%fdupes -s %{buildroot}/%{_prefix}
%files
%license LGPL-2 LICENSE
%defattr(-,root,root)
%{_bindir}/cairo-dock
%{_datadir}/cairo-dock/
%dir %{_libdir}/cairo-dock
%{_libdir}/cairo-dock/libcd-Help.so
%{_libdir}/libgldi.so.3
%{_libdir}/libgldi.so.%{version}
%{_datadir}/applications/cairo-dock-cairo.desktop
%{_datadir}/applications/cairo-dock.desktop
%{_datadir}/man/man1/cairo-dock.1.gz
%{_datadir}/pixmaps/cairo-dock.svg
%files lang -f %{name}.lang
%files devel
%{_includedir}/cairo-dock/
%{_libdir}/libgldi.so
%{_libdir}/pkgconfig/gldi.pc
%changelog