glew/glew.spec

105 lines
3.2 KiB
RPMSpec

#
# spec file for package glew
#
# Copyright (c) 2012 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.7.0.git20120216.1819
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: %name.tar.bz2
Source1: baselibs.conf
Patch: 0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2
BuildRequires: Mesa-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)
Requires: libGLEW1_7 >= %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_7
Summary: OpenGL Extension Wrangler Library
Group: System/Libraries
%description -n libGLEW1_7
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: %{name} = %{version}
Requires: Mesa-devel
Requires: pkgconfig(glu)
%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 -n %name
%patch -p1
%build
make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=
%install
export PATH=$PWD:$PATH
make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} install.all
chmod +x %{buildroot}%{_libdir}/*.so.*
%{__rm} -f %{buildroot}%{_libdir}/*.*a
%clean
rm -rf %{buildroot}
%post -n libGLEW1_7 -p /sbin/ldconfig
%postun -n libGLEW1_7 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc doc/*
%{_bindir}/*info
%files -n libGLEW1_7
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/GL/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/glew*.pc
%changelog