%global _enable_debug_package 0 %global debug_package %{nil} %global __os_install_post /usr/lib/rpm/brp-compress %{nil} Name: bspwm Version: 0.9.10 Release: 1.20210518git4b6f376%{?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 # https://src.fedoraproject.org/rpms/bspwm/blob/rawhide/f/bspwm.spec BuildRequires: gcc BuildRequires: xcb-util-devel BuildRequires: xcb-util-wm-devel BuildRequires: xcb-util-keysyms-devel BuildRequires: desktop-file-utils BuildRequires: make %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 # https://src.fedoraproject.org/rpms/bspwm/raw/rawhide/f/bspwm.spec %check desktop-file-validate %{buildroot}/%{_datadir}/xsessions/%{name}.desktop %files %license LICENSE %{_bindir}/%{name} %{_bindir}/bspc %{_docdir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_mandir}/man1/bspc.1.gz %{_datadir}/bash-completion/completions/bspc %{_datadir}/zsh/site-functions/_bspc %{_datadir}/fish/vendor_completions.d/bspc.fish %{_datadir}/xsessions/%{name}.desktop %changelog