glew/glew.spec
Takashi Iwai bd9b223af0 Accepting request 798327 from home:alois:branches:multimedia:libs
- Update to version 2.2.0
  Bug fixes:
  * GL_EXT_semaphore constants
  * Some const pointer fixups in OpenGL API
  * Correction for GLEW_VERSION_4_5
  New extensions:
  * GL_AMD_framebuffer_multisample_advanced
  * GL_AMD_gpu_shader_half_float_fetch
  * GL_AMD_shader_image_load_store_lod
  * GL_ARM_texture_unnormalized_coordinates
  * GL_DMP_program_binary
  * GL_DMP_shader_binary
  * GL_EXT_EGL_image_external_wrap_modes
  * GL_EXT_EGL_image_storage
  * GL_EXT_EGL_sync
  * GL_EXT_clip_control
  * GL_EXT_depth_clamp
  * GL_EXT_disjoint_timer_query
  * GL_EXT_draw_transform_feedback
  * GL_EXT_multiview_tessellation_geometry_shader
  * GL_EXT_multiview_texture_multisample
  * GL_EXT_multiview_timer_query
  * GL_EXT_occlusion_query_boolean
  * GL_EXT_primitive_bounding_box
  * GL_EXT_protected_textures
  * GL_EXT_robustness
  * GL_EXT_shader_framebuffer_fetch_non_coherent
  * GL_EXT_static_vertex_array
  * GL_EXT_tessellation_point_size
  * GL_EXT_tessellation_shader
  * GL_EXT_texture_border_clamp
  * GL_EXT_texture_buffer
  * GL_EXT_texture_compression_s3tc_srgb
  * GL_EXT_texture_format_sRGB_override
  * GL_EXT_texture_mirror_clamp_to_edge
  * GL_EXT_texture_query_lod
  * GL_EXT_texture_shadow_lod
  * GL_FJ_shader_binary_GCCSO
  * GL_IMG_bindless_texture
  * GL_IMG_framebuffer_downsample
  * GL_IMG_multisampled_render_to_texture
  * GL_IMG_program_binary
  * GL_IMG_read_format
  * GL_IMG_shader_binary
  * GL_IMG_texture_compression_pvrtc
  * GL_IMG_texture_compression_pvrtc2
  * GL_IMG_texture_env_enhanced_fixed_function
  * GL_IMG_texture_filter_cubic
  * GL_INTEL_blackhole_render
  * GL_INTEL_shader_integer_functions2
  * GL_KHR_shader_subgroup
  * GL_MESA_framebuffer_flip_y
  * GL_MESA_program_binary_formats
  * GL_MESA_tile_raster_order
  * GL_NVX_gpu_multicast2
  * GL_NVX_progress_fence
  * GL_NV_compute_shader_derivatives
  * GL_NV_conservative_raster_pre_snap
  * GL_NV_conservative_raster_underestimation
  * GL_NV_depth_nonlinear
  * GL_NV_fragment_shader_barycentric
  * GL_NV_memory_attachment
  * GL_NV_mesh_shader
  * GL_NV_query_resource_tag
  * GL_NV_read_buffer
  * GL_NV_read_buffer_front
  * GL_NV_representative_fragment_test
  * GL_NV_scissor_exclusive
  * GL_NV_shader_subgroup_partitioned
  * GL_NV_shader_texture_footprint
  * GL_NV_shading_rate_image
  * GL_NV_vdpau_interop2
  * GL_OES_EGL_image
  * GL_OES_EGL_image_external
  * GL_OES_EGL_image_external_essl3
  * GL_OES_blend_equation_separate
  * GL_OES_blend_func_separate
  * GL_OES_blend_subtract
  * GL_OES_compressed_ETC1_RGB8_texture
  * GL_OES_compressed_paletted_texture
  * GL_OES_copy_image
  * GL_OES_depth24
  * GL_OES_depth32
  * GL_OES_depth_texture
  * GL_OES_depth_texture_cube_map
  * GL_OES_draw_buffers_indexed
  * GL_OES_draw_texture
  * GL_OES_element_index_uint
  * GL_OES_extended_matrix_palette
  * GL_OES_fbo_render_mipmap
  * GL_OES_fragment_precision_high
  * GL_OES_framebuffer_object
  * GL_OES_geometry_point_size
  * GL_OES_geometry_shader
  * GL_OES_get_program_binary
  * GL_OES_gpu_shader5
  * GL_OES_mapbuffer
  * GL_OES_matrix_get
  * GL_OES_matrix_palette
  * GL_OES_packed_depth_stencil
  * GL_OES_point_size_array
  * GL_OES_point_sprite
  * GL_OES_read_format
  * GL_OES_required_internalformat
  * GL_OES_rgb8_rgba8
  * GL_OES_sample_shading
  * GL_OES_sample_variables
  * GL_OES_shader_image_atomic
  * GL_OES_shader_io_blocks
  * GL_OES_shader_multisample_interpolation
  * GL_OES_single_precision
  * GL_OES_standard_derivatives
  * GL_OES_stencil1
  * GL_OES_stencil4
  * GL_OES_stencil8
  * GL_OES_surfaceless_context
  * GL_OES_tessellation_point_size
  * GL_OES_tessellation_shader
  * GL_OES_texture_3D
  * GL_OES_texture_border_clamp
  * GL_OES_texture_buffer
  * GL_OES_texture_compression_astc
  * GL_OES_texture_cube_map
  * GL_OES_texture_cube_map_array
  * GL_OES_texture_env_crossbar
  * GL_OES_texture_mirrored_repeat
  * GL_OES_texture_npot
  * GL_OES_texture_stencil8
  * GL_OES_texture_storage_multisample_2d_array
  * GL_OES_texture_view
  * GL_OES_vertex_array_object
  * GL_OES_vertex_half_float
  * GL_OES_vertex_type_10_10_10_2
  * GL_QCOM_YUV_texture_gather
  * GL_QCOM_shader_framebuffer_fetch_rate
  * GL_QCOM_texture_foveated
  * GL_QCOM_texture_foveated_subsampled_layout
  * GL_VIV_shader_binary
  * EGL_ANDROID_GLES_layers
  * EGL_ANDROID_get_frame_timestamps
  * EGL_ANDROID_get_native_client_buffer
  * EGL_ARM_image_format
  * EGL_EXT_bind_to_front
  * EGL_EXT_client_sync
  * EGL_EXT_compositor
  * EGL_EXT_gl_colorspace_display_p3
  * EGL_EXT_gl_colorspace_display_p3_linear
  * EGL_EXT_gl_colorspace_display_p3_passthrough
  * EGL_EXT_gl_colorspace_scrgb
  * EGL_EXT_image_gl_colorspace
  * EGL_EXT_image_implicit_sync_control
  * EGL_EXT_surface_CTA861_3_metadata
  * EGL_EXT_sync_reuse
  * EGL_KHR_display_reference
  * EGL_MESA_query_driver
  * EGL_NV_context_priority_realtime
  * EGL_NV_quadruple_buffer
  * EGL_NV_stream_dma
  * EGL_NV_stream_flush
  * EGL_NV_stream_origin
  * EGL_NV_triple_buffer
  * EGL_WL_bind_wayland_display
  * EGL_WL_create_wayland_buffer_from_image
  * GLX_EXT_context_priority
  * GLX_EXT_no_config_context
  * GLX_NV_multigpu_context
  * WGL_NV_multigpu_context
