]> git.pld-linux.org Git - packages/polybar.git/blob - polybar.spec
46fcd6c78157f51d084200dcb31da589027435cb
[packages/polybar.git] / polybar.spec
1 Summary:        Fast and easy-to-use status bar
2 Name:           polybar
3 Version:        3.4.3
4 Release:        2
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
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 %if "%{_rpmversion}" >= "5"
51 BuildArch:      noarch
52 %endif
53
54 %description -n bash-completion-polybar
55 bash-completion for polybar.
56
57 %package -n zsh-completion-polybar
58 Summary:        zsh-completion for polybar
59 Summary(pl.UTF-8):      Uzupełnianie nazw w zsh dla polybar
60 Group:          Applications/Shells
61 Requires:       %{name} = %{version}-%{release}
62 Requires:       zsh
63 %if "%{_rpmversion}" >= "5"
64 BuildArch:      noarch
65 %endif
66
67 %description -n zsh-completion-polybar
68 zsh-completion for polybar.
69
70 %prep
71 %setup -q -n %{name}
72 %patch0 -p1
73
74 %build
75 install -d build
76 cd build
77 %cmake ..
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} -C build install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc README.md SUPPORT.md config
93 %attr(755,root,root) %{_bindir}/polybar
94 %attr(755,root,root) %{_bindir}/polybar-msg
95 %{_mandir}/man1/polybar.1*
96
97 %files -n bash-completion-polybar
98 %defattr(644,root,root,755)
99 %{bash_compdir}/polybar
100
101 %files -n zsh-completion-polybar
102 %defattr(644,root,root,755)
103 %{zsh_compdir}/_polybar
104 %{zsh_compdir}/_polybar_msg
This page took 0.091502 seconds and 2 git commands to generate.