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