Mageia Bugzilla – Attachment 13502 Details for
Bug 30348
'eglinfo' missing for Plasma5 InforCentern NEW PKG REQUIRED for Cauldron.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
mesa-demos.spec
mesa-demos.spec (text/x-rpm-spec), 2.68 KB, created by
Aurelian R
on 2022-11-14 18:08:19 CET
(
hide
)
Description:
mesa-demos.spec
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2022-11-14 18:08:19 CET
Size:
2.68 KB
patch
obsolete
>%define distname %{name}-%{version} > ># See: ># https://bugs.freedesktop.org/show_bug.cgi?id=91643 >%bcond_without egl > >Name: mesa-demos >Version: 8.5.0 >Release: 1%{dist}X >Summary: Demos for Mesa (OpenGL compatible 3D lib) >Group: Graphics/Utilities > ># (tv) BR probably need to be shrinked: >BuildRequires: pkgconfig(glew) >BuildRequires: pkgconfig(osmesa) > >%if %with egl >BuildRequires: mesaegl-devel >BuildRequires: mesaglesv1-devel >BuildRequires: mesaglesv2-devel >%endif >BuildRequires: gbm-devel >BuildRequires: wayland-protocols-devel >BuildRequires: x11-proto-devel > ># (tv) for glinfo: >BuildRequires: pkgconfig(freeglut) > >URL: https://www.mesa3d.org/ ># git clone git://anongit.freedesktop.org/mesa/demos ># NAME=mesa-demos; DATE=$(git show -s --pretty=%ai | awk '{ gsub("-", "", $1); print $1 }'); DISTNAME=$NAME-$DATE ; git archive --format=tar.gz --prefix=$DISTNAME/ HEAD > $DISTNAME.tar.gz >Source0: https://archive.mesa3d.org//demos/%{version}/%{distname}.tar.bz2 >Source4: Mesa-icons.tar.bz2 > >License: MIT > >Requires: glxinfo = %{version} > >%package -n glxinfo >Summary: Command-line GLX information tool >Group: Graphics/Utilities >Conflicts: mesa-demos < 7.7-4 > >%description >Mesa is an OpenGL 2.1 compatible 3D graphics library. > >This package contains some demo programs for the Mesa library. > >%description -n glxinfo >Mesa is an OpenGL 2.1 compatible 3D graphics library. > >This package contains the glinfo & glxinfo GLX information utility. > >%prep >%setup -q -n %{distname} >%autopatch -p1 >perl -pi -e "s,\"([^/].+?)\.(vert|geom|frag)\",\"%{_datadir}/%{name}/\$1.\$2\",g" src/*/*.c > >%build >LIB_DIR=%{_lib} >INCLUDE_DIR=%{buildroot}%{_includedir} >export LIB_DIR INCLUDE_DIR DRI_DRIVER_DIR > >autoreconf -fvi >%configure --with-system-data-files \ > --enable-autotools \ >%if %without egl > --disable-egl \ >%endif > > >%make_build > >%install >%make_install > ># (fg) So that demos at least work :) >cp -a src/*/*.{frag,vert,geom} %{buildroot}%{_datadir}/%{name} > ># (tv) fix conflict with bitmap: >mv %{buildroot}%{_bindir}/bitmap{,-gl} > >%if %with egl ># (blino) install some egl test apps as well >pushd src/egl/opengl >for p in eglgears_x11 eglinfo eglkms egltri_x11 peglgears xeglgears xeglthreads; do > install -m755 $p %{buildroot}%{_bindir} >done >popd >%endif > ># icons for three demos examples [we lack a frontend ># to launch the demos obviously] >install -d %{buildroot}%{_miconsdir} >install -d %{buildroot}%{_iconsdir} >install -d %{buildroot}%{_liconsdir} >tar jxvf %{SOURCE4} -C %{buildroot}%{_iconsdir} > >%files >%{_bindir}/* >%exclude %{_bindir}/glxinfo >%exclude %{_bindir}/glinfo >%dir %{_datadir}/%{name} >%{_datadir}/%{name}/* >%{_miconsdir}/*demos*.png >%{_iconsdir}/*demos*.png >%{_liconsdir}/*demos*.png > >%files -n glxinfo >%{_bindir}/glxinfo >%{_bindir}/glinfo
%define distname %{name}-%{version} # See: # https://bugs.freedesktop.org/show_bug.cgi?id=91643 %bcond_without egl Name: mesa-demos Version: 8.5.0 Release: 1%{dist}X Summary: Demos for Mesa (OpenGL compatible 3D lib) Group: Graphics/Utilities # (tv) BR probably need to be shrinked: BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(osmesa) %if %with egl BuildRequires: mesaegl-devel BuildRequires: mesaglesv1-devel BuildRequires: mesaglesv2-devel %endif BuildRequires: gbm-devel BuildRequires: wayland-protocols-devel BuildRequires: x11-proto-devel # (tv) for glinfo: BuildRequires: pkgconfig(freeglut) URL: https://www.mesa3d.org/ # git clone git://anongit.freedesktop.org/mesa/demos # NAME=mesa-demos; DATE=$(git show -s --pretty=%ai | awk '{ gsub("-", "", $1); print $1 }'); DISTNAME=$NAME-$DATE ; git archive --format=tar.gz --prefix=$DISTNAME/ HEAD > $DISTNAME.tar.gz Source0: https://archive.mesa3d.org//demos/%{version}/%{distname}.tar.bz2 Source4: Mesa-icons.tar.bz2 License: MIT Requires: glxinfo = %{version} %package -n glxinfo Summary: Command-line GLX information tool Group: Graphics/Utilities Conflicts: mesa-demos < 7.7-4 %description Mesa is an OpenGL 2.1 compatible 3D graphics library. This package contains some demo programs for the Mesa library. %description -n glxinfo Mesa is an OpenGL 2.1 compatible 3D graphics library. This package contains the glinfo & glxinfo GLX information utility. %prep %setup -q -n %{distname} %autopatch -p1 perl -pi -e "s,\"([^/].+?)\.(vert|geom|frag)\",\"%{_datadir}/%{name}/\$1.\$2\",g" src/*/*.c %build LIB_DIR=%{_lib} INCLUDE_DIR=%{buildroot}%{_includedir} export LIB_DIR INCLUDE_DIR DRI_DRIVER_DIR autoreconf -fvi %configure --with-system-data-files \ --enable-autotools \ %if %without egl --disable-egl \ %endif %make_build %install %make_install # (fg) So that demos at least work :) cp -a src/*/*.{frag,vert,geom} %{buildroot}%{_datadir}/%{name} # (tv) fix conflict with bitmap: mv %{buildroot}%{_bindir}/bitmap{,-gl} %if %with egl # (blino) install some egl test apps as well pushd src/egl/opengl for p in eglgears_x11 eglinfo eglkms egltri_x11 peglgears xeglgears xeglthreads; do install -m755 $p %{buildroot}%{_bindir} done popd %endif # icons for three demos examples [we lack a frontend # to launch the demos obviously] install -d %{buildroot}%{_miconsdir} install -d %{buildroot}%{_iconsdir} install -d %{buildroot}%{_liconsdir} tar jxvf %{SOURCE4} -C %{buildroot}%{_iconsdir} %files %{_bindir}/* %exclude %{_bindir}/glxinfo %exclude %{_bindir}/glinfo %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_miconsdir}/*demos*.png %{_iconsdir}/*demos*.png %{_liconsdir}/*demos*.png %files -n glxinfo %{_bindir}/glxinfo %{_bindir}/glinfo
View Attachment As Raw
Actions:
View
Attachments on
bug 30348
: 13502