2007-07-21 04:31:11 +02:00
|
|
|
#
|
2009-08-07 16:42:38 +02:00
|
|
|
# spec file for package glew (Version 1.5.1)
|
2007-07-21 04:31:11 +02:00
|
|
|
#
|
2009-02-26 16:55:05 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-21 04:06:16 +01:00
|
|
|
|
2007-07-21 04:31:11 +02:00
|
|
|
Name: glew
|
|
|
|
BuildRequires: Mesa-devel
|
2008-01-15 10:35:48 +01:00
|
|
|
Url: http://glew.sourceforge.net/
|
2009-08-07 16:42:38 +02:00
|
|
|
License: BSD 3-clause (or similar) ; GPL v2 only ; Other uncritical OpenSource License
|
2007-07-21 04:31:11 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: OpenGL Extension Wrangler Library
|
2009-08-07 16:42:38 +02:00
|
|
|
Version: 1.5.1
|
|
|
|
Release: 1
|
2007-07-21 04:31:11 +02:00
|
|
|
Source: %{name}-%{version}-src.tar.bz2
|
2008-01-15 10:35:48 +01:00
|
|
|
Requires: libGLEW1_5 >= %{version}
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-01-15 10:35:48 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Milan Ikits
|
|
|
|
Marcelo Magallon
|
|
|
|
|
|
|
|
%package -n libGLEW1_5
|
2009-08-07 16:42:38 +02:00
|
|
|
License: BSD 3-clause (or similar) ; GPL v2 only ; Other uncritical OpenSource License
|
2008-01-15 10:35:48 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: OpenGL Extension Wrangler Library
|
|
|
|
|
|
|
|
%description -n libGLEW1_5
|
|
|
|
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
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Milan Ikits
|
|
|
|
Marcelo Magallon
|
|
|
|
|
|
|
|
%package devel
|
2009-08-07 16:42:38 +02:00
|
|
|
License: BSD 3-clause (or similar) ; GPL v2 only ; Other uncritical OpenSource License
|
2007-07-21 04:31:11 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: OpenGL Extension Wrangler Library
|
|
|
|
Requires: %{name} = %{version} Mesa-devel
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Milan Ikits
|
|
|
|
Marcelo Magallon
|
|
|
|
|
|
|
|
%prep
|
2009-02-26 16:55:05 +01:00
|
|
|
%setup -q -n %{name}
|
2008-01-15 10:35:48 +01:00
|
|
|
chmod -x doc/glew.txt
|
2009-08-07 16:42:38 +02:00
|
|
|
for FILE in config/* *Makefile* */*Makefile* ; do
|
|
|
|
tr -d '\r' <$FILE >$FILE~
|
|
|
|
cat $FILE~ >$FILE
|
|
|
|
rm $FILE~
|
|
|
|
done
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%build
|
2008-01-15 10:35:48 +01:00
|
|
|
make %{?jobs:-j%jobs} POPT="$RPM_OPT_FLAGS" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%install
|
2008-01-15 10:35:48 +01:00
|
|
|
ln -s /bin/true strip
|
|
|
|
export PATH=$PWD:$PATH
|
|
|
|
make GLEW_DEST=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true install
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
|
2009-02-26 16:55:05 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.*a
|
2007-07-21 04:31:11 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-01-15 10:35:48 +01:00
|
|
|
%post -n libGLEW1_5 -p /sbin/ldconfig
|
2007-07-21 04:31:11 +02:00
|
|
|
|
2008-01-15 10:35:48 +01:00
|
|
|
%postun -n libGLEW1_5 -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
|
|
|
|
|
|
|
%files -n libGLEW1_5
|
|
|
|
%defattr(-,root,root)
|
2007-07-21 04:31:11 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/GL/*.h
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%changelog
|