64e6f4495e
Copy from multimedia:libs/glew based on submit request 47642 from user vuntz OBS-URL: https://build.opensuse.org/request/show/47642 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glew?expand=0&rev=11
102 lines
3.2 KiB
RPMSpec
102 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package glew (Version 1.5.6)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products 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: glew
|
|
Version: 1.5.6
|
|
Release: 1
|
|
License: BSD3c(or similar) ; GPLv2 ; Other uncritical OpenSource License
|
|
Summary: OpenGL Extension Wrangler Library
|
|
Url: http://glew.sourceforge.net/
|
|
Group: System/Libraries
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRequires: Mesa-devel
|
|
BuildRequires: pkg-config
|
|
Requires: libGLEW1_5 >= %{version}
|
|
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 libGLEW1_5
|
|
License: BSD3c(or similar) ; GPLv2 ; Other uncritical OpenSource License
|
|
Summary: OpenGL Extension Wrangler Library
|
|
Group: System/Libraries
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
License: BSD3c(or similar) ; GPLv2 ; Other uncritical OpenSource License
|
|
Summary: OpenGL Extension Wrangler Library
|
|
Group: System/Libraries
|
|
Requires: %{name} = %{version}
|
|
Requires: 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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true
|
|
|
|
%install
|
|
ln -s /bin/true strip
|
|
export PATH=$PWD:$PATH
|
|
make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true install
|
|
chmod +x %{buildroot}%{_libdir}/*.so.*
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.*a
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libGLEW1_5 -p /sbin/ldconfig
|
|
|
|
%postun -n libGLEW1_5 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc doc/*
|
|
%{_bindir}/*info
|
|
|
|
%files -n libGLEW1_5
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/GL/*.h
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/glew.pc
|
|
|
|
%changelog
|