2007-07-21 04:31:11 +02:00
|
|
|
#
|
2011-04-27 12:00:03 +02:00
|
|
|
# spec file for package glew
|
2007-07-21 04:31:11 +02:00
|
|
|
#
|
2012-02-20 23:15:04 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-07-21 04:31:11 +02:00
|
|
|
#
|
2009-02-26 16:55:05 +01: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.
|
|
|
|
|
2007-07-21 04:31:11 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-10-01 10:31:11 +02:00
|
|
|
%define so_ver 1_9
|
|
|
|
|
2007-07-21 04:31:11 +02:00
|
|
|
Name: glew
|
2012-10-01 10:31:11 +02:00
|
|
|
Version: 1.9.0
|
2012-02-20 23:15:04 +01:00
|
|
|
Release: 0
|
2010-09-10 15:17:18 +02:00
|
|
|
Summary: OpenGL Extension Wrangler Library
|
2012-02-20 23:15:04 +01:00
|
|
|
License: BSD-3-Clause and GPL-2.0 and MIT
|
2007-07-21 04:31:11 +02:00
|
|
|
Group: System/Libraries
|
2012-02-20 23:15:04 +01:00
|
|
|
Url: http://glew.sourceforge.net/
|
2012-10-01 10:31:11 +02:00
|
|
|
Source0: http://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
|
2011-05-28 03:37:33 +02:00
|
|
|
Source1: baselibs.conf
|
2012-10-01 10:31:11 +02:00
|
|
|
Source2: %{name}.rpmlintrc
|
2010-09-10 15:17:18 +02:00
|
|
|
BuildRequires: pkg-config
|
2012-10-01 10:31:11 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
2012-02-20 23:15:04 +01:00
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
BuildRequires: pkgconfig(xmu)
|
2007-07-21 04:31:11 +02:00
|
|
|
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.
|
|
|
|
|
2012-10-01 10:31:11 +02:00
|
|
|
%package -n libGLEW%{so_ver}
|
2008-01-15 10:35:48 +01:00
|
|
|
Summary: OpenGL Extension Wrangler Library
|
2010-09-10 15:17:18 +02:00
|
|
|
Group: System/Libraries
|
2008-01-15 10:35:48 +01:00
|
|
|
|
2012-10-01 10:31:11 +02:00
|
|
|
%description -n libGLEW%{so_ver}
|
2008-01-15 10:35:48 +01:00
|
|
|
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.
|
|
|
|
|
2007-07-21 04:31:11 +02:00
|
|
|
%package devel
|
2011-08-16 19:19:45 +02:00
|
|
|
Summary: Development files for glew
|
2011-02-05 02:58:05 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-10-01 10:31:11 +02:00
|
|
|
Requires: libGLEW%{so_ver} = %{version}
|
2012-10-25 23:35:59 +02:00
|
|
|
%if %suse_version >= 1220
|
2012-10-01 10:31:11 +02:00
|
|
|
# X11/Xlib.h X11/Xutil.h
|
|
|
|
Requires: libX11-devel
|
2012-10-25 23:35:59 +02:00
|
|
|
%endif
|
2012-10-01 10:31:11 +02:00
|
|
|
# X11/Xmd.h
|
|
|
|
Requires: xorg-x11-proto-devel
|
|
|
|
# Don't require GLU, because there is GLEW_NO_GLU option
|
|
|
|
Recommends: pkgconfig(glu)
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%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
|
2012-10-01 10:31:11 +02:00
|
|
|
%setup -q
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%build
|
2012-02-23 13:39:24 +01:00
|
|
|
make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%install
|
2011-08-16 19:19:45 +02:00
|
|
|
make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} install.all
|
2010-09-10 15:17:18 +02:00
|
|
|
chmod +x %{buildroot}%{_libdir}/*.so.*
|
2012-10-01 10:31:11 +02:00
|
|
|
rm %{buildroot}%{_libdir}/*.a
|
2007-07-21 04:31:11 +02:00
|
|
|
|
2012-10-01 10:31:11 +02:00
|
|
|
%post -n libGLEW%{so_ver} -p /sbin/ldconfig
|
|
|
|
%postun -n libGLEW%{so_ver} -p /sbin/ldconfig
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/*
|
|
|
|
%{_bindir}/*info
|
2008-01-15 10:35:48 +01:00
|
|
|
|
2012-10-01 10:31:11 +02:00
|
|
|
%files -n libGLEW%{so_ver}
|
2008-01-15 10:35:48 +01:00
|
|
|
%defattr(-,root,root)
|
2007-07-21 04:31:11 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/GL/*.h
|
|
|
|
%{_libdir}/*.so
|
2011-08-16 19:19:45 +02:00
|
|
|
%{_libdir}/pkgconfig/glew*.pc
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%changelog
|