]> git.pld-linux.org Git - packages/rofi.git/blob - rofi.spec
up to 1.7.5
[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.5
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:  284aea347005af52354a6a8c492a8c03
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(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)
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 \
60         --disable-silent-rules \
61         %{__enable_disable check}
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
74 %post
75 %update_desktop_database
76 %update_icon_cache hicolor
77
78 %postun
79 %update_desktop_database
80 %update_icon_cache hicolor
81
82 %files
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
91 %{_datadir}/rofi
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*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %{_includedir}/rofi
104 %{_pkgconfigdir}/rofi.pc
This page took 0.133976 seconds and 3 git commands to generate.