libglew/libglew.spec

108 lines
3.6 KiB
RPMSpec

Name: libglew
Version: 2.1.0
Release: 1mamba
Summary: The OpenGL Extension Wrangler Library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://glew.sourceforge.net/
Source: http://downloads.sourceforge.net/glew/%{version}/glew-%{version}.tgz
Patch0: %{name}-1.5.1-makefile.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libX11-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 \
PKGDIR=%{_libdir}/pkgconfig \
BINDIR=%{_bindir} LIBDIR=%{_libdir} INCDIR=%{_includedir}/GL
%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.md
%changelog
* Fri Aug 04 2017 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist
* Mon Aug 08 2016 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Mon Jan 25 2016 Automatic Build System <autodist@mambasoft.it> 1.13.0-1mamba
- automatic update by autodist
* Fri Feb 06 2015 Automatic Build System <autodist@mambasoft.it> 1.12.0-1mamba
- automatic update by autodist
* Wed Aug 20 2014 Automatic Build System <autodist@mambasoft.it> 1.11.0-1mamba
- automatic version update by autodist
* 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