]>
Commit | Line | Data |
---|---|---|
1 | Summary: Fast and easy-to-use status bar | |
2 | Name: polybar | |
3 | Version: 3.5.4 | |
4 | Release: 1 | |
5 | License: MIT, BSD | |
6 | Group: X11/Window Managers | |
7 | Source0: https://github.com/polybar/polybar/releases/download/%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: adc534fe17ce8fde1b4e77b04545cec2 | |
9 | Patch0: %{name}-mpd-overhead.patch | |
10 | URL: https://polybar.github.io/ | |
11 | BuildRequires: alsa-lib-devel | |
12 | BuildRequires: cairo-devel | |
13 | BuildRequires: cmake >= 3.1 | |
14 | BuildRequires: curl-devel | |
15 | BuildRequires: i3 | |
16 | BuildRequires: i3-devel | |
17 | BuildRequires: jsoncpp-devel >= 1.7.7 | |
18 | BuildRequires: libmpdclient-devel | |
19 | BuildRequires: libnl-devel | |
20 | BuildRequires: libstdc++-devel >= 6:5.1 | |
21 | BuildRequires: libxcb-devel >= 1.12 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: pulseaudio | |
24 | BuildRequires: pulseaudio-devel | |
25 | BuildRequires: python3 >= 3.5 | |
26 | BuildRequires: python3-Sphinx | |
27 | BuildRequires: python3-xcbgen | |
28 | BuildRequires: rpmbuild(macros) >= 1.719 | |
29 | BuildRequires: sphinx-pdg | |
30 | BuildRequires: xcb-proto | |
31 | BuildRequires: xcb-util-cursor-devel | |
32 | BuildRequires: xcb-util-devel | |
33 | BuildRequires: xcb-util-image-devel | |
34 | BuildRequires: xcb-util-wm-devel | |
35 | BuildRequires: xcb-util-xrm-devel | |
36 | Requires: jsoncpp >= 1.7.7 | |
37 | Requires: libxcb >= 1.12 | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | Polybar aims to help users build beautiful and highly customizable | |
42 | status bars for their desktop environment, without the need of having | |
43 | a black belt in shell scripting. | |
44 | ||
45 | %package -n bash-completion-polybar | |
46 | Summary: bash-completion for polybar | |
47 | Group: Applications/Shells | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | Requires: bash-completion >= 2.0 | |
50 | BuildArch: noarch | |
51 | ||
52 | %description -n bash-completion-polybar | |
53 | bash-completion for polybar. | |
54 | ||
55 | %package -n zsh-completion-polybar | |
56 | Summary: zsh-completion for polybar | |
57 | Summary(pl.UTF-8): Uzupełnianie nazw w zsh dla polybar | |
58 | Group: Applications/Shells | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: zsh | |
61 | BuildArch: noarch | |
62 | ||
63 | %description -n zsh-completion-polybar | |
64 | zsh-completion for polybar. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | %patch0 -p1 | |
69 | ||
70 | %build | |
71 | install -d build | |
72 | cd build | |
73 | %cmake .. | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} -C build install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc README.md SUPPORT.md config | |
89 | %attr(755,root,root) %{_bindir}/polybar | |
90 | %attr(755,root,root) %{_bindir}/polybar-msg | |
91 | %{_mandir}/man1/polybar.1* | |
92 | %{_mandir}/man5/polybar.5* | |
93 | ||
94 | %files -n bash-completion-polybar | |
95 | %defattr(644,root,root,755) | |
96 | %{bash_compdir}/polybar | |
97 | ||
98 | %files -n zsh-completion-polybar | |
99 | %defattr(644,root,root,755) | |
100 | %{zsh_compdir}/_polybar | |
101 | %{zsh_compdir}/_polybar_msg |