d700f03
# Version of the .so library
cce4bb6
%global abi_ver 9
77a52cf
77a52cf
Name:           wlroots
56f8584
Version:        0.14.1
efcd328
Release:        2%{?dist}
5169317
Summary:        A modular Wayland compositor library
77a52cf
ee3c8dd
# Source files/overall project licensed as MIT, but
1a4ed19
# - LGPLv2.1+
5169317
#   * protocol/idle.xml
5169317
#   * protocol/server-decoration.xml
ee3c8dd
# Those files are processed to C-compilable files by the
1a4ed19
# `wayland-scanner` binary during build and don't alter
1a4ed19
# the main license of the binaries linking with them by
1a4ed19
# the underlying licenses.
77a52cf
License:        MIT
77a52cf
URL:            https://github.com/swaywm/%{name}
1b7871d
Source0:        %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
a31064c
Source1:        %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz.sig
b71becc
# 0FDE7BE0E88F5E48: emersion <contact@emersion.fr>
b71becc
Source2:        https://emersion.fr/.well-known/openpgpkey/hu/dj3498u4hyyarh35rkjfnghbjxug6b19#/gpgkey-0FDE7BE0E88F5E48.gpg
a31064c
1a4ed19
# this file is a modification of examples/meson.build so as to:
1a4ed19
# - make it self-contained
1a4ed19
# - only has targets for examples known to compile well (cf. "examples) global)
a31064c
Source3:        examples.meson.build
77a52cf
77a52cf
BuildRequires:  gcc
a31064c
BuildRequires:  gnupg2
3f09809
BuildRequires:  meson >= 0.56.0
d95a381
BuildRequires:  pkgconfig(egl)
d700f03
BuildRequires:  pkgconfig(gbm) >= 17.1.0
d700f03
BuildRequires:  pkgconfig(glesv2)
cce4bb6
BuildRequires:  pkgconfig(libdrm) >= 2.4.105
3f09809
BuildRequires:  pkgconfig(libinput) >= 1.14.0
78482a2
BuildRequires:  pkgconfig(libseat)
a31064c
BuildRequires:  pkgconfig(libsystemd) >= 237
1a4ed19
BuildRequires:  pkgconfig(libudev)
d700f03
BuildRequires:  pkgconfig(pixman-1)
1a4ed19
BuildRequires:  pkgconfig(wayland-client)
1b7871d
BuildRequires:  pkgconfig(wayland-egl)
cce4bb6
BuildRequires:  pkgconfig(wayland-protocols) >= 1.21
a31064c
BuildRequires:  pkgconfig(wayland-scanner)
3f09809
BuildRequires:  pkgconfig(wayland-server) >= 1.19
a31064c
BuildRequires:  pkgconfig(x11-xcb)
a31064c
BuildRequires:  pkgconfig(xcb)
1a4ed19
BuildRequires:  pkgconfig(xcb-icccm)
3f09809
BuildRequires:  pkgconfig(xcb-renderutil)
d700f03
BuildRequires:  pkgconfig(xkbcommon)
3f09809
BuildRequires:  pkgconfig(xwayland)
1a4ed19
a31064c
# only select examples are supported for being readily compilable (see SOURCE3)
d700f03
%global examples \
d700f03
    cat multi-pointer output-layout pointer rotation screencopy simple tablet touch
1a4ed19
77a52cf
%description
77a52cf
%{summary}.
77a52cf
77a52cf
77a52cf
%package        devel
77a52cf
Summary:        Development files for %{name}
77a52cf
Requires:       %{name}%{?_isa} == %{version}-%{release}
d700f03
# not required per se, so not picked up automatically by RPM
d700f03
Recommends:     pkgconfig(xcb-icccm)
1a4ed19
# for examples
1a4ed19
Suggests:       gcc
a31064c
Suggests:       meson >= 0.51.2
d700f03
Suggests:       pkgconfig(libpng)
77a52cf
77a52cf
%description    devel
77a52cf
Development files for %{name}.
77a52cf
77a52cf
77a52cf
%prep
a31064c
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
d700f03
%autosetup -p1
77a52cf
77a52cf
77a52cf
%build
d9f0c32
MESON_OPTIONS=(
d9f0c32
    # Disable options requiring extra/unpackaged dependencies
d9f0c32
    -Dexamples=false
d9f0c32
    -Dxcb-errors=disabled
d9f0c32
%ifarch s390x
d9f0c32
    # Disable -Werror on s390x: https://github.com/swaywm/wlroots/issues/2018
d9f0c32
    -Dwerror=false
d9f0c32
%endif
d9f0c32
)
d9f0c32
d9f0c32
%{meson} "${MESON_OPTIONS[@]}"
d700f03
%{meson_build}
77a52cf
77a52cf
77a52cf
%install
d700f03
%{meson_install}
77a52cf
d700f03
EXAMPLES=( %{examples} )  # Normalize whitespace by creating an array
d700f03
for example in "${EXAMPLES[@]}"; do
d700f03
    install -pm0644 -Dt '%{buildroot}/%{_pkgdocdir}/examples' examples/"${example}".[ch]
