jpeeler / rpms / sway

Forked from rpms/sway 5 years ago
Clone
a9ee2fe
Name:           sway
13ab68b
Version:        0.15.2
2b0de77
Release:        3%{?dist}
a9ee2fe
Summary:        i3-compatible window manager for Wayland
a9ee2fe
License:        MIT
cc8f5e5
URL:            https://github.com/swaywm/sway
e1bfc56
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
deabafb
2b0de77
Patch0:         sway-0.15.2-disable-Werror.patch
2b0de77
baba7ab
BuildRequires:  asciidoc
a9ee2fe
BuildRequires:  cmake
baba7ab
BuildRequires:  gcc-c++
baba7ab
BuildRequires:  make
baba7ab
BuildRequires:  pam-devel
baba7ab
BuildRequires:  pkgconfig(cairo)
c9bbf17
BuildRequires:  pkgconfig(dbus-1)
baba7ab
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
baba7ab
BuildRequires:  pkgconfig(json-c)
baba7ab
BuildRequires:  pkgconfig(libcap)
baba7ab
BuildRequires:  pkgconfig(libpcre)
baba7ab
BuildRequires:  pkgconfig(pango)
a9ee2fe
BuildRequires:  pkgconfig(wayland-client)
a9ee2fe
BuildRequires:  pkgconfig(wayland-cursor)
a9ee2fe
BuildRequires:  pkgconfig(wayland-egl)
a9ee2fe
BuildRequires:  pkgconfig(wayland-server)
baba7ab
BuildRequires:  pkgconfig(wlc)
baba7ab
BuildRequires:  wayland-devel
62834da
# Dmenu is the default launcher in sway
a9ee2fe
Requires:       dmenu
c9bbf17
Requires:       libinput >= 1.6.0
62834da
# By default the Fedora background is used
62834da
Recommends:     f%{fedora}-backgrounds-base
62834da
# dmenu (as well as rxvt any many others) requires XWayland on Sway
3dec8a0
Requires:       xorg-x11-server-Xwayland
62834da
# Sway binds the terminal shortcut to one specific terminal. In our case urxvtc-ml
d90a7b8
Recommends:     rxvt-unicode-256color-ml
62834da
# ImageMagick is needed to take screenshots with swaygrab
d90a7b8
Recommends:     ImageMagick
a9ee2fe
a9ee2fe
%description
9c8974d
Sway is a tiling window manager supporting Wayland compositor protocol and
a9ee2fe
i3-compatible configuration.
a9ee2fe
a9ee2fe
%prep
0416b13
%autosetup -p 1
a9ee2fe
mkdir %{_target_platform}
a9ee2fe
a9ee2fe
%build
c9bbf17
#export CFLAGS="%{optflags} -Wno-error"
c9bbf17
export CFLAGS="%{optflags}"
f9d0a69
export LDFLAGS="%{__global_ldflags}"
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
deabafb
%dir %{_sysconfdir}/sway/security.d
deabafb
%config(noreplace) %{_sysconfdir}/sway/security.d/00-defaults
a9ee2fe
%config %{_sysconfdir}/pam.d/swaylock
a9ee2fe
%{_mandir}/man1/sway*.1*
a9ee2fe
%{_mandir}/man5/sway*.5*
b043474
%{_mandir}/man7/sway*.7*
cde5308
%caps(cap_sys_ptrace,cap_sys_tty_config=eip) %{_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
2b0de77
* Thu Feb 07 2019 Björn Esser <besser82@fedoraproject.org> - 0.15.2-3
2b0de77
- Add patch to disable -Werror, fixes FTBFS
2b0de77
7447d24
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-2
7447d24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7447d24
13ab68b
* Thu Jul 26 2018 Till Hofmann <thofmann@fedoraproject.org> - 0.15.2-1
13ab68b
- Update to stable release 0.15.2
13ab68b
ace7dbc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-4
ace7dbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ace7dbc
0842968
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 0.15.1-3
0842968
- Rebuilt for libjson-c.so.4 (json-c v0.13.1)
0842968
337291d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-2
337291d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
337291d
9e1f5bd
* Sat Dec 30 2017 Till Hofmann <thofmann@fedoraproject.org> - 0.15.1-1
9e1f5bd
- Update to 0.15.1
9e1f5bd
- Remove upstreamed patch (upstream PR #1517)
9e1f5bd
0416b13
* Thu Dec 14 2017 Björn Esser <besser82@fedoraproject.org> - 0.15.0-4
0416b13
- Add upstream patch fixing issues with json-c
0416b13
bc85e0d
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 0.15.0-3
bc85e0d
- Rebuilt for libjson-c.so.3
bc85e0d
98eeed2
* Sat Nov 11 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.15.0-2
98eeed2
- Bump for wlc rebuild
98eeed2
375f7b4
* Fri Nov 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.15.0-1
375f7b4
- update to stable 0.15.0
375f7b4
e1bfc56
* Tue Oct 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.15.0-0.3.rc1
e1bfc56
- Rebuild for fix for #1388
e1bfc56
- fix versioning according to guidelines
e1bfc56
cc8f5e5
* Mon Oct 09 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.15.rc1-1
cc8f5e5
- Update to 0.15.0-rc1
cc8f5e5
- remove patch
cc8f5e5
- fix sources link
cc8f5e5
b7e946f
* Thu Oct 05 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.14.0-3
b7e946f
- Fix freezing
b7e946f
d6b4ab3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
d6b4ab3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d6b4ab3
c9bbf17
* Wed Aug 02 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.14.0-1
c9bbf17
- Update to 0.14.0
c9bbf17
- add libinput as dependency
c9bbf17
- add dbus as build dependency for tray icon support
c9bbf17
- remove -Wno-error flag
c9bbf17
c9c38c9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-2
c9c38c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c9c38c9
5e1ab4b
* Sun Jun 18 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.13.0-1
5e1ab4b
- Update to 0.13.0
5e1ab4b
881866d
* Mon Apr 03 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.12.2-1
881866d
- Update to 0.12.2
881866d
6c31314
* Wed Mar 15 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.12.1-1
6c31314
- Update to 0.12.1
6c31314
793e93e
* Wed Mar 08 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.12-1
793e93e
- Update to 0.12
793e93e
8663d08
* Tue Feb 28 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.12-0.rc2
8663d08
- Update to 0.12-rc2
8663d08
deabafb
* Sat Feb 25 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.12-0.rc1
deabafb
- Update to 0.12-rc1
deabafb
764d1bf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-7.gitb3c0aa3
764d1bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
764d1bf
a8d434a
* Tue Jan 24 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-6.gitb3c0aa3
a8d434a
- Update to HEAD
a8d434a
ba9fb90
* Thu Jan 12 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-5
ba9fb90
- Fix bug #1008 with backported patch
ba9fb90
b3bf384
* Thu Dec 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-4
b3bf384
- Set ptrace capability for sway
b3bf384
119afa8
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-3
119afa8
- Fix LD_LIBRARY_PATH
119afa8
f5909b5
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-2
f5909b5
- Fix bug #971 with backported patch
f5909b5
980fedf
* Tue Dec 27 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-1
980fedf
- Update to 0.11
980fedf
ba70645
* Sun Dec 18 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-0.rc3
ba70645
- Update to 0.11-rc3
ba70645
ba70645
* Sat Dec 17 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.11-0.rc2
ba70645
- Update to 0.11-rc2
ba70645
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