2015-09-02 16:42:54 +00:00
|
|
|
%global snapshot git20150901
|
|
|
|
|
2015-02-06 17:54:37 +00:00
|
|
|
Name: libglvnd
|
2015-02-11 15:42:34 +00:00
|
|
|
Version: 0.0.0
|
2015-09-02 16:42:54 +00:00
|
|
|
Release: 3%{?snapshot}%{?dist}
|
2015-02-06 17:54:37 +00:00
|
|
|
Summary: The GL Vendor-Neutral Dispatch library
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/NVIDIA/libglvnd
|
2015-09-02 16:42:54 +00:00
|
|
|
# git clone && ./autogen.sh && make dist && mv
|
|
|
|
Source0: libglvnd-%{version}%{?snapshot}.tar.gz
|
2015-02-11 15:42:34 +00:00
|
|
|
Source1: 10-x11glvnd.conf
|
2015-02-06 17:54:37 +00:00
|
|
|
|
2015-09-02 17:17:14 +00:00
|
|
|
#This library only target few architectures uses case
|
|
|
|
#ExclusiveArch: i686 x86_64 %{arm}
|
|
|
|
#Doesn't build on i686 with tls
|
|
|
|
#https://github.com/NVIDIA/libglvnd/issues/18
|
2015-09-02 16:42:54 +00:00
|
|
|
ExclusiveArch: x86_64 %{arm}
|
2015-02-23 09:54:24 +00:00
|
|
|
|
2015-02-23 09:53:49 +00:00
|
|
|
BuildRequires: libxml2-python
|
2015-02-06 17:54:37 +00:00
|
|
|
BuildRequires: pkgconfig(xorg-server)
|
2015-02-11 15:42:34 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xv)
|
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
|
|
|
|
basis, as described by Andy Ritger's OpenGL ABI proposal [1].
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2015-02-11 15:42:34 +00:00
|
|
|
%package -n xorg-x11-glvnd
|
2015-02-06 17:54:37 +00:00
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2015-02-11 15:42:34 +00:00
|
|
|
%description -n xorg-x11-glvnd
|
2015-02-06 17:54:37 +00:00
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2015-02-11 15:42:34 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--enable-dt-auxiliary
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1
|
2015-02-06 17:54:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2015-02-11 15:42:34 +00:00
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
# Install config file
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
install -pm 0644 %{SOURCE1} \
|
|
|
|
%{buildroot}%{_datadir}/X11/xorg.conf.d
|
|
|
|
|
|
|
|
# Avoid conflict with mesa-libGL for now
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
|
|
mv %{buildroot}%{_libdir}/libGL.so* \
|
|
|
|
%{buildroot}%{_libdir}/%{name}
|
2015-02-06 17:54:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc
|
2015-02-11 15:42:34 +00:00
|
|
|
%{_libdir}/*.so*
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/libGL.so*
|
2015-02-06 17:54:37 +00:00
|
|
|
|
2015-02-11 15:42:34 +00:00
|
|
|
%files -n xorg-x11-glvnd
|
|
|
|
%{_libdir}/xorg/modules/extensions/*.so*
|
|
|
|
%{_datadir}/X11/xorg.conf.d/10-x11glvnd.conf
|
2015-02-06 17:54:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|