File plank.spec of Package plank
#
# spec file for package plank-reloaded
#
# Copyright (c) 2025 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/
#
%define sover 1
%define _name plank-reloaded
Name: plank
Version: @SERVICE
Release: 0
Summary: Trivial dock
License: GPL-3.0-or-later
URL: https://github.com/zquestz/plank-reloaded
Source0: %{_name}-%{version}.tar.bz2
BuildRequires: meson
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libtool >= 2
BuildRequires: libxml2-tools
BuildRequires: pkgconfig >= 0.21
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.28.0
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbusmenu-glib-0.4) >= 0.4
BuildRequires: pkgconfig(dbusmenu-gtk3-0.4) >= 0.4
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.26.0
BuildRequires: pkgconfig(gdk-x11-3.0) >= 3.10.0
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gio-2.0) >= 2.40
BuildRequires: pkgconfig(glib-2.0) >= 2.40
BuildRequires: pkgconfig(gobject-2.0) >= 2.34
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10.0
BuildRequires: pkgconfig(libbamf3) >= 0.2.92
BuildRequires: pkgconfig(libgnome-menu-3.0)
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xfixes) >= 5.0
BuildRequires: pkgconfig(xi) >= 1.6.99.1
Requires: bamf-daemon >= 0.2.92
Recommends: %{name}-docklets
%description
Plank is a trivial dock.
It is a library which can be extended to create other
dock programs with more advanced features.
%package -n lib%{name}%{sover}
Summary: Library for the Plank dock
%description -n lib%{name}%{sover}
Plank is a trivial dock.
It is, however, a library which can be extended to create other
dock programs with more advanced features.
%package docklets
Summary: A collection of docklets for the Plank dock
Requires: %{name} = %{version}
%description docklets
This package contains a collection of docklets: clippy, clock, cpumonitor,
desktop, trash and etc.
%package devel
Summary: Development files for the Plank dock
Requires: lib%{name}%{sover} = %{version}
%description devel
The libxnoise development package includes the header files, libraries,
configuration files and development tools necessary for compiling and
linking application which will use libplank.
%lang_package
%prep
%setup -q -n %{_name}-%{version}
%build
%meson \
-Denable-apport=false
%meson_build
%install
%meson_install
%suse_update_desktop_file %{name}
%find_lang %{_name}
rm -f %{buildroot}%{_libdir}/lib%{name}.la
rm -f %{buildroot}%{_datadir}/doc/plank-reloaded/README.md
%ldconfig_scriptlets -n lib%{name}%{sover}
%files
%license COPYING
%doc README.md AUTHORS COPYRIGHT HACKING.md NEWS.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{_name}.png
%{_datadir}/glib-2.0/schemas/*%{name}.gschema.xml
%{_mandir}/man?/%{name}.?%{?ext_man}
%dir %{_libdir}/%{name}
%files -n lib%{name}%{sover}
%{_libdir}/lib%{name}.so.*
%files docklets
%{_libdir}/%{name}/docklets/
%files lang -f %{_name}.lang
%files devel
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_datadir}/vala/vapi/plank.{deps,vapi}
%changelog