# # spec file for package libglvnd # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libglvnd %define sonum 0 Version: 0.1.1~20161222~dc16f8c Release: 0 Summary: The GL Vendor-Neutral Dispatch library License: MIT Group: Development/Libraries/C and C++ Url: https://github.com/NVIDIA/libglvnd # Source is _service generated Source: %{name}-%{version}.tar.gz Source1: baselibs.conf BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(glproto) BuildRequires: python3-base BuildRequires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build %description 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. %package -n %{name}%{sonum} Summary: The GL Vendor-Neutral Dispatch library Group: Development/Libraries/C and C++ Recommends: Mesa-libGL1 >= 12.0.0 %description -n %{name}%{sonum} 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. %package devel Summary: Development files for libglvnd Group: Development/Libraries/C and C++ Requires: %{name}%{sonum} = %{version} Recommends: Mesa-libGL-devel >= 12.0.0 %description devel 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. This package contains the required files for development. %prep %setup -q -n %{name}-%{version} %build ./autogen.sh %configure \ %if 0%{?suse_version} < 1330 --libdir=/usr/X11R6/%{_lib} \ %endif --disable-static make %{?_smp_mflags} %install make install DESTDIR="%buildroot"; > $RPM_BUILD_DIR/%name-%{version}/filelist.rpm %if 0%{?suse_version} < 1330 rm -f "%buildroot/usr/X11R6/%{_lib}"/*.la mkdir -p %buildroot/%{_libdir}/pkgconfig mv %buildroot/usr/X11R6/%{_lib}/pkgconfig/*.pc %buildroot/%{_libdir}/pkgconfig rm -rf %buildroot/usr/X11R6/pkgconfig if [ "%_libdir" == "/usr/lib64" ]; then mkdir -p %buildroot/etc/ld.so.conf.d cat > %buildroot/etc/ld.so.conf.d/%name.conf << EOF /usr/X11R6/%{_lib} /usr/X11R6/lib EOF echo "%config /etc/ld.so.conf.d/%name.conf" > $RPM_BUILD_DIR/%name-%{version}/filelist.rpm fi %else rm -f "%buildroot/%{_libdir}"/*.la %endif %post -n %{name}%{sonum} -p /sbin/ldconfig %postun -n %{name}%{sonum} -p /sbin/ldconfig %files -n %{name}%{sonum} -f filelist.rpm %defattr(-,root,root) %doc README.md %if 0%{?suse_version} < 1330 %dir /usr/X11R6 %dir /usr/X11R6/%{_lib} /usr/X11R6/%{_lib}/lib*.so.* %else %{_libdir}/lib*.so.* %endif %files devel %defattr(-,root,root) %doc README.md %if 0%{?suse_version} < 1330 %dir /usr/X11R6 %dir /usr/X11R6/%{_lib} /usr/X11R6/%{_lib}/lib*.so %else %{_libdir}/lib*.so %endif %{_libdir}/pkgconfig/*.pc %{_includedir}/glvnd/ %changelog