Jan Engelhardt
e1609a8af3
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/mir?expand=0&rev=2
261 lines
7.6 KiB
RPMSpec
261 lines
7.6 KiB
RPMSpec
#
|
|
# spec file for package mir
|
|
#
|
|
# Copyright (c) Shawn W Dunn
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
# Disable lto
|
|
%global _lto_cflags %{nil}
|
|
|
|
# Disable ctest run
|
|
# The take a long time and are generally broken in the build environment
|
|
%bcond_with run_tests
|
|
|
|
Name: mir
|
|
Version: 2.18.2
|
|
Release: 0
|
|
Summary: Libraries for building Wayland shells
|
|
License: (GPL-2.0-only or GPL-3.0-only) and (LGPL-2.1-only or LGPL-3.0-only)
|
|
URL: https://mir-server.io
|
|
Source: https://github.com/MirServer/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
# PATCH-FIX-UPSTREAM 0001-Fix-include-paths.patch
|
|
Patch0: 0001-Fix-include-paths.patch
|
|
BuildRequires: boost-devel
|
|
BuildRequires: cmake
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: doxygen
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcovr
|
|
BuildRequires: git-core
|
|
BuildRequires: gnu-free-fonts
|
|
BuildRequires: graphviz
|
|
BuildRequires: lcov
|
|
BuildRequires: libatomic1
|
|
BuildRequires: libboost_filesystem-devel
|
|
BuildRequires: libboost_iostreams-devel
|
|
BuildRequires: libboost_program_options-devel
|
|
BuildRequires: libboost_system-devel
|
|
BuildRequires: libxslt-tools
|
|
BuildRequires: python3
|
|
BuildRequires: %{python_module Pillow}
|
|
BuildRequires: systemtap-sdt-devel
|
|
BuildRequires: valgrind
|
|
|
|
BuildRequires: cmake(glm)
|
|
BuildRequires: cmake(glog)
|
|
BuildRequires: cmake(GTest) >= 1.8.0
|
|
BuildRequires: cmake(yaml-cpp)
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(epoxy)
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(gbm) >= 9.0.0
|
|
BuildRequires: pkgconfig(glesv2)
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gflags)
|
|
BuildRequires: pkgconfig(gtest) >= 1.8.0
|
|
BuildRequires: pkgconfig(libdrm)
|
|
BuildRequires: pkgconfig(libevdev)
|
|
BuildRequires: pkgconfig(libinput)
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(libxml++-2.6)
|
|
BuildRequires: pkgconfig(lttng-ust)
|
|
BuildRequires: pkgconfig(nettle)
|
|
BuildRequires: pkgconfig(umockdev-1.0) >= 0.6
|
|
BuildRequires: pkgconfig(uuid)
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
BuildRequires: pkgconfig(wayland-eglstream)
|
|
BuildRequires: pkgconfig(wayland-server)
|
|
BuildRequires: pkgconfig(xcb)
|
|
BuildRequires: pkgconfig(xcursor)
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
BuildRequires: pkgconfig(xkbcommon-x11)
|
|
BuildRequires: pkgconfig(wlcs)
|
|
|
|
%description
|
|
A set of libraries for building Wayland based shells.
|
|
|
|
%package devel
|
|
Summary: Development files for Mir
|
|
Requires: %{name}-common-libs = %{version}
|
|
Requires: %{name}-server-libs = %{version}
|
|
Requires: %{name}-lomiri-libs = %{version}
|
|
Requires: %{name}-test-libs-static = %{version}
|
|
|
|
%description devel
|
|
This package provides the development files to create compositors built on Mir
|
|
|
|
%package private-devel
|
|
Summary: Development files for Mir exposing private internals
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description private-devel
|
|
This package provides extra development files to create compositors built on
|
|
Mir that need acces to private internal interfaces
|
|
|
|
%package common-libs
|
|
Summary: Common libraries for Mir
|
|
License: LGPL-2.1-only or LGPL-3.0-only
|
|
|
|
%description common-libs
|
|
This package provides the libraries common to be used by Mir clients or Mir
|
|
servers
|
|
|
|
%package lomiri-libs
|
|
Summary: Lomiri compatibility libraries for Mir
|
|
License: GPL-2.0-only or GPL-3.0-only
|
|
Requires: %{name}-common-libs = %{version}
|
|
Requires: %{name}-server-libs = %{version}
|
|
|
|
%description lomiri-libs
|
|
This package provides the libraries for Lomiri to use Mir as a Wayland compositor
|
|
|
|
%package server-libs
|
|
Summary: Server libraries for Mir
|
|
License: GPL-2.0-only or GPL-3.0-only
|
|
Requires: %{name}-common-libs = %{version}
|
|
|
|
%description server-libs
|
|
This package provides the libraries for applications that use the Mir Server
|
|
|
|
%package test-tools
|
|
Summary: Testing tools for Mir
|
|
License: GPL-2.0-only or GPL-3.0-only
|
|
Requires: %{name}-server-libs = %{version}
|
|
Requires: wlcs
|
|
Recommends: %{name}-demos
|
|
Recommends: glmark2
|
|
Recommends: xwayland
|
|
|
|
%description test-tools
|
|
This package provides tools for testing Mir
|
|
|
|
%package demos
|
|
Summary: Demonstration applications using Mir
|
|
License: GPL-2.0-only or GPL-3.0-only
|
|
Requires: %{name}-server-libs = %{version}
|
|
Requires: gnu-free-fonts
|
|
Requires: hicolor-icon-theme
|
|
Requires: inotify-tools
|
|
Requires: xkeyboard-config
|
|
Requires: xwayland
|
|
|
|
%description demos
|
|
This package provides applications for demonstrating the capabilities of the
|
|
Mir display server
|
|
|
|
%package test-libs-static
|
|
Summary: Testing framework library for Mir
|
|
License: GPL-2.0-only or GPL-3.0-only
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description test-libs-static
|
|
This package provides the static library for building Mir unit and integration
|
|
tests
|
|
|
|
%prep
|
|
%autosetup -S git_am
|
|
|
|
# Drop -Werror
|
|
sed -e "s/-Werror//g" -i CMakeLists.txt
|
|
|
|
%build
|
|
%cmake -DMIR_USE_PRECOMPILED_HEADERS=OFF \
|
|
-DCMAKE_INSTALL_LIBEXECDIR="usr/libexec/mir" \
|
|
-DMIR_PLATFORM="gbm-kms;x11;wayland;eglstream-kms"
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%if %{with run_tests}
|
|
( %ctest ) || :
|
|
%endif
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/miral-shell.desktop
|
|
|
|
%files devel
|
|
%license COPYING.*
|
|
%{_bindir}/mir_wayland_generator
|
|
%{_libdir}/libmir*.so
|
|
%{_libdir}/pkgconfig/mir*.pc
|
|
%exclude %{_libdir}/pkgconfig/mir*internal.pc
|
|
%{_includedir}/mir*/
|
|
%exclude %{_includedir}/mir*internal/
|
|
|
|
%files private-devel
|
|
%license COPYING.*
|
|
%{_libdir}/pkgconfig/mir*internal.pc
|
|
%{_includedir}/mir*internal/
|
|
|
|
%files common-libs
|
|
%license COPYING.LGPL*
|
|
%doc README.md
|
|
%dir %{_libdir}/mir
|
|
%{_libdir}/libmircore.so.*
|
|
%{_libdir}/libmircommon.so.*
|
|
%{_libdir}/libmirplatform.so.*
|
|
%{_libdir}/mir/miral*.so
|
|
|
|
%files lomiri-libs
|
|
%license COPYING.GPL*
|
|
%doc README.md
|
|
%{_libdir}/libmiroil.so.*
|
|
|
|
%files server-libs
|
|
%license COPYING.GPL*
|
|
%doc README.md
|
|
%dir %{_libdir}/mir/server-platform
|
|
%{_libdir}/libmiral.so.*
|
|
%{_libdir}/libmirserver.so.*
|
|
%{_libdir}/libmirwayland.so.*
|
|
%{_libdir}/mir/server-platform/graphics-eglstream-kms.so.*
|
|
%{_libdir}/mir/server-platform/graphics-gbm-kms.so.*
|
|
%{_libdir}/mir/server-platform/graphics-wayland.so.*
|
|
%{_libdir}/mir/server-platform/input-evdev.so.*
|
|
%{_libdir}/mir/server-platform/renderer-egl-generic.so.*
|
|
%{_libdir}/mir/server-platform/server-virtual.so.*
|
|
%{_libdir}/mir/server-platform/server-x11.so.*
|
|
|
|
%files test-tools
|
|
%license COPYING.GPL*
|
|
%dir %{_libdir}/mir
|
|
%dir %{_libdir}/mir/tools
|
|
%dir %{_libdir}/mir/server-platform
|
|
%{_bindir}/mir-*test*
|
|
%{_bindir}/mir_*test*
|
|
%{_libdir}/mir/tools/libmirserverlttng.so
|
|
%{_libdir}/mir/server-platform/graphics-dummy.so
|
|
%{_libdir}/mir/server-platform/input-stub.so
|
|
|
|
%files test-libs-static
|
|
%license COPYING.GPL*
|
|
%{_libdir}/libmir-test-assist.a
|
|
|
|
%files demos
|
|
%license COPYING.GPL*
|
|
%doc README.md
|
|
%dir %{_datadir}/icons/hicolor
|
|
%dir %{_datadir}/icons/hicolor/scalable
|
|
%dir %{_datadir}/icons/hicolor/scalable/apps
|
|
%{_bindir}/mir_demo_*
|
|
%{_bindir}/mir-x11-kiosk*
|
|
%{_bindir}/miral-*
|
|
%{_datadir}/applications/miral-shell.desktop
|
|
%{_datadir}/icons/hicolor/scalable/apps/spiral-logo.svg
|
|
|
|
%changelog
|