%{!?_pkgdocdir:%global _pkgdocdir %_defaultdocdir/%{name}-%{version}} %global api_ver 2 Name: wlroots Version: 0.5.0 Release: 1%{?dist} Summary: Pluggable, composable modules for building a Wayland compositor # All files in the sources are licensed as MIT, but # * protocol/server-decoration.xml [LGPL (v2.1 or later)] # * protocol/gamma-control.xml [NTP (legal disclaimer)] # # Those files are processed to c-compilable files by the # `wayland-scanner` binary during build and don't alter the # main license of the binaries linking with them by the # underlying licenses. License: MIT URL: https://github.com/swaywm/%{name} Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: meson BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gbm) >= 17.1.0 BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libdrm) >= 2.4.95 BuildRequires: pkgconfig(libinput) >= 1.7.0 BuildRequires: pkgconfig(libsystemd) >= 237 BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(pixman-1) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-composite) BuildRequires: pkgconfig(xcb-errors) BuildRequires: pkgconfig(xcb-icccm) BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(xcb-render) BuildRequires: pkgconfig(xcb-xfixes) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-protocols) >= 1.17 BuildRequires: pkgconfig(wayland-server) >= 1.16 BuildRequires: pkgconfig(xkbcommon) %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} == %{version}-%{release} Requires: libinput-devel%{?_isa} Requires: libxcb-devel%{?_isa} Requires: libxkbcommon-devel%{?_isa} Requires: mesa-libEGL-devel%{?_isa} Requires: pixman-devel%{?_isa} Requires: systemd-devel%{?_isa} Requires: wayland-devel%{?_isa} Requires: xcb-util-wm-devel%{?_isa} %description devel Development files for %{name}. %prep %autosetup -p 1 %build %ifarch %{arm} %{ix86} export CFLAGS="%{optflags} -Wno-error=format=" export CXXFLAGS="%{optflags} -Wno-error=format=" %endif %meson %meson_build %install %meson_install # %%doc && examples. %{__mkdir} -p %{buildroot}%{_pkgdocdir} %{__cp} -pr README.md examples %{buildroot}%{_pkgdocdir} # Cleanup. for f in '.*ignore*' meson.build; do %{_bindir}/find %{buildroot} -type f -name "$f" -print -delete done %check %meson_test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc %dir %{_pkgdocdir} %doc %{_pkgdocdir}/README.md %license LICENSE %{_libdir}/lib%{name}.so.%{api_ver} %{_libdir}/lib%{name}.so.%{api_ver}.* %files devel %doc %{_pkgdocdir}/examples %{_includedir}/wlr %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Thu Mar 14 2019 Rodrigo Lourenço - 0.5.0-1 - Update to 0.5.0 * Sun Oct 21 2018 Rodrigo Lourenço - 0.1-1 - Update to 0.1 - "This is a meaningless line drawn on the sand." * Sat Jul 14 2018 Fedora Release Engineering - 0.0.1-0.9.20180106git03faf17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.0.1-0.8.20180106git03faf17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 13 2018 Björn Esser - 0.0.1-0.7.20180106git03faf17 - Updated snapshot * Wed Jan 03 2018 Björn Esser - 0.0.1-0.6.20180102git767df15 - Initial import (#1529352) * Wed Jan 03 2018 Björn Esser - 0.0.1-0.5.20180102git767df15 - Updated snapshot * Sun Dec 31 2017 Björn Esser - 0.0.1-0.4.20171229git80ed4d4 - Add licensing clarification - Add BR: gcc * Sat Dec 30 2017 Björn Esser - 0.0.1-0.3.20171229git80ed4d4 - Updated snapshot * Wed Dec 27 2017 Björn Esser - 0.0.1-0.2.20171227giteeb7cd8 - Optimize spec-file * Wed Dec 27 2017 Björn Esser - 0.0.1-0.1.20171227giteeb7cd8 - Initial rpm release (#1529352)