File plank-reloaded.spec of Package plank-reloaded

#
# spec file for package plank-reloaded
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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 soname	libplank
%define sover   1
Name:           plank-reloaded
Version:        0.11.166+git1.c35f5105c
Release:        0
Summary:        Simple dock for X11 desktop environments
License:        GPL-3.0-or-later
URL:            https://github.com/zquestz/plank-reloaded
Source:         %{name}-%{version}.tar.xz
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  meson
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(cairo) >= 1.13.0
BuildRequires:  pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:  pkgconfig(dbusmenu-glib-0.4)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) >= 2.26.0
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(glib-2.0) >= 2.48.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires:  pkgconfig(libbamf3) >= 0.4.0
BuildRequires:  pkgconfig(libgnome-menu-3.0)
BuildRequires:  pkgconfig(libwnck-3.0)
BuildRequires:  pkgconfig(vapigen)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xfixes) >= 5.0
BuildRequires:  pkgconfig(xi) >= 1.6.99.1
Provides:       plank = %{version}
Obsoletes:      plank < %{version}
Provides:       plank-docklets = %{version}
Obsoletes:      plank-docklets < %{version}

%description
Plank Reloaded is a fork of the original Plank project, providing a simple dock
for X11 desktop environments.

%package devel
Summary:        Development files for plank-reloaded
Requires:       %{soname}%{sover} = %{version}

%description devel
This package contains the development files for plank-reloaded, including
headers, libraries, and Vala bindings needed to develop applications or
docklets that use libplank.

%package -n %{soname}%{sover}
Summary:        Library for the Plank dock
Group:          System/Libraries

%description -n %{soname}%{sover}
Library which can be extended to create other
dock programs with more advanced features.

%lang_package

%prep
%autosetup

%build
%meson \
    -D enable-apport=false \
    -D production-release=true

%meson_build

%install
%meson_install

# Fix shared library permissions
chmod 755 %{buildroot}%{_libdir}/%{soname}.so.*

# Remove duplicate README file
rm %{buildroot}%{_datadir}/doc/plank-reloaded/README.md

%find_lang %{name}

%post -n %{soname}%{sover} -p /sbin/ldconfig
%postun -n %{soname}%{sover} -p /sbin/ldconfig

%files
%license COPYING
%doc AUTHORS NEWS.md README.md
%{_bindir}/plank
%{_libdir}/plank/
%{_datadir}/plank/
%{_datadir}/applications/net.launchpad.plank.desktop
%{_datadir}/glib-2.0/schemas/net.launchpad.plank.gschema.xml
%{_datadir}/icons/hicolor/*/apps/plank-reloaded.png
%{_mandir}/man1/plank.1.gz
%{_datadir}/metainfo/plank.appdata.xml

%files devel
%{_includedir}/plank/
%{_libdir}/%{soname}.so
%{_libdir}/pkgconfig/plank.pc
%{_datadir}/vala/vapi/plank.deps
%{_datadir}/vala/vapi/plank.vapi

%files -n %{soname}%{sover}
%{_libdir}/%{soname}.so.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by