jpokorny / rpms / wlroots

Forked from rpms/wlroots 5 years ago
Clone
77a52cf
%{!?_pkgdocdir:%global _pkgdocdir %_defaultdocdir/%{name}-%{version}}
77a52cf
ffad169
%global commit  03faf17942432027aaeb12e624e089de7673c209
ffad169
%global gitdate 20180106
77a52cf
%global scommit %(c=%{commit}; echo ${c:0:7})
77a52cf
%global gitrel  .%{gitdate}git%{scommit}
77a52cf
%global gitver  -%{gitdate}git%{scommit}
77a52cf
77a52cf
%global api_ver 0
77a52cf
77a52cf
77a52cf
Name:           wlroots
77a52cf
Version:        0.0.1
9911ea8
Release:        0.8%{?gitrel}%{?dist}
77a52cf
Summary:        Pluggable, composable modules for building a Wayland compositor
77a52cf
77a52cf
# All files in the sources are licensed as MIT, but
77a52cf
#   * protocol/server-decoration.xml [LGPL (v2.1 or later)]
77a52cf
#   * protocol/gamma-control.xml [NTP (legal disclaimer)]
77a52cf
#
77a52cf
# Those files are processed to c-compilable files by the
77a52cf
# `wayland-scanner` binary during build and don't alter the
77a52cf
# main license of the binaries linking with them by the
77a52cf
# underlying licenses.
77a52cf
License:        MIT
77a52cf
URL:            https://github.com/swaywm/%{name}
77a52cf
Source0:        %{url}/archive/%{commit}.tar.gz#/%{name}-%{version}%{?gitver}.tar.gz
77a52cf
77a52cf
BuildRequires:  gcc
77a52cf
BuildRequires:  libcap-devel
77a52cf
BuildRequires:  libinput-devel
77a52cf
BuildRequires:  libxkbcommon-devel
77a52cf
BuildRequires:  mesa-libEGL-devel
77a52cf
BuildRequires:  mesa-libGLES-devel
77a52cf
BuildRequires:  mesa-libgbm-devel
77a52cf
BuildRequires:  mesa-libwayland-egl-devel
77a52cf
BuildRequires:  meson
77a52cf
BuildRequires:  pixman-devel
77a52cf
BuildRequires:  systemd-devel
77a52cf
BuildRequires:  wayland-devel
77a52cf
BuildRequires:  wayland-protocols-devel
77a52cf
BuildRequires:  xcb-util-image-devel
77a52cf
BuildRequires:  xcb-util-wm-devel
77a52cf
77a52cf
%description
77a52cf
%{summary}.
77a52cf
77a52cf
77a52cf
%package        devel
77a52cf
Summary:        Development files for %{name}
77a52cf
77a52cf
Requires:       %{name}%{?_isa} == %{version}-%{release}
77a52cf
Requires:       libinput-devel%{?_isa}
77a52cf
Requires:       libxcb-devel%{?_isa}
77a52cf
Requires:       libxkbcommon-devel%{?_isa}
77a52cf
Requires:       mesa-libEGL-devel%{?_isa}
77a52cf
Requires:       pixman-devel%{?_isa}
77a52cf
Requires:       systemd-devel%{?_isa}
77a52cf
Requires:       wayland-devel%{?_isa}
77a52cf
Requires:       xcb-util-wm-devel%{?_isa}
77a52cf
77a52cf
%description    devel
77a52cf
Development files for %{name}.
77a52cf
77a52cf
77a52cf
%prep
77a52cf
%autosetup -n %{name}-%{commit} -p 1
77a52cf
77a52cf
77a52cf
%build
77a52cf
%ifarch %{arm} %{ix86}
77a52cf
export CFLAGS="%{optflags} -Wno-error=format="
77a52cf
export CXXFLAGS="%{optflags} -Wno-error=format="
77a52cf
%endif
77a52cf
%meson
77a52cf
%meson_build
77a52cf
77a52cf
77a52cf
%install
77a52cf
%meson_install
77a52cf
77a52cf
# %%doc && examples.
77a52cf
%{__mkdir} -p %{buildroot}%{_pkgdocdir}
77a52cf
%{__cp} -pr README.md examples %{buildroot}%{_pkgdocdir}
77a52cf
77a52cf
# Cleanup.
77a52cf
for f in '.*ignore*' meson.build; do
77a52cf
  %{_bindir}/find %{buildroot} -type f -name "$f" -print -delete
77a52cf
done
77a52cf
77a52cf
77a52cf
%check
77a52cf
%meson_test
77a52cf
77a52cf
77a52cf
%post   -p /sbin/ldconfig
77a52cf
%postun -p /sbin/ldconfig
77a52cf
77a52cf
77a52cf
%files
77a52cf
%doc %dir %{_pkgdocdir}
77a52cf
%doc %{_pkgdocdir}/README.md
77a52cf
%license LICENSE
77a52cf
%{_libdir}/lib%{name}.so.%{api_ver}*
77a52cf
77a52cf
77a52cf
%files          devel
77a52cf
%doc %{_pkgdocdir}/examples
77a52cf
%{_includedir}/wlr
77a52cf
%{_libdir}/lib%{name}.so
77a52cf
%{_libdir}/pkgconfig/%{name}.pc
77a52cf
77a52cf
77a52cf
%changelog
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)