1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/contrib/rpm/polybar.spec
2019-01-29 20:10:31 +01:00

70 lines
1.6 KiB
RPMSpec

#
# spec file for package polybar
# Initially created for openSUSE
#
Name: polybar
Version: 3.3.0
Release: 0
Summary: A fast and easy-to-use status bar
License: MIT
Group: System/GUI/Other
URL: https://github.com/jaagr/polybar
Source: https://github.com/jaagr/polybar/archive/%{version}.tar.gz
BuildRequires: clang >= 3.4
BuildRequires: cmake >= 3.1
BuildRequires: pkgconfig
BuildRequires: python-xml
BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-wm-devel
# optional dependency
BuildRequires: pkgconfig(alsa)
# main dependency
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(jsoncpp)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-proto)
BuildRequires: pkgconfig(xcb-util)
%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
%description
A fast and easy-to-use status bar for tilling WM
%prep
%setup -q
%build
%cmake
make
%install
%cmake_install
%files
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions
%dir %{_datadir}/doc/%{name}
%dir %{_datadir}/zsh/
%dir %{_datadir}/zsh/site-functions
%{_bindir}/%{name}
%{_bindir}/%{name}-msg
%{_datadir}/doc/%{name}/config
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/zsh/site-functions/_%{name}
%{_datadir}/zsh/site-functions/_%{name}_msg
%changelog