# # spec file for package polybar # Created for openSUSE and Fedora # Name: polybar Version: 3.3.0 Release: 6%{?dist} Summary: helps users build beautiful and highly customizable status bars Group: System/GUI/Other License: MIT URL: https://github.com/jaagr/%{name} Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar Patch0: polybar-3.3.0-libtype.patch BuildRequires: gcc-c++ BuildRequires: cmake >= 3.1 BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-util) BuildRequires: pkgconfig(xcb-proto) BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(xcb-ewmh) BuildRequires: pkgconfig(xcb-xrm) BuildRequires: pkgconfig(xcb-cursor) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(jsoncpp) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libmpdclient) BuildRequires: pkgconfig(libnl-genl-3.0) %if 0%{?fedora} BuildRequires: python2 BuildRequires: wireless-tools-devel BuildRequires: i3-ipc %else BuildRequires: pkgconfig BuildRequires: python-xml BuildRequires: pkgconfig(python) %if 0%{?suse_version} <= 1315 BuildRequires: i3-devel %else BuildRequires: i3-gaps-devel %endif %if 0%{?suse_version} BuildRequires: libiw-devel %else BuildRequires: wireless-tools-devel %endif %endif %description Polybar aims to help users build beautiful and highly customizable status bars for their desktop enclean fullvironment, without the need of having a black belt in shell scripting. The main purpose of Polybar is to help users create awesome status bars. It has built-in functionality to display information about the most commonly used services. %prep %setup -q -n %{name} %patch0 -p1 %build %if 0%{?fedora} %cmake . %else %cmake %endif %make_build %install %make_install %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_bindir}/%{name}-msg %{_mandir}/man1/%{name}.1.gz %{_datadir}/bash-completion/completions/%{name} %{_datadir}/zsh/site-functions/_%{name} %{_datadir}/zsh/site-functions/_%{name}_msg %config(noreplace) %{_datadir}/doc/%{name}/config %changelog