2017-03-27 13:12:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package libglvnd
|
|
|
|
#
|
2017-04-07 13:45:21 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-03-27 13:12:57 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-05-15 12:12:56 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-03-27 13:12:57 +00:00
|
|
|
Name: libglvnd
|
|
|
|
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
|
2017-04-07 13:45:21 +00:00
|
|
|
Source: %name-%version.tar.gz
|
2017-03-27 13:12:57 +00:00
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2017-04-07 13:45:21 +00:00
|
|
|
BuildRequires: python-xml
|
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: pkgconfig(glproto)
|
2017-03-27 13:12:57 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-06 15:12:44 +00:00
|
|
|
Provides: libglvnd0 = %version-%release
|
|
|
|
Obsoletes: libglvnd0 < %version-%release
|
2017-03-27 13:12:57 +00:00
|
|
|
|
|
|
|
%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 devel
|
2017-03-28 14:36:27 +00:00
|
|
|
Summary: Development files for libglvnd
|
2017-03-27 13:12:57 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-05-06 15:12:44 +00:00
|
|
|
Requires: %name = %version
|
2017-03-27 13:12:57 +00:00
|
|
|
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
|
2017-03-28 14:36:27 +00:00
|
|
|
OpenGL ABI proposal. This package contains the required files for
|
|
|
|
development.
|
2017-03-27 13:12:57 +00:00
|
|
|
|
|
|
|
%prep
|
2017-04-07 13:45:21 +00:00
|
|
|
%setup -q -n %name-%version
|
2017-03-27 13:12:57 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
|
|
|
%configure \
|
|
|
|
%if 0%{?suse_version} < 1330
|
2017-04-07 13:45:21 +00:00
|
|
|
--libdir=/usr/X11R6/%_lib \
|
2017-03-27 13:12:57 +00:00
|
|
|
%endif
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-05-06 15:12:44 +00:00
|
|
|
%make_install
|
|
|
|
find "%buildroot" -type f -name "*.la" -delete
|
2017-04-07 13:45:21 +00:00
|
|
|
>%_builddir/%name-%version/filelist.rpm
|
2017-03-27 13:12:57 +00:00
|
|
|
%if 0%{?suse_version} < 1330
|
2017-04-07 13:45:21 +00:00
|
|
|
mkdir -p %buildroot/%_libdir/pkgconfig
|
|
|
|
mv %buildroot/usr/X11R6/%_lib/pkgconfig/*.pc %buildroot/%_libdir/pkgconfig
|
2017-05-06 15:12:44 +00:00
|
|
|
if [ "%_lib" == "lib64" ]; then
|
2017-04-07 13:45:21 +00:00
|
|
|
mkdir -p %buildroot/%_sysconfdir/ld.so.conf.d
|
|
|
|
cat > %buildroot/%_sysconfdir/ld.so.conf.d/%name.conf << EOF
|
|
|
|
/usr/X11R6/%_lib
|
2017-03-27 13:12:57 +00:00
|
|
|
/usr/X11R6/lib
|
|
|
|
EOF
|
2017-04-07 13:45:21 +00:00
|
|
|
echo "%config %_sysconfdir/ld.so.conf.d/%name.conf" >%_builddir/%name-%version/filelist.rpm
|
2017-03-27 13:12:57 +00:00
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
2017-05-06 15:12:44 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2017-03-27 13:12:57 +00:00
|
|
|
|
2017-05-06 15:12:44 +00:00
|
|
|
%files -f filelist.rpm
|
2017-03-27 13:12:57 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md
|
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
%dir /usr/X11R6
|
2017-04-07 13:45:21 +00:00
|
|
|
%dir /usr/X11R6/%_lib
|
|
|
|
/usr/X11R6/%_lib/lib*.so.*
|
2017-03-27 13:12:57 +00:00
|
|
|
%else
|
2017-04-07 13:45:21 +00:00
|
|
|
%_libdir/lib*.so.*
|
2017-03-27 13:12:57 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
%dir /usr/X11R6
|
2017-04-07 13:45:21 +00:00
|
|
|
%dir /usr/X11R6/%_lib
|
|
|
|
/usr/X11R6/%_lib/lib*.so
|
2017-03-27 13:12:57 +00:00
|
|
|
%else
|
2017-04-07 13:45:21 +00:00
|
|
|
%_libdir/lib*.so
|
2017-03-27 13:12:57 +00:00
|
|
|
%endif
|
2017-04-07 13:45:21 +00:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_includedir/glvnd/
|
2017-03-27 13:12:57 +00:00
|
|
|
|
|
|
|
%changelog
|