This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
libglew110/libglew110.spec

92 lines
3.1 KiB
RPMSpec

Name: libglew110
Version: 1.10.0
Release: 2mamba
Summary: The OpenGL Extension Wrangler Library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://glew.sourceforge.net/
Source: http://downloads.sourceforge.net/glew/%{version}/glew-%{version}.tgz
Patch0: libglew-1.5.1-makefile.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libGLU-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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.
GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%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.
GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.
This package contains static libraries and header files need for development.
%prep
%setup -q -n glew-%{version}
#%patch0 -p1
sed -i -e 's/\r//g' config/config.guess
%build
%make CFLAGS.EXTRA="$RPM_OPT_FLAGS" CC=%{_host}-gcc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_libdir}/pkgconfig/
%makeinstall GLEW_DEST="%{buildroot}%{_prefix}" \
bindir=%{_bindir} libdir=%{_libdir} includedir=%{_includedir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libGLEW.so.*
%doc LICENSE.txt
%files devel
%defattr(-,root,root)
%{_includedir}/GL/*.h
%{_libdir}/libGLEW.a
%{_libdir}/libGLEW.so
%{_libdir}/pkgconfig/glew.pc
%doc README.txt
%changelog
* Fri Jan 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.0-2mamba
- legacy package
* Wed Jul 24 2013 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic update by autodist
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic version update by autodist
* Thu Jun 03 2010 Automatic Build System <autodist@mambasoft.it> 1.5.4-1mamba
- update to 1.5.4
* Wed Jun 03 2009 Davide Madrisan <davide.madrisan@gmail.com> 1.5.1-2mamba
- fixed specfile
* Sat Jan 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.1-1mamba
- automatic update by autodist
* Fri Aug 15 2008 gil <puntogil@libero.it> 1.5.0-1mamba
- package created by autospec