libglvnd/libglvnd.spec

167 lines
4.5 KiB
RPMSpec
Raw Normal View History

2016-05-13 16:12:12 +00:00
%undefine _hardened_build
2016-05-20 14:15:27 +00:00
%global commit0 a82982d93a75c48bac7a894639b26e5f05ff8364
2016-02-17 10:53:15 +00:00
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
2015-09-02 16:42:54 +00:00
2015-02-06 17:54:37 +00:00
Name: libglvnd
2016-05-04 17:10:16 +00:00
Version: 0.1.0
2016-05-20 14:15:27 +00:00
Release: 3%{?commit0:.git%{shortcommit0}}%{?dist}
2015-02-06 17:54:37 +00:00
Summary: The GL Vendor-Neutral Dispatch library
2015-11-21 15:18:35 +00:00
License: MIT and BSD and LGPLv2+
2015-02-06 17:54:37 +00:00
URL: https://github.com/NVIDIA/libglvnd
2016-02-17 10:53:15 +00:00
Source0: https://github.com/NVIDIA/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
2016-05-20 15:35:49 +00:00
#https://github.com/NVIDIA/libglvnd/pull/90
Patch0: 0001-Remove-uneeded-xorg-server-dependency.patch
2015-02-06 17:54:37 +00:00
2015-11-21 15:18:35 +00:00
#This library only target few architectures use case
ExclusiveArch: x86_64 i686 armv7hl
2015-02-23 09:54:24 +00:00
2016-02-17 10:53:15 +00:00
BuildRequires: libtool
2015-02-23 09:53:49 +00:00
BuildRequires: libxml2-python
2016-05-20 15:35:49 +00:00
BuildRequires: pkgconfig(glproto)
2015-02-11 15:42:34 +00:00
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xv)
2015-02-06 17:54:37 +00:00
2016-05-13 16:12:12 +00:00
# X11 tests:
BuildRequires: xorg-x11-server-Xvfb
2016-05-04 17:10:16 +00:00
# Introduced in f23
Provides: xorg-x11-glvnd = 0.0.0-8
Obsoletes: xorg-x11-glvnd < 0.1.0
2016-02-17 10:53:15 +00:00
%{!?_with_mesa_glvnd_default:
%global __provides_exclude ^(libGL.\\.so.*|libGLES*\\.so.*)$
%global __requires_exclude ^(libGL.\\.so.*|libGLES*\\.so.*)$
}
2015-02-06 17:54:37 +00:00
%description
This is a work-in-progress implementation of the vendor-neutral dispatch layer
for arbitrating OpenGL API calls between multiple vendors on a per-screen
2016-01-15 17:39:12 +00:00
basis, as described by Andy Ritger's OpenGL ABI proposal.
2015-02-06 17:54:37 +00:00
Currently, only the GLX window-system API and OpenGL are supported, but in the
future this library may support EGL and OpenGL ES as well.
2016-01-15 17:39:12 +00:00
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2015-02-06 17:54:37 +00:00
%prep
2016-02-17 10:53:15 +00:00
%setup -q -n %{name}-%{?commit0}%{?!commit0:%{version}}
2016-05-20 15:35:49 +00:00
%patch0 -p1
2016-02-17 10:53:15 +00:00
autoreconf -vif
2015-02-06 17:54:37 +00:00
%build
2015-02-11 15:42:34 +00:00
%configure \
--disable-static \
make %{?_smp_mflags} V=1
2015-02-06 17:54:37 +00:00
%install
2016-01-15 17:39:12 +00:00
%make_install INSTALL="install -p"
2016-05-20 16:02:58 +00:00
find %{buildroot} -name '*.la' -delete
2015-02-11 15:42:34 +00:00
2016-02-17 10:53:15 +00:00
%{!?_with_mesa_glvnd_default:
2016-05-20 14:15:27 +00:00
# Avoid conflict with mesa-libGL until mesa has gained libglvnd support
2015-02-11 15:42:34 +00:00
mkdir -p %{buildroot}%{_libdir}/%{name}
for l in libGL libGLESv2 ; do
mv %{buildroot}%{_libdir}/${l}.so* \
%{buildroot}%{_libdir}/%{name}
done
2016-02-17 10:53:15 +00:00
}
2016-02-17 10:53:15 +00:00
# Fedora does not provide libGLESv1_CM
rm -rf %{buildroot}%{_libdir}/libGLESv1_CM*
2015-02-06 17:54:37 +00:00
2016-01-15 17:39:12 +00:00
%check
2016-05-13 16:28:06 +00:00
export DO_X11_TESTS=1
2016-05-13 16:12:12 +00:00
# tests are failing in mock
xvfb-run -a make check V=1 || :
2016-01-15 17:39:12 +00:00
2015-02-06 17:54:37 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2015-11-21 15:18:35 +00:00
%doc README.md
2016-01-15 17:39:12 +00:00
%{_libdir}/*.so.*
2016-02-17 10:53:15 +00:00
%{!?_with_mesa_glvnd_default:
2015-02-11 15:42:34 +00:00
%dir %{_libdir}/%{name}
2016-01-15 17:39:12 +00:00
%{_libdir}/%{name}/lib*GL*.so.*
2016-02-17 10:53:15 +00:00
}
2016-01-15 17:39:12 +00:00
%files devel
%dir %{_includedir}/glvnd
%{_includedir}/glvnd/*.h
2016-05-20 15:39:29 +00:00
%{!?_with_mesa_glvnd_default:
2016-01-15 17:39:12 +00:00
%{_libdir}/%{name}/lib*GL*.so
2016-05-20 15:39:29 +00:00
}
2016-01-15 17:39:12 +00:00
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
2015-02-06 17:54:37 +00:00
%changelog
2016-05-20 14:15:27 +00:00
* Fri May 20 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-3.gita82982d
- Update to current snapshot
2016-05-13 15:07:55 +00:00
* Fri May 13 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-2.git509de0d
- Update to current snapshot
2016-05-13 16:12:12 +00:00
- Remove unused dt-auxiliary
- Add support for graphical make test
- Undefine hardened build for xorg
2016-05-13 15:07:55 +00:00
2016-05-04 17:10:16 +00:00
* Wed May 04 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-1.git8277115
- Update to lastest snapshot
* Thu Feb 18 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-9.git4d977ea
- Remove patch to enable by default
2016-02-17 10:53:15 +00:00
* Wed Feb 17 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-8git20160217
- Update to git20160217
- Introduce --with mesa-libglvnd-default build conditional
- Avoid error on make check - testglxqueryversion.sh stil fails in mock
- Filter on provided libGL until glvnd support is in upstream mesa
- Use upstream tarball and use autoreconf
2016-01-15 17:39:12 +00:00
* Fri Jan 15 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-7git20160115
- Bump for 20160115
- Enable make check
- Description improvements
- Enable libglvnd by default
- Enable devel sub-package
2016-01-06 09:38:24 +00:00
* Wed Jan 06 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-6git20160106
- Update to 20160106 snapshot
2016-01-06 09:39:58 +00:00
- Remove 10-x11glvnd
2016-01-06 09:38:24 +00:00
2015-11-21 15:38:24 +00:00
* Sat Nov 21 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-5git20151121
- Update to 20151121 snapshot
- Avoid conflicts with mesa-libGL{,ES}
- Disable libGLESv1_CM
2015-11-21 15:38:24 +00:00
2015-11-21 15:18:35 +00:00
* Tue Nov 10 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-4git20151110
- Update to today snapshot
- Fix license
2015-09-02 16:42:54 +00:00
* Tue Sep 01 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-3git20150901
- Update to snapshot 20150901
* Fri Aug 07 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-2
- Update to today snapshoot
2015-02-11 15:42:34 +00:00
* Fri Feb 6 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-1
- Initial spec file