]> git.pld-linux.org Git - packages/rofi.git/blob - rofi.spec
754a1e555c5fcfae7ed24d6814ef43f6a3218d29
[packages/rofi.git] / rofi.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # don't build tests
4
5 Summary:        A window switcher, application launcher and dmenu replacement
6 Name:           rofi
7 Version:        1.7.3
8 Release:        1
9 License:        MIT
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
14 BuildRequires:  bison
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
32 BuildRequires:  xz
33 Requires:       glib2 >= 1:2.40
34 Requires:       xorg-lib-libxkbcommon >= 0.4.1
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
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.
42
43 %package devel
44 Summary:        Header files for rofi
45 Group:          Development/Libraries
46
47 %description devel
48 Header files for rofi.
49
50 %prep
51 %setup -q
52
53 %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' script/rofi-{sensible-terminal,theme-selector}
54
55 %build
56 %configure \
57         --disable-silent-rules \
58         %{__enable_disable check}
59
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
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
77 %{_datadir}/rofi
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*
85
86 %files devel
87 %defattr(644,root,root,755)
88 %{_includedir}/rofi
89 %{_pkgconfigdir}/rofi.pc
This page took 0.082311 seconds and 3 git commands to generate.