]> git.pld-linux.org Git - packages/polybar.git/blob - polybar.spec
2facafbd1e7257d7ee5224bea75a8a49f7711cdc
[packages/polybar.git] / polybar.spec
1 Summary:        Fast and easy-to-use status bar
2 Name:           polybar
3 Version:        3.4.3
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
8 # Source0-md5:  a5db8e1946f72d80b7ae45776c59b6a4
9 Patch0:         %{name}-consistent_python.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-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
22 BuildRequires:  pulseaudio-devel
23 BuildRequires:  python3 >= 3.5
24 BuildRequires:  python3-Sphinx
25 BuildRequires:  python3-xcbgen
26 BuildRequires:  rpmbuild(macros) >= 1.719
27 BuildRequires:  sphinx-pdg
28 BuildRequires:  xcb-proto
29 BuildRequires:  xcb-util-cursor-devel
30 BuildRequires:  xcb-util-devel
31 BuildRequires:  xcb-util-image-devel
32 BuildRequires:  xcb-util-wm-devel
33 BuildRequires:  xcb-util-xrm-devel
34 Requires:       jsoncpp >= 1.7.7
35 Requires:       libxcb >= 1.12
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 Polybar aims to help users build beautiful and highly customizable
40 status bars for their desktop environment, without the need of having
41 a black belt in shell scripting.
42
43 %package -n bash-completion-polybar
44 Summary:        bash-completion for polybar
45 Group:          Applications/Shells
46 Requires:       %{name} = %{version}-%{release}
47 Requires:       bash-completion >= 2.0
48 %if "%{_rpmversion}" >= "5"
49 BuildArch:      noarch
50 %endif
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 %if "%{_rpmversion}" >= "5"
62 BuildArch:      noarch
63 %endif
64
65 %description -n zsh-completion-polybar
66 zsh-completion for polybar.
67
68 %prep
69 %setup -q -n %{name}
70 %patch0 -p1
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)
90 %doc README.md SUPPORT.md config
91 %attr(755,root,root) %{_bindir}/polybar
92 %attr(755,root,root) %{_bindir}/polybar-msg
93 %{_mandir}/man1/polybar.1*
94
95 %files -n bash-completion-polybar
96 %defattr(644,root,root,755)
97 %{bash_compdir}/polybar
98
99 %files -n zsh-completion-polybar
100 %defattr(644,root,root,755)
101 %{zsh_compdir}/_polybar
102 %{zsh_compdir}/_polybar_msg
This page took 0.080301 seconds and 2 git commands to generate.