d700f03
done
a31064c
install -pm0644 -D '%{SOURCE3}' '%{buildroot}/%{_pkgdocdir}/examples/meson.build'
77a52cf
77a52cf
77a52cf
%check
d700f03
%{meson_test}
77a52cf
77a52cf
77a52cf
%files
77a52cf
%license LICENSE
d700f03
%doc README.md
d700f03
%doc %dir %{_pkgdocdir}
d700f03
%{_libdir}/lib%{name}.so.%{abi_ver}*
77a52cf
77a52cf
d700f03
%files  devel
77a52cf
%doc %{_pkgdocdir}/examples
77a52cf
%{_includedir}/wlr
77a52cf
%{_libdir}/lib%{name}.so
77a52cf
%{_libdir}/pkgconfig/%{name}.pc
77a52cf
77a52cf
77a52cf
%changelog
efcd328
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-2
efcd328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
efcd328
56f8584
* Thu Jul 08 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.14.1-1
56f8584
- Update to wlroots 0.14.1
56f8584
308144d
* Wed Jul 07 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.14.0-2
308144d
- Add patch for a few more issues with cursors, multi-GPUs and nouveau
308144d
cce4bb6
* Wed Jun 23 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.14.0-1
cce4bb6
- Update to 0.14.0
951089d
- Add upstream patch for cursor issues on scaled outputs
cce4bb6
78482a2
* Tue Jun 01 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.13.0-2
78482a2
- Enable libseat session backend
78482a2
3f09809
* Wed Apr 07 2021 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.13.0-1
3f09809
- Update to 0.13.0 (#1947218)
3f09809
e0af634
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
e0af634
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e0af634
b71becc
* Sun Nov 08 2020 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.12.0-1
b71becc
- Updated to version 0.12.0
b71becc
7acdd30
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
7acdd30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7acdd30
d95a381
* Wed Jul 15 2020 Aleksei Bavshin <alebastr89@gmail.com> - 0.11.0-1
d95a381
- Updated to version 0.11.0
d95a381
740b663
* Sat May 09 2020 Till Hofmann <thofmann@fedoraproject.org> - 0.10.1-2
740b663
- Add patch from upstream #2167 to fix #1829212
740b663
1740599
* Tue Mar 24 2020 Nikhil Jha <hi@nikhiljha.com> - 0.10.1-1
1740599
- Updated to version 0.10.1 (https://github.com/swaywm/wlroots/releases/tag/0.10.1)
1740599
7b0365d
* Mon Feb 10 2020 Jan Staněk <jstanek@redhat.com> - 0.10.0-6
7b0365d
- Propagate mesa-libEGL-devel workaround to -devel requirements
7b0365d
4136327
* Sat Feb 08 2020 Simone Caronni <negativo17@gmail.com> - 0.10.0-5
4136327
- RDP backend is no longer in wlroots 0.10.
4136327
0ac0c0b
* Fri Feb 07 2020 Simone Caronni <negativo17@gmail.com> - 0.10.0-4
0ac0c0b
- Rebuild for updated FreeRDP.
0ac0c0b
d9f0c32
* Tue Feb 04 2020 Jan Staněk <jstanek@redhat.com> - 0.10.0-3
d9f0c32
- Disable -Werror compilation flag on s390x
d9f0c32
  (https://github.com/swaywm/wlroots/issues/2018)
d9f0c32
43813c3
* Wed Jan 29 2020 Jan Staněk <jstanek@redhat.com> - 0.10.0-2
43813c3
- Backport fix for compilation with GCC 10
43813c3
728e4bb
* Tue Jan 28 2020 Joe Walker <grumpey0@gmail.com> - 0.10.0
a351d84
- Updated to version 0.10.0 (https://github.com/swaywm/wlroots/releases/tag/0.10.0)
a351d84
a351d84
Mon Jan 20 2020 Jan Staněk <jstanek@redhat.com> - 0.9.1-1
a351d84
- Upgrade to version 0.9.1 (https://github.com/swaywm/wlroots/releases/tag/0.9.1)
1b7871d
d700f03
* Thu Sep 12 2019 Jan Staněk <jstanek@redhat.com> - 0.7.0-2
d700f03
- Spec file cleanup
d700f03
16b0257
* Thu Aug 29 2019 Jeff Peeler <jpeeler@redhat.com> - 0.7.0-1
16b0257
- Updated to version 0.7.0
16b0257
a01fb9f
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
a01fb9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a01fb9f
1a4ed19
* Thu May 09 2019 Jan Pokorný <jpokorny+rpm-wlroots@fedoraproject.org> - 0.6.0-1
1a4ed19
- Updated to version 0.6.0
1a4ed19
  (see https://github.com/swaywm/wlroots/releases/tag/0.6.0)
1a4ed19
- Overhaul dependencies and shipped examples in -devel
1a4ed19
807d421
* Tue Apr 16 2019 Adam Williamson <awilliam@redhat.com> - 0.5.0-2
807d421
- Rebuild with Meson fix for #1699099
807d421
ee3c8dd
* Thu Mar 14 2019 Jan Pokorný <jpokorny+rpm-wlroots@fedoraproject.org> - 0.5.0-1
ee3c8dd
- Updated to version 0.5.0 (0.2, 0.3, 0.4, 0.4.1 releases effectively skipped)
ee3c8dd
- Avoid building some parts that are not shipped in binary form, anyway
ee3c8dd
- Minor spec cleanup (clarify the licensing comment, licensecheck's NTP ~ MIT,
ee3c8dd
  ldconfig_scriptlets no longer relevant, arch-specific tweak no longer needed)
ee3c8dd
0b73d08
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-5
0b73d08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0b73d08
1c44ecf
* Tue Nov 27 2018 Jan Pokorný <jpokorny+rpm-wlroots@fedoraproject.org> - 0.1-4
1c44ecf
- Fix Firefox crash around text selection/clipboard
1c44ecf
  (https://github.com/swaywm/wlroots/pull/1380)
1c44ecf
1c44ecf
* Tue Nov 27 2018 Jan Pokorný <jpokorny+rpm-wlroots@fedoraproject.org> - 0.1-3
946341d
- Make Firefox run smoother (https://github.com/swaywm/wlroots/pull/1384)
946341d
1c44ecf
* Wed Nov 07 2018 Jan Pokorný <jpokorny+rpm-wlroots@fedoraproject.org> - 0.1-2
160d7ba
- Fix incorrect "pkgconfig" version
160d7ba
1c44ecf
* Wed Oct 31 2018 Jan Pokorný <jpokorny+rpm-wlroots@fedoraproject.org> - 0.1-1
5169317
- Updated to historically first official release
5169317
- Turned off implicit enablement of all 'auto' build features under Meson,
5169317
  since xcb-errors is not available at this time
5169317
- Added BR: libpng
5169317
- Expanding spec comment on source files not covered with MIT license
5169317
15577fe
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.9.20180106git03faf17
15577fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
15577fe
9911ea8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.8.20180106git03faf17
9911ea8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9911ea8
ffad169
* Sat Jan 13 2018 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.7.20180106git03faf17
ffad169
- Updated snapshot
ffad169
77a52cf
* Wed Jan 03 2018 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.6.20180102git767df15
77a52cf
- Initial import (#1529352)
77a52cf
77a52cf
* Wed Jan 03 2018 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.5.20180102git767df15
77a52cf
- Updated snapshot
77a52cf
77a52cf
* Sun Dec 31 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.4.20171229git80ed4d4
77a52cf
- Add licensing clarification
77a52cf
- Add BR: gcc
77a52cf
77a52cf
* Sat Dec 30 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.3.20171229git80ed4d4
77a52cf
- Updated snapshot
77a52cf
77a52cf
* Wed Dec 27 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.2.20171227giteeb7cd8
77a52cf
- Optimize spec-file
77a52cf
77a52cf
* Wed Dec 27 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.1-0.1.20171227giteeb7cd8
77a52cf
- Initial rpm release (#1529352)