%global _enable_debug_package 0 %global debug_package %{nil} %global __os_install_post /usr/lib/rpm/brp-compress %{nil} Name: bspwm Version: 0.9.6 Release: 1.20180712git4e32d3b%{?dist} Summary: Tiling window manager based on binary space partitioning License: BSD URL: https://github.com/baskerville/%{name} Source0: %{url}/archive/master.tar.gz #Source0: %{url}/archive/%{version}.tar.gz BuildRequires: gcc make BuildRequires: libxcb-devel BuildRequires: xcb-util-devel BuildRequires: xcb-util-wm-devel BuildRequires: xcb-util-keysyms-devel Requires: libxcb Requires: xcb-util Requires: xcb-util-wm Requires: xcb-util-keysyms %description bspwm is a tiling window manager that represents windows as the leaves of a full binary tree. %prep ## https://fedoraproject.org/wiki/How_to_create_an_RPM_package#SPEC_file_overview # %%autosetup ## NOTE: comment **macros** with '%%' %autosetup -n %{name}-master ## git version %build %make_build VERBOSE=1 %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" %install %make_install PREFIX="%{_prefix}" # https://github.com/baskerville/bspwm/blob/master/Makefile %files %defattr(-,root,root) %{_bindir}/bspc %{_bindir}/bspwm %{_docdir}/bspwm %{_datadir}/bash-completion/completions/bspc %{_datadir}/fish/vendor_completions.d/bspc.fish %{_datadir}/zsh/site-functions/_bspc %{_mandir}/man1/bspc.1.gz %{_mandir}/man1/bspwm.1.gz %{_datadir}/xsessions/bspwm.desktop %license LICENSE %changelog