Blame SPECS/mesa-demos.spec

14f81b
%global gitdate 20171027
14f81b
%global gitcommit 22bc355f1b324b6ea07e063b5f20be757ea7a8e5
a19169
%global shortcommit %(c=%{gitcommit}; echo ${c:0:7})
a19169
%global xdriinfo xdriinfo-1.0.4
a19169
%global demodir %{_libdir}/mesa
a19169
a19169
Summary: Mesa demos
a19169
Name: mesa-demos
14f81b
Version: 8.3.0
14f81b
Release: 10%{?dist}
a19169
License: MIT
a19169
Group: System Environment/Libraries
a19169
URL: http://www.mesa3d.org
14f81b
#Source0: https://mesa.freedesktop.org/archive/demos/%{version}/%{name}-%{version}.tar.bz2
14f81b
Source0: mesa-demos-%{gitdate}.tar.bz2
a19169
Source1: http://www.x.org/pub/individual/app/%{xdriinfo}.tar.bz2
a19169
Source2: mesad-git-snapshot.sh
a19169
# Patch pointblast/spriteblast out of the Makefile for legal reasons
a19169
Patch0: mesa-demos-8.0.1-legal.patch
a19169
Patch1: mesa-demos-as-needed.patch
14f81b
# Fix xdriinfo not working with libglvnd
14f81b
Patch2: xdriinfo-1.0.4-glvnd.patch
a19169
BuildRequires: pkgconfig autoconf automake libtool
a19169
BuildRequires: freeglut-devel
14f81b
BuildRequires: mesa-libGL-devel
14f81b
BuildRequires: mesa-libEGL-devel
14f81b
BuildRequires: mesa-libGLES-devel
14f81b
BuildRequires: mesa-libgbm-devel
a19169
BuildRequires: libGLU-devel
a19169
BuildRequires: glew-devel
a19169
a19169
%description
a19169
This package provides some demo applications for testing Mesa.
a19169
a19169
%package -n glx-utils
a19169
Summary: GLX utilities
a19169
Group: Development/Libraries
a19169
Provides: glxinfo glxinfo%{?__isa_bits}
a19169
a19169
%description -n glx-utils
a19169
The glx-utils package provides the glxinfo and glxgears utilities.
a19169
14f81b
%package -n egl-utils
14f81b
Summary: EGL utilities
14f81b
Group: Development/Libraries
14f81b
Provides: eglinfo es2_info
14f81b
14f81b
%description -n egl-utils
14f81b
The egl-utils package provides the eglinfo and es2_info utilities.
14f81b
a19169
%prep
14f81b
%setup -q -n %{name}-%{gitdate} -b1
a19169
%patch0 -p1 -b .legal
a19169
%patch1 -p1 -b .asneeded
14f81b
pushd ../%{xdriinfo}
14f81b
%patch2 -p1
14f81b
popd
a19169
a19169
# These two files are distributable, but non-free (lack of permission to modify).
a19169
rm -rf src/demos/pointblast.c
a19169
rm -rf src/demos/spriteblast.c
a19169
a19169
%build
14f81b
autoreconf -vfi
a19169
%configure --bindir=%{demodir} --with-system-data-files
a19169
make %{?_smp_mflags}
a19169
a19169
pushd ../%{xdriinfo}
a19169
%configure
a19169
make %{?_smp_mflags}
a19169
popd
a19169
a19169
%install
a19169
make install DESTDIR=%{buildroot}
a19169
a19169
pushd ../%{xdriinfo}
a19169
make %{?_smp_mflags} install DESTDIR=%{buildroot}
a19169
popd
a19169
a19169
install -m 0755 src/xdemos/glxgears %{buildroot}%{_bindir}
a19169
install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir}
a19169
%if 0%{?__isa_bits} != 0
a19169
install -m 0755 src/xdemos/glxinfo %{buildroot}%{_bindir}/glxinfo%{?__isa_bits}
a19169
%endif
a19169
14f81b
install -m 0755 src/egl/opengl/eglinfo %{buildroot}%{_bindir}
14f81b
install -m 0755 src/egl/opengles2/es2_info %{buildroot}%{_bindir}
14f81b
a19169
%check
a19169
a19169
%files
a19169
%{demodir}
a19169
%{_datadir}/%{name}/
a19169
a19169
%files -n glx-utils
a19169
%{_bindir}/glxinfo*
a19169
%{_bindir}/glxgears
a19169
%{_bindir}/xdriinfo
a19169
%{_datadir}/man/man1/xdriinfo.1*
a19169
14f81b
%files -n egl-utils
14f81b
%{_bindir}/eglinfo
14f81b
%{_bindir}/es2_info
14f81b
a19169
%changelog
14f81b
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-10
14f81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
14f81b
14f81b
* Fri Oct 27 2017 Adam Jackson <ajax@redhat.com> - 8.3.0-9
14f81b
- New git snapshot
14f81b
14f81b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-8
14f81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
14f81b
14f81b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-7
14f81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
14f81b
14f81b
* Mon Mar 13 2017 Hans de Goede <hdegoede@redhat.com> - 8.3.0-6
14f81b
- Fix xdriinfo not working with libglvnd (rhbz#1429894)
14f81b
14f81b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-5
14f81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
14f81b
14f81b
* Tue Jan 10 2017 Orion Poplawski <orion@cora.nwra.com> - 8.3.0-4
14f81b
- Rebuild for glew 2.0.0
14f81b
14f81b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.0-3
14f81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
14f81b
14f81b
* Thu Jan 14 2016 Adam Jackson <ajax@redhat.com> - 8.3.0-2
14f81b
- Rebuild for glew 1.13
14f81b
14f81b
* Fri Dec 18 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 8.3.0-1
14f81b
- 8.3.0
14f81b
14f81b
* Thu Dec 03 2015 Adam Jackson <ajax@redhat.com> 8.2.0-5
14f81b
- New git snap
14f81b
- Add EGL/GLES buildreqs and egl-utils subpackage
14f81b
14f81b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2.0-4
14f81b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
14f81b
14f81b
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 8.2.0-3
14f81b
- Rebuilt for Fedora 23 Change
14f81b
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
b863bc
5c997d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.2.0-2
5c997d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c17069
5c997d
* Sat Jul 05 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 8.2.0-1
5c997d
- 8.2.0 upstream release
5c997d
5c997d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.0-6
5c997d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5c997d
5c997d
* Sun Nov 17 2013 Dave Airlie <airlied@redhat.com> - 8.1.0-5
5c997d
- rebuilt for glew 1.10
5c997d
5c997d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.0-4
5c997d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c17069
a19169
* Wed Mar 27 2013 Adam Jackson <ajax@redhat.com> 8.1.0-3
a19169
- Build with --as-needed so glxinfo doesn't needlessly drag in GLEW
a19169
a19169
* Wed Feb 27 2013 Adam Jackson <ajax@redhat.com> 8.1.0-2
a19169
- Copy glxinfo to glxinfo%%{__isa_bits}, to allow people to check that their
a19169
  compatibility drivers are working.
a19169
a19169
* Sun Feb 24 2013 Dave Airlie <airlied@redhat.com> 8.1.0-1
a19169
- package upstream demos release 8.1.0 (mainly for new glxinfo)
a19169
a19169
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.0.1-2.20121218git6eef979
a19169
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a19169
a19169
* Tue Jan  8 2013 Tom Callaway <spot@fedoraproject.org> - 8.0.1-1.20121218git6eef979
a19169
- update to 8.0.1 (git checkout from 20121218)
a19169
- update xdriinfo to 1.0.4
a19169
- remove non-free files (bz892925)
a19169
a19169
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 7.10-9.20101028
a19169
- Rebuild for glew 1.9.0
a19169
a19169
* Fri Jul 27 2012 Kalev Lember <kalevlember@gmail.com> - 7.10-8.20101028
a19169
- Rebuilt for GLEW soname bump
a19169
a19169
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-7.20101028
a19169
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a19169
a19169
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-6.20101028
a19169
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a19169
a19169
* Mon Jun 20 2011 ajax@redhat.com - 7.10-5.20101028
a19169
- Rebuild for new glew soname
a19169
a19169
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.10-4.20101028
a19169
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a19169
a19169
* Mon Nov 01 2010 Adam Jackson <ajax@redhat.com> 7.10-3.20101028
a19169
- Install rgba images too (#640688)
a19169
a19169
* Sat Oct 30 2010 Dave Airlie <airlied@redhat.com> 7.10-2.20101028
a19169
- fix install of gears/info (#647947)
a19169
a19169
* Thu Oct 28 2010 Adam Jackson <ajax@redhat.com> 7.10-1.20101028
a19169
- Today's git snapshot
a19169
- Arbitrary EVR bump to be newer than when the mesa source package dropped
a19169
  the demos subpackage.
a19169
a19169
* Tue Jun 15 2010 Jerome Glisse <jglisse@redhat.com> 7.7
a19169
- Initial build.