File tint2.spec of Package tint2
#
# spec file for package tint2
#
# 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: tint2
Version: @SERVICE@
Release: 0
Summary: A lightweight panel/taskbar for Linux and BSD
License: GPL-2.0-or-later
Group: System/X11/Utilities
URL: https://gitlab.com/o9000/tint2
Source0: %{name}-%{version}.tar.xz
Source1: %{name}rc
Source2: button-icon.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gtk+-x11-3.0)
BuildRequires: pkgconfig(imlib2) >= 1.4.2
BuildRequires: pkgconfig(librsvg-2.0) >= 2.14.0
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.12
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xrandr) >= 1.3
BuildRequires: pkgconfig(xrender)
BuildRequires: update-desktop-files
Recommends: %{name}conf
Obsoletes: %{name} < %{version}
%description
tint2 is a simple panel/taskbar made for modern X window managers. It was
specifically made for Openbox but it should also work with other window
managers (GNOME, KDE, XFCE etc.).
%package -n %{name}conf
Summary: Tint configuration manager
Group: System/X11/Utilities
Requires: %{name} = %{version}-%{release}
Recommends: %{name}conf-lang
%description -n %{name}conf
tint2conf is a GTK based configuration previewer for tint2.
%lang_package -n %{name}conf
%prep
%autosetup
%build
%cmake \
-DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name}
%make_build
%install
%cmake_install
cp -f %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/%{name}/%{name}rc
tar -xJvf %{SOURCE2} -C %{buildroot}%{_datadir}/%{name}/
%suse_update_desktop_file -r -u %{name} System DesktopUtility
%find_lang %{name}conf
%files
%doc %{_defaultdocdir}/%{name}
%dir %{_sysconfdir}/xdg/%{name}
%config(noreplace) %{_sysconfdir}/xdg/%{name}/%{name}rc
%{_bindir}/%{name}
%{_bindir}/%{name}-send
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_mandir}/man?/%{name}.?%{?ext_man}
%{_datadir}/%{name}
%license COPYING
%files -n %{name}conf
%{_bindir}/%{name}conf
%{_datadir}/applications/%{name}conf.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}conf.??g
%{_datadir}/mime/packages/%{name}conf.xml
%files -n %{name}conf-lang -f %{name}conf.lang
%changelog