108 lines
3.4 KiB
RPMSpec
108 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package rofi
|
|
#
|
|
# Copyright (c) 2025 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/
|
|
#
|
|
|
|
|
|
Name: rofi
|
|
Version: 2.0.0
|
|
Release: 0
|
|
Summary: A window switcher, run dialog and dmenu replacement
|
|
License: MIT
|
|
Group: System/GUI/Other
|
|
URL: https://github.com/davatorium/rofi
|
|
Source: https://github.com/davatorium/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
Patch0: xdg-terminal.patch
|
|
BuildRequires: bison
|
|
BuildRequires: cairo-devel
|
|
BuildRequires: check-devel
|
|
BuildRequires: flex >= 2.5.39
|
|
BuildRequires: glib2-devel >= 2.36
|
|
BuildRequires: libjpeg8-devel
|
|
BuildRequires: librsvg-devel
|
|
BuildRequires: libxkbcommon-devel
|
|
BuildRequires: libxkbcommon-x11-devel
|
|
BuildRequires: meson
|
|
BuildRequires: pango-devel
|
|
BuildRequires: startup-notification-devel
|
|
BuildRequires: wayland-devel
|
|
BuildRequires: wayland-protocols-devel
|
|
BuildRequires: xcb-util-cursor-devel
|
|
BuildRequires: xcb-util-devel
|
|
BuildRequires: xcb-util-keysyms-devel
|
|
BuildRequires: xcb-util-wm-devel
|
|
BuildRequires: xcb-util-xrm-devel
|
|
Requires: xdg-utils
|
|
# To allow coexistence with rofi-wayland
|
|
Conflicts: rofi-wayland
|
|
Provides: rofi-launcher
|
|
|
|
%description
|
|
rofi is a popup window switcher roughly based on "superswitcher",
|
|
requiring only xlib and pango. This version started off as a clone of
|
|
simpleswitcher, the version from Sean Pringle. Rofi developed extra
|
|
features, like a run dialog, SSH launcher and can act as a drop-in
|
|
dmenu replacement.
|
|
|
|
%package devel
|
|
Summary: Development files for rofi
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description devel
|
|
Development files and headers for rofi
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
sed -i "s|%{_bindir}/env bash|/bin/bash|g" ./script/rofi-sensible-terminal
|
|
sed -i "s|%{_bindir}/env bash|/bin/bash|g" ./script/rofi-theme-selector
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc Changelog README.md
|
|
%{_bindir}/rofi
|
|
%{_bindir}/rofi-sensible-terminal
|
|
%{_bindir}/rofi-theme-selector
|
|
%dir %{_datadir}/rofi/
|
|
%{_datadir}/rofi/themes/
|
|
%{_datadir}/applications/rofi-theme-selector.desktop
|
|
%{_datadir}/applications/rofi.desktop
|
|
%dir %{_datadir}/icons/hicolor
|
|
%dir %{_datadir}/icons/hicolor/scalable
|
|
%dir %{_datadir}/icons/hicolor/scalable/apps
|
|
%{_datadir}/icons/hicolor/scalable/apps/rofi.svg
|
|
%{_mandir}/man1/rofi.1%{?ext_man}
|
|
%{_mandir}/man1/rofi-sensible-terminal.1%{?ext_man}
|
|
%{_mandir}/man1/rofi-theme-selector.1%{?ext_man}
|
|
%{_mandir}/man5/rofi-theme.5%{?ext_man}
|
|
%{_mandir}/man5/rofi-actions.5%{?ext_man}
|
|
%{_mandir}/man5/rofi-script.5%{?ext_man}
|
|
%{_mandir}/man5/rofi-dmenu.5%{?ext_man}
|
|
%{_mandir}/man5/rofi-keys.5%{?ext_man}
|
|
%{_mandir}/man5/rofi-debugging.5%{?ext_man}
|
|
%{_mandir}/man5/rofi-thumbnails.5%{?ext_man}
|
|
|
|
%files devel
|
|
%{_includedir}/rofi/
|
|
%{_libdir}/pkgconfig/rofi.pc
|
|
|
|
%changelog
|