3 %bcond_without tests # don't build tests
5 Summary: A window switcher, application launcher and dmenu replacement
10 Group: X11/Applications
11 Source0: https://github.com/davatorium/rofi/releases/download/%{version}/%{name}-%{version}.tar.xz
12 # Source0-md5: 284aea347005af52354a6a8c492a8c03
13 URL: https://github.com/davatorium/rofi
15 BuildRequires: cairo-devel
16 %{?with_tests:BuildRequires: check-devel >= 0.11.0}
17 BuildRequires: flex >= 2.5.39
18 BuildRequires: gdk-pixbuf2-devel
19 BuildRequires: glib2-devel >= 1:2.40
20 BuildRequires: librsvg-devel
21 BuildRequires: libxcb-devel
22 BuildRequires: pango-devel
23 BuildRequires: pkgconfig
24 BuildRequires: rpmbuild(macros) >= 1.527
25 BuildRequires: startup-notification-devel
26 BuildRequires: tar >= 1:1.22
27 BuildRequires: xcb-util-cursor-devel
28 BuildRequires: xcb-util-devel
29 BuildRequires: xcb-util-wm-devel
30 BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.1
31 BuildRequires: xorg-lib-libxkbcommon-x11-devel
33 Requires(post,postun): desktop-file-utils
34 Requires(post,postun): gtk-update-icon-cache
35 Requires(post,postun): hicolor-icon-theme
36 Requires: glib2 >= 1:2.40
37 Requires: xorg-lib-libxkbcommon >= 0.4.1
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Rofi is a dmenu replacement. Rofi, like dmenu, will provide the user
42 with a textual list of options where one or more can be selected. This
43 can either be, running an application, selecting a window or options
44 provided by an external script.
47 Summary: Header files for rofi
48 Group: Development/Libraries
51 Header files for rofi.
56 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' script/rofi-{sensible-terminal,theme-selector}
60 --disable-silent-rules \
61 %{__enable_disable check}
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %update_desktop_database
76 %update_icon_cache hicolor
79 %update_desktop_database
80 %update_icon_cache hicolor
83 %defattr(644,root,root,755)
84 %doc AUTHORS Changelog README.md
85 %attr(755,root,root) %{_bindir}/rofi
86 %attr(755,root,root) %{_bindir}/rofi-sensible-terminal
87 %attr(755,root,root) %{_bindir}/rofi-theme-selector
88 %{_desktopdir}/rofi.desktop
89 %{_desktopdir}/rofi-theme-selector.desktop
90 %{_iconsdir}/hicolor/apps/rofi.svg
92 %{_mandir}/man1/rofi.1*
93 %{_mandir}/man1/rofi-sensible-terminal.1*
94 %{_mandir}/man1/rofi-theme-selector.1*
95 %{_mandir}/man5/rofi-debugging.5*
96 %{_mandir}/man5/rofi-dmenu.5*
97 %{_mandir}/man5/rofi-keys.5*
98 %{_mandir}/man5/rofi-script.5*
99 %{_mandir}/man5/rofi-theme.5*
102 %defattr(644,root,root,755)
104 %{_pkgconfigdir}/rofi.pc