glew/glew.spec

88 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package glew (Version 1.4.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: glew
BuildRequires: Mesa-devel
URL: http://glew.sourceforge.net/
License: BSD 3-Clause, GPL v2 only
Group: System/Libraries
Summary: OpenGL Extension Wrangler Library
Version: 1.4.0
Release: 1
Source: %{name}-%{version}-src.tar.bz2
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.
Authors:
--------
Milan Ikits
Marcelo Magallon
%package devel
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
%setup -n %{name}
%build
make %{?jobs:-j%jobs} POPT="$RPM_OPT_FLAGS" LIBDIR=%{_libdir} LDFLAGS.EXTRA=
%install
make GLEW_DEST=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} LDFLAGS.EXTRA= install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc doc/*
%{_bindir}/*info
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/GL/*.h
%{_libdir}/*.*a
%{_libdir}/*.so
%changelog
* Thu Jul 12 2007 - sbrabec@suse.cz
- New SuSE package, version 1.4.0.