Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2
glfw
glfw.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glfw.spec of Package glfw
# # spec file for package glfw # # Copyright (c) 2013 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: glfw Version: 2.7.6 Release: 0 Summary: Portable framework for OpenGL application development License: Zlib Group: System/Libraries %define soname 2 Url: http://glfw.sourceforge.net/ Source: http://prdownloads.sourceforge.net/glfw/glfw-%{version}.tar.bz2 BuildRequires: pkg-config BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(xrandr) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description GLFW is a free, Open Source, portable framework for OpenGL application development. In short, it is a single library providing a powerful, portable API for otherwise operating system specific tasks such as opening an OpenGL window, and reading keyboard, time, mouse and joystick input. %package -n libglfw%{soname} Summary: Portable framework for OpenGL application development Group: System/Libraries %description -n libglfw%{soname} GLFW is a free, Open Source, portable framework for OpenGL application development. In short, it is a single library providing a powerful, portable API for otherwise operating system specific tasks such as opening an OpenGL window, and reading keyboard, time, mouse and joystick input. %package -n libglfw-devel Summary: Portable framework for OpenGL application development Group: Development/Libraries/C and C++ Requires: libglfw%{soname} = %{version} %description -n libglfw-devel GLFW is a free, Open Source, portable framework for OpenGL application development. In short, it is a single library providing a powerful, portable API for otherwise operating system specific tasks such as opening an OpenGL window, and reading keyboard, time, mouse and joystick input. %package -n libglfw-devel-static Summary: Portable framework for OpenGL application development Group: Development/Libraries/C and C++ Requires: libglfw-devel = %{version} Provides: libglfw = %{version} Obsoletes: libglfw < %{version} %description -n libglfw-devel-static GLFW is a free, Open Source, portable framework for OpenGL application development. In short, it is a single library providing a powerful, portable API for otherwise operating system specific tasks such as opening an OpenGL window, and reading keyboard, time, mouse and joystick input. %prep %setup -q %build CFLAGS="%{optflags}" \ sh ./compile.sh pushd lib/x11 make %{?_smp_mflags} -f Makefile.x11 \ PREFIX="%{_prefix}" \ libglfw.a \ libglfw.so \ libglfw.pc popd %install install -d %{buildroot}%{_libdir} install -d %{buildroot}%{_includedir}/GL install -m 644 lib/x11/libglfw.a %{buildroot}%{_libdir} install -Dm 644 lib/x11/libglfw.pc %{buildroot}%{_libdir}/pkgconfig/libglfw.pc install -m 644 include/GL/* %{buildroot}/%{_includedir}/GL install -D -m0755 lib/x11/libglfw.so "%{buildroot}%{_libdir}/libglfw.so.%{version}" ln -s libglfw.so.%{version} "%{buildroot}%{_libdir}/libglfw.so.%{soname}" ln -s libglfw.so.%{version} "%{buildroot}%{_libdir}/libglfw.so" %post -n libglfw%{soname} -p /sbin/ldconfig %postun -n libglfw%{soname} -p /sbin/ldconfig %files -n libglfw%{soname} %defattr(-,root,root) %doc COPYING.txt %{_libdir}/libglfw.so.* %files -n libglfw-devel %defattr(-,root,root) %doc readme.html %{_includedir}/GL/glfw.h %{_libdir}/libglfw.so %{_libdir}/pkgconfig/libglfw.pc %files -n libglfw-devel-static %defattr(-,root,root) %{_libdir}/libglfw.a %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor