]>
Commit | Line | Data |
---|---|---|
3a040e6d JP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't build tests | |
4 | ||
4115f119 JP |
5 | Summary: A window switcher, application launcher and dmenu replacement |
6 | Name: rofi | |
f366b0ff JP |
7 | Version: 1.7.5 |
8 | Release: 1 | |
4115f119 JP |
9 | License: MIT |
10 | Group: X11/Applications | |
d3bc9293 | 11 | Source0: https://github.com/davatorium/rofi/releases/download/%{version}/%{name}-%{version}.tar.xz |
f366b0ff | 12 | # Source0-md5: 284aea347005af52354a6a8c492a8c03 |
4115f119 JP |
13 | URL: https://github.com/davatorium/rofi |
14 | BuildRequires: bison | |
15 | BuildRequires: cairo-devel | |
3a040e6d | 16 | %{?with_tests:BuildRequires: check-devel >= 0.11.0} |
4115f119 | 17 | BuildRequires: flex >= 2.5.39 |
afe278b9 | 18 | BuildRequires: gdk-pixbuf2-devel |
4115f119 JP |
19 | BuildRequires: glib2-devel >= 1:2.40 |
20 | BuildRequires: librsvg-devel | |
21 | BuildRequires: libxcb-devel | |
22 | BuildRequires: pango-devel | |
23 | BuildRequires: pkgconfig | |
3a040e6d | 24 | BuildRequires: rpmbuild(macros) >= 1.527 |
4115f119 | 25 | BuildRequires: startup-notification-devel |
d3bc9293 | 26 | BuildRequires: tar >= 1:1.22 |
146156e1 | 27 | BuildRequires: xcb-util-cursor-devel |
4115f119 JP |
28 | BuildRequires: xcb-util-devel |
29 | BuildRequires: xcb-util-wm-devel | |
afe278b9 | 30 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.1 |
4115f119 | 31 | BuildRequires: xorg-lib-libxkbcommon-x11-devel |
d3bc9293 | 32 | BuildRequires: xz |
09abd9f4 JP |
33 | Requires(post,postun): desktop-file-utils |
34 | Requires(post,postun): gtk-update-icon-cache | |
35 | Requires(post,postun): hicolor-icon-theme | |
4115f119 | 36 | Requires: glib2 >= 1:2.40 |
afe278b9 | 37 | Requires: xorg-lib-libxkbcommon >= 0.4.1 |
4115f119 JP |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
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. | |
45 | ||
46 | %package devel | |
47 | Summary: Header files for rofi | |
48 | Group: Development/Libraries | |
49 | ||
50 | %description devel | |
51 | Header files for rofi. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' script/rofi-{sensible-terminal,theme-selector} | |
57 | ||
58 | %build | |
59 | %configure \ | |
3a040e6d JP |
60 | --disable-silent-rules \ |
61 | %{__enable_disable check} | |
4115f119 JP |
62 | |
63 | %{__make} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
09abd9f4 JP |
74 | %post |
75 | %update_desktop_database | |
76 | %update_icon_cache hicolor | |
77 | ||
78 | %postun | |
79 | %update_desktop_database | |
80 | %update_icon_cache hicolor | |
81 | ||
4115f119 JP |
82 | %files |
83 | %defattr(644,root,root,755) | |
d3bc9293 | 84 | %doc AUTHORS Changelog README.md |
4115f119 JP |
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 | |
09abd9f4 JP |
88 | %{_desktopdir}/rofi.desktop |
89 | %{_desktopdir}/rofi-theme-selector.desktop | |
90 | %{_iconsdir}/hicolor/apps/rofi.svg | |
4115f119 JP |
91 | %{_datadir}/rofi |
92 | %{_mandir}/man1/rofi.1* | |
93 | %{_mandir}/man1/rofi-sensible-terminal.1* | |
94 | %{_mandir}/man1/rofi-theme-selector.1* | |
09abd9f4 | 95 | %{_mandir}/man5/rofi-debugging.5* |
9e1c832e JP |
96 | %{_mandir}/man5/rofi-dmenu.5* |
97 | %{_mandir}/man5/rofi-keys.5* | |
3ab8c8ab | 98 | %{_mandir}/man5/rofi-script.5* |
4115f119 JP |
99 | %{_mandir}/man5/rofi-theme.5* |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %{_includedir}/rofi | |
104 | %{_pkgconfigdir}/rofi.pc |