Stanislav Brabec
25b91e32e5
- update of baselibs.conf - Version bump to 0.12.0 * support for new extensions *bugixes: .pc -I flags inconsistent with *.h includes Missing defines: GL_COPY_{READ|WRITE}_BUFFER_BINDING multiple const GLchar *const* errors PFNGLSHADERSOURCEPROC incorrect in 1.11.x GL_GEOMETRY_SHADER & GL_FRAGMENT_SHADER OBS-URL: https://build.opensuse.org/request/show/283139 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=43
108 lines
3.5 KiB
RPMSpec
108 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package glew
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
|
|
# If you change so_ver, then you have to update baselibs.conf as well.
|
|
%define so_ver 1_12
|
|
Name: glew
|
|
Version: 1.12.0
|
|
Release: 0
|
|
Summary: OpenGL Extension Wrangler Library
|
|
License: BSD-3-Clause and GPL-2.0 and MIT
|
|
Group: System/Libraries
|
|
Url: http://glew.sourceforge.net/
|
|
Source0: http://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
|
|
Source1: baselibs.conf
|
|
Source2: %{name}.rpmlintrc
|
|
BuildRequires: pkg-config
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRequires: pkgconfig(xi)
|
|
BuildRequires: pkgconfig(xmu)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
|
|
open-source C/C++ extension loading library. GLEW provides efficient
|
|
run-time mechanisms for determining which OpenGL extensions are
|
|
supported on the target platform. OpenGL core and extension
|
|
functionality is exposed in a single header file.
|
|
|
|
%package -n libGLEW%{so_ver}
|
|
Summary: OpenGL Extension Wrangler Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libGLEW%{so_ver}
|
|
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
|
|
open-source C/C++ extension loading library. GLEW provides efficient
|
|
run-time mechanisms for determining which OpenGL extensions are
|
|
supported on the target platform. OpenGL core and extension
|
|
functionality is exposed in a single header file.
|
|
|
|
%package devel
|
|
Summary: Development files for glew
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libGLEW%{so_ver} = %{version}
|
|
# X11/Xmd.h
|
|
Requires: xorg-x11-proto-devel
|
|
# Don't require GLU, because there is GLEW_NO_GLU option
|
|
Recommends: pkgconfig(glu)
|
|
%if 0%{?suse_version} >= 1220
|
|
# X11/Xlib.h X11/Xutil.h
|
|
Requires: pkgconfig(x11)
|
|
%endif
|
|
|
|
%description devel
|
|
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
|
|
open-source C/C++ extension loading library. GLEW provides efficient
|
|
run-time mechanisms for determining which OpenGL extensions are
|
|
supported on the target platform. OpenGL core and extension
|
|
functionality is exposed in a single header file.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
make %{?_smp_mflags} POPT="%{optflags}" GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} install.all
|
|
chmod +x %{buildroot}%{_libdir}/*.so.*
|
|
rm %{buildroot}%{_libdir}/*.a
|
|
|
|
%post -n libGLEW%{so_ver} -p /sbin/ldconfig
|
|
|
|
%postun -n libGLEW%{so_ver} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc doc/*
|
|
%{_bindir}/*info
|
|
|
|
%files -n libGLEW%{so_ver}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/GL/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/glew*.pc
|
|
|
|
%changelog
|