Accepting request 969915 from home:dirkmueller:Factory
- use _multibuild OBS-URL: https://build.opensuse.org/request/show/969915 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1099
This commit is contained in:
parent
13401be085
commit
bbb494421f
@ -1,11 +0,0 @@
|
|||||||
# This line is mandatory to access the configuration functions
|
|
||||||
from Config import *
|
|
||||||
|
|
||||||
# Want to allow for multiple vendors
|
|
||||||
addFilter("shlib-policy-name-error")
|
|
||||||
addFilter("Mesa-libOpenCL.*library-without-ldconfig-postin")
|
|
||||||
addFilter("Mesa-libOpenCL.*library-without-ldconfig-postun")
|
|
||||||
addFilter("libXvMC_nouveau.*library-without-ldconfig-postin")
|
|
||||||
addFilter("libXvMC_nouveau.*library-without-ldconfig-postun")
|
|
||||||
addFilter("libXvMC_r600.*library-without-ldconfig-postin")
|
|
||||||
addFilter("libXvMC_r600.*library-without-ldconfig-postun")
|
|
6948
Mesa-drivers.changes
6948
Mesa-drivers.changes
File diff suppressed because it is too large
Load Diff
1212
Mesa-drivers.spec
1212
Mesa-drivers.spec
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 13 12:30:21 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- use _multibuild
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 29 21:58:46 UTC 2022 - Stefan Dirsch <sndirsch@suse.com>
|
Tue Mar 29 21:58:46 UTC 2022 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
51
Mesa.spec
51
Mesa.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package Mesa
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -16,21 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# Following define and the Name attribute are the only difference between
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
# Mesa.spec and Mesa-drivers.spec. Mesa-drivers.spec is generated from
|
%if "%{flavor}" == "drivers"
|
||||||
# Mesa.spec using the pre_checkin.sh script.
|
%global psuffix -drivers
|
||||||
#
|
%else
|
||||||
# Mesa.spec builds everything that is hardware independent and does not
|
%global psuffix %{nil}
|
||||||
# require llvm. Most importantly it builds all OpenGL (ES) libraries.
|
%endif
|
||||||
#
|
|
||||||
# Mesa-drivers.spec builds hardware specific drivers and parts that require
|
|
||||||
# llvm.
|
|
||||||
#
|
|
||||||
# The purpose of this split is to be able to build most Mesa-* packages fast
|
|
||||||
# without waiting for llvm. This helps speed up whole distribution build in
|
|
||||||
# OBS. (https://bugzilla.suse.com/show_bug.cgi?id=1071297)
|
|
||||||
# Note that if you actually need to render something, you need the packages
|
|
||||||
# from Mesa-driver.
|
|
||||||
|
|
||||||
%ifarch armv6l armv6hl
|
%ifarch armv6l armv6hl
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
@ -87,7 +78,7 @@
|
|||||||
%define have_gallium 0
|
%define have_gallium 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
%define glamor 0
|
%define glamor 0
|
||||||
%else
|
%else
|
||||||
# No llvm dependencies
|
# No llvm dependencies
|
||||||
@ -112,7 +103,7 @@
|
|||||||
%define with_vulkan 0
|
%define with_vulkan 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: Mesa
|
Name: Mesa%{psuffix}
|
||||||
Version: 22.0.1
|
Version: 22.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: System for rendering 3-D graphics
|
Summary: System for rendering 3-D graphics
|
||||||
@ -125,7 +116,7 @@ Source1: https://mesa.freedesktop.org/archive/%{_name_archive}-%{_version
|
|||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source3: README.updates
|
Source3: README.updates
|
||||||
Source4: manual-pages.tar.bz2
|
Source4: manual-pages.tar.bz2
|
||||||
Source6: %{name}-rpmlintrc
|
Source6: Mesa-rpmlintrc
|
||||||
Source7: Mesa.keyring
|
Source7: Mesa.keyring
|
||||||
Patch2: n_add-Mesa-headers-again.patch
|
Patch2: n_add-Mesa-headers-again.patch
|
||||||
# never to be upstreamed
|
# never to be upstreamed
|
||||||
@ -167,7 +158,7 @@ BuildRequires: pkgconfig(valgrind)
|
|||||||
BuildRequires: pkgconfig(libkms) >= 1.0.0
|
BuildRequires: pkgconfig(libkms) >= 1.0.0
|
||||||
BuildRequires: pkgconfig(libva)
|
BuildRequires: pkgconfig(libva)
|
||||||
BuildRequires: pkgconfig(presentproto)
|
BuildRequires: pkgconfig(presentproto)
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
BuildRequires: pkgconfig(vdpau) >= 1.1
|
BuildRequires: pkgconfig(vdpau) >= 1.1
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
@ -774,7 +765,7 @@ egl_platforms=x11,wayland
|
|||||||
|
|
||||||
%meson \
|
%meson \
|
||||||
--auto-features=disabled \
|
--auto-features=disabled \
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
-Dgles1=false \
|
-Dgles1=false \
|
||||||
-Dgles2=false \
|
-Dgles2=false \
|
||||||
-Degl=true \
|
-Degl=true \
|
||||||
@ -810,7 +801,7 @@ egl_platforms=x11,wayland
|
|||||||
-Dllvm=true \
|
-Dllvm=true \
|
||||||
-Dshared-llvm=true \
|
-Dshared-llvm=true \
|
||||||
%endif
|
%endif
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
%if %{gallium_loader}
|
%if %{gallium_loader}
|
||||||
-Dgallium-vdpau=true \
|
-Dgallium-vdpau=true \
|
||||||
-Dgallium-xvmc=true \
|
-Dgallium-xvmc=true \
|
||||||
@ -865,7 +856,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
rm -f %{buildroot}/%{_libdir}/libwayland-egl.so*
|
rm -f %{buildroot}/%{_libdir}/libwayland-egl.so*
|
||||||
rm -f %{buildroot}/%{_libdir}/pkgconfig/wayland-egl.pc
|
rm -f %{buildroot}/%{_libdir}/pkgconfig/wayland-egl.pc
|
||||||
|
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
# Delete things that we do not package in the Mesa-drivers variant, but can
|
# Delete things that we do not package in the Mesa-drivers variant, but can
|
||||||
# not disable from buildling and installing.
|
# not disable from buildling and installing.
|
||||||
|
|
||||||
@ -930,7 +921,7 @@ done
|
|||||||
|
|
||||||
%fdupes -s %{buildroot}/%{_mandir}
|
%fdupes -s %{buildroot}/%{_mandir}
|
||||||
|
|
||||||
%if !%{drivers}
|
%if "%{flavor}" != "drivers"
|
||||||
# Use dummy README file that can be included in both Mesa and Mesa-32bit. This way Mesa-32bit will be build (otherwise it would be skipped as empty) and it can be used by the other *-32bit packages.
|
# Use dummy README file that can be included in both Mesa and Mesa-32bit. This way Mesa-32bit will be build (otherwise it would be skipped as empty) and it can be used by the other *-32bit packages.
|
||||||
echo "The \"Mesa\" package does not have the ability to render, but is supplemented by \"Mesa-dri\" and \"Mesa-gallium\" which contain the drivers for rendering" > docs/README.package.%{_arch}
|
echo "The \"Mesa\" package does not have the ability to render, but is supplemented by \"Mesa-dri\" and \"Mesa-gallium\" which contain the drivers for rendering" > docs/README.package.%{_arch}
|
||||||
%endif
|
%endif
|
||||||
@ -967,7 +958,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
|
|||||||
|
|
||||||
%postun -n Mesa-libd3d -p /sbin/ldconfig
|
%postun -n Mesa-libd3d -p /sbin/ldconfig
|
||||||
|
|
||||||
%if !%{drivers}
|
%if "%{flavor}" != "drivers"
|
||||||
%files
|
%files
|
||||||
%license docs/license.rst
|
%license docs/license.rst
|
||||||
%doc docs/README*
|
%doc docs/README*
|
||||||
@ -1027,7 +1018,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
|
|||||||
%{_libdir}/pkgconfig/gbm.pc
|
%{_libdir}/pkgconfig/gbm.pc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le riscv64
|
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le riscv64
|
||||||
%files -n libxatracker2
|
%files -n libxatracker2
|
||||||
%{_libdir}/libxatracker.so.2*
|
%{_libdir}/libxatracker.so.2*
|
||||||
@ -1077,7 +1068,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{drivers}
|
%if "%{flavor}" != "drivers"
|
||||||
%files libglapi0
|
%files libglapi0
|
||||||
%{_libdir}/libglapi.so.0*
|
%{_libdir}/libglapi.so.0*
|
||||||
|
|
||||||
@ -1085,7 +1076,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
|
|||||||
%{_libdir}/libglapi.so
|
%{_libdir}/libglapi.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
%files -n Mesa-dri
|
%files -n Mesa-dri
|
||||||
%dir %{_libdir}/dri
|
%dir %{_libdir}/dri
|
||||||
%{_libdir}/dri/*_dri.so
|
%{_libdir}/dri/*_dri.so
|
||||||
@ -1116,7 +1107,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
|
|||||||
# drivers
|
# drivers
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{drivers}
|
%if "%{flavor}" != "drivers"
|
||||||
%files dri-devel
|
%files dri-devel
|
||||||
%{_includedir}/GL/internal
|
%{_includedir}/GL/internal
|
||||||
%{_libdir}/pkgconfig/dri.pc
|
%{_libdir}/pkgconfig/dri.pc
|
||||||
@ -1152,7 +1143,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
|
|||||||
%{_libdir}/libMesaOpenCL.so*
|
%{_libdir}/libMesaOpenCL.so*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{drivers}
|
%if "%{flavor}" == "drivers"
|
||||||
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
|
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
|
||||||
%files -n Mesa-libva
|
%files -n Mesa-libva
|
||||||
%{_libdir}/dri/*_drv_video.so
|
%{_libdir}/dri/*_drv_video.so
|
||||||
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>drivers</package>
|
||||||
|
</multibuild>
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
|
||||||
# create a -drivers spec for systemd for bootstrapping
|
|
||||||
|
|
||||||
ORIG_SPEC=Mesa
|
|
||||||
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
|
|
||||||
sed "s/^%define drivers .*$/${EDIT_WARNING}%define drivers 1/;
|
|
||||||
s/^Name:.*/&-drivers/
|
|
||||||
" < ${ORIG_SPEC}.spec > ${ORIG_SPEC}-drivers.spec
|
|
||||||
cp ${ORIG_SPEC}.changes ${ORIG_SPEC}-drivers.changes
|
|
||||||
cp ${ORIG_SPEC}-rpmlintrc ${ORIG_SPEC}-drivers-rpmlintrc
|
|
||||||
|
|
||||||
osc service localrun format_spec_file
|
|
Loading…
Reference in New Issue
Block a user