jpeeler / rpms / sway

Forked from rpms/sway 5 years ago
Clone

Blame sway.spec

b043474
%global pre rc2
a9ee2fe
Name:           sway
b043474
Version:        0.11
b043474
Release:        0.%{pre}%{?dist}
a9ee2fe
Summary:        i3-compatible window manager for Wayland
a9ee2fe
Group:          User Interface/X
a9ee2fe
License:        MIT
a9ee2fe
URL:            https://github.com/SirCmpwn/sway
b043474
Source0:        https://github.com/SirCmpwn/%{name}/archive/%{version}-%{pre}.tar.gz
b043474
#Source0:        https://github.com/SirCmpwn/%{name}/archive/%{version}.tar.gz
a9ee2fe
BuildRequires:  cmake
a9ee2fe
BuildRequires:  pkgconfig(wlc)
a9ee2fe
BuildRequires:  wayland-devel
a9ee2fe
BuildRequires:  pkgconfig(wayland-client)
a9ee2fe
BuildRequires:  pkgconfig(wayland-cursor)
a9ee2fe
BuildRequires:  pkgconfig(wayland-egl)
a9ee2fe
BuildRequires:  pkgconfig(wayland-server)
a9ee2fe
BuildRequires:  asciidoc
a9ee2fe
BuildRequires:  pkgconfig(libpcre)
b043474
BuildRequires:  pkgconfig(libcap)
a9ee2fe
BuildRequires:  pkgconfig(json-c)
a9ee2fe
BuildRequires:  pkgconfig(pango)
a9ee2fe
BuildRequires:  pkgconfig(cairo)
a9ee2fe
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
a9ee2fe
BuildRequires:  pam-devel
a9ee2fe
Requires:       dmenu
3dec8a0
# dmenu requires XWayland, as well as rxvt and many programs they user may want to run
3dec8a0
Requires:       xorg-x11-server-Xwayland
d90a7b8
Recommends:     rxvt-unicode-256color-ml
d90a7b8
Recommends:     ImageMagick
a9ee2fe
a9ee2fe
%description
a9ee2fe
Sway is a tiling window manager supporting Wayland compositor protocol and 
a9ee2fe
i3-compatible configuration.
a9ee2fe
a9ee2fe
%prep
b043474
%autosetup -n %{name}-%{version}-%{pre}
a9ee2fe
mkdir %{_target_platform}
a9ee2fe
a9ee2fe
%build
a9ee2fe
pushd %{_target_platform}
a9ee2fe
%cmake \
a9ee2fe
       -DBUILD_SHARED_LIBS:BOOL=OFF \
a9ee2fe
       -Dzsh-completions=YES \
a9ee2fe
       -Ddefault-wallpaper=NO \
a9ee2fe
       -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
a9ee2fe
       ..
a9ee2fe
popd
a9ee2fe
%make_build -C %{_target_platform}
a9ee2fe
a9ee2fe
%install
a9ee2fe
%make_install -C %{_target_platform}
a9ee2fe
# Set default terminal to urxvt256c-ml
a9ee2fe
sed -i 's/^set $term urxvt$/set \$term urxvt256c-ml/' %{buildroot}%{_sysconfdir}/sway/config
a9ee2fe
# Set Fedora background as default background
a9ee2fe
sed -i "s|^output \* bg .*|output * bg /usr/share/backgrounds/f%{fedora}/default/normalish/f%{fedora}.png fill|" %{buildroot}%{_sysconfdir}/sway/config
a9ee2fe
a9ee2fe
%files
a9ee2fe
%license LICENSE
a9ee2fe
%doc README.md
a9ee2fe
%dir %{_sysconfdir}/sway
a9ee2fe
%config(noreplace) %{_sysconfdir}/sway/config
b043474
%dir %{_sysconfdir}/sway/config.d
b043474
%config(noreplace) %{_sysconfdir}/sway/config.d/security
a9ee2fe
%config %{_sysconfdir}/pam.d/swaylock
a9ee2fe
%{_mandir}/man1/sway*.1*
a9ee2fe
%{_mandir}/man5/sway*.5*
b043474
%{_mandir}/man7/sway*.7*
a9ee2fe
%{_bindir}/sway
a9ee2fe
%{_bindir}/swaybar
a9ee2fe
%{_bindir}/swaybg
a9ee2fe
%{_bindir}/swaygrab
a9ee2fe
%{_bindir}/swaylock
a9ee2fe
%{_bindir}/swaymsg
a9ee2fe
%{_datadir}/wayland-sessions/sway.desktop
a9ee2fe
%{_datadir}/zsh/site-functions/_sway*
a9ee2fe
a9ee2fe
%changelog
b043474
* Sat Nov 26 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.10-2
3dec8a0
- Require Xwayland instead of just suggesting it, since at the moment is needed by dmenu (and other)
3dec8a0
b043474
* Wed Oct 26 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.10-1
ac7ef16
- Update to 0.10
ac7ef16
b043474
* Thu Oct 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.10-0.1.rc3
68bf3a4
- Update to 0.10-rc3
68bf3a4
b043474
* Tue Oct 04 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.10-0.1.rc2
7c3f853
- Update to 0.10-rc2
7c3f853
b043474
* Wed Sep 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.10-0.1.rc1
955201e
- Update to 0.10-rc1
955201e
b043474
* Tue Sep 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.9-4
d90a7b8
- Do not Require the urxvt shell
d90a7b8
- Rebuild due to a wlc rebuild
d90a7b8
- Add Recommends ImageMagick
d90a7b8
b043474
* Wed Aug 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.9-3
a9ee2fe
- Remove some compilation flags that were not needed
a9ee2fe
b043474
* Sun Aug 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.9-2
a9ee2fe
- Add dmenu dependency
a9ee2fe
- Add rxvt-unicode-256color-ml dependency
a9ee2fe
- Use urxvt256c-ml instead of urxvt by default
a9ee2fe
- Improve default wallpaper
a9ee2fe
- Add suggests xorg-x11-server-Xwayland
a9ee2fe
b043474
* Wed Aug 03 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.9-1
a9ee2fe
- Upgrade to 0.9
a9ee2fe
b043474
* Thu Jul 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.8-2
a9ee2fe
- Move ffmpeg and ImageMagick from Required to Suggested
a9ee2fe
b043474
* Thu Jul 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.8-1
a9ee2fe
- Update to version 0.8
a9ee2fe
- Re-enable ZSH bindings
a9ee2fe
- Remove sway wallpapers
a9ee2fe
b043474
* Sun May 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.7-1
a9ee2fe
- Update to version 0.7
a9ee2fe
- Drop ZSH bindings that are no longer shipped with Sway
a9ee2fe
b043474
* Thu May 05 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.6-1
a9ee2fe
- Update to current upstream version
a9ee2fe
b043474
* Wed Apr 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.3-1
a9ee2fe
- Update to current upstream version
a9ee2fe
b043474
* Sun Feb 14 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0-1.20160214git016a774
a9ee2fe
- Initial packaging