- New so_ver
- New source URL
- Build executables with PIE
- Spec cleanup

OBS-URL: https://build.opensuse.org/request/show/798327
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=56
2020-04-30 17:24:43 +00:00

102 lines
3.4 KiB
RPMSpec

#
# spec file for package glew
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
# If you change so_ver, then you have to update baselibs.conf as well.
%define so_ver 2_2
Name: glew
Version: 2.2.0
Release: 0
Summary: OpenGL Extension Wrangler Library
# was http://glew.sourceforge.net/
License: BSD-3-Clause AND GPL-2.0-or-later AND MIT
Group: Development/Libraries/C and C++
URL: https://github.com/nigels-com/glew
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
Source1: baselibs.conf
Source2: %{name}.rpmlintrc
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)
%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 libGLEW%{so_ver}
Summary: OpenGL Extension Wrangler Library
Group: System/Libraries
%description -n libGLEW%{so_ver}
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: libGLEW%{so_ver} = %{version}
Requires: pkgconfig(x11)
Requires: pkgconfig(xproto)
# Don't require GLU, because there is GLEW_NO_GLU option
Recommends: 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
%autosetup
%build
%make_build POPT="%{optflags} -fPIE -pie" GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=
%install
make DESTDIR=%{buildroot} GLEW_DEST=%{_prefix} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig install.all
chmod +x %{buildroot}%{_libdir}/*.so.*
rm %{buildroot}%{_libdir}/*.a
%post -n libGLEW%{so_ver} -p /sbin/ldconfig
%postun -n libGLEW%{so_ver} -p /sbin/ldconfig
%files
%license LICENSE.txt
%doc doc/*
%{_bindir}/glewinfo
%{_bindir}/visualinfo
%files -n libGLEW%{so_ver}
%{_libdir}/libGLEW.so.*
%files devel
%{_includedir}/GL/
%{_libdir}/libGLEW.so
%{_libdir}/pkgconfig/glew.pc
%changelog