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: 47e9e9531646d923e150f868375fcd4f
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: glib2 >= 1:2.40
34 Requires: xorg-lib-libxkbcommon >= 0.4.1
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Rofi is a dmenu replacement. Rofi, like dmenu, will provide the user
39 with a textual list of options where one or more can be selected. This
40 can either be, running an application, selecting a window or options
41 provided by an external script.
44 Summary: Header files for rofi
45 Group: Development/Libraries
48 Header files for rofi.
53 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' script/rofi-{sensible-terminal,theme-selector}
57 --disable-silent-rules \
58 %{__enable_disable check}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc AUTHORS Changelog README.md
74 %attr(755,root,root) %{_bindir}/rofi
75 %attr(755,root,root) %{_bindir}/rofi-sensible-terminal
76 %attr(755,root,root) %{_bindir}/rofi-theme-selector
78 %{_mandir}/man1/rofi.1*
79 %{_mandir}/man1/rofi-sensible-terminal.1*
80 %{_mandir}/man1/rofi-theme-selector.1*
81 %{_mandir}/man5/rofi-dmenu.5*
82 %{_mandir}/man5/rofi-keys.5*
83 %{_mandir}/man5/rofi-script.5*
84 %{_mandir}/man5/rofi-theme.5*
87 %defattr(644,root,root,755)
89 %{_pkgconfigdir}/rofi.pc