summaryrefslogtreecommitdiff
path: root/glfw-devel.spec
blob: fd324ef5fcce042918cf57b20880b2eded9bdbd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%global commit 92dcf4ce74f2e2554a98fea09be7c705c17daa5a

Name:           glfw-devel
Version:        3.6.0
Release:        1%{?dist}
Summary:        Development files and shared library for GLFW

License:        Zlib
URL:            https://www.glfw.org/
Source0:        https://github.com/glfw/glfw/archive/%{commit}.tar.gz#/glfw-devel-%{version}.tar.gz

Group:          Development/Libraries
Packager:       openEuler Builder <builder@openeuler.org>

BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  libX11-devel
BuildRequires:  libXext-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXinerama-devel
BuildRequires:  libXcursor-devel
BuildRequires:  libXi-devel
BuildRequires:  xorg-x11-proto-devel
BuildRequires:  wayland-devel
BuildRequires:  libxkbcommon-devel

%description
GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and
Vulkan application development.  It provides a simple, platform-independent
API for creating windows, contexts and surfaces, reading input, handling
events, etc.

This package provides the GLFW shared library together with its development
files (headers, CMake package files and pkgconfig file).  On Linux, GLFW is
built with both the X11 and the Wayland backends enabled.

# topdir: glfw-devel-3.6.0 (produced by the packaging transform; equals name-version)

%prep
%autosetup -n %{name}-%{version}

%build
%cmake \
    -DBUILD_SHARED_LIBS=ON \
    -DGLFW_BUILD_EXAMPLES=OFF \
    -DGLFW_BUILD_TESTS=OFF \
    -DGLFW_BUILD_DOCS=OFF \
    -DGLFW_BUILD_X11=ON \
    -DGLFW_BUILD_WAYLAND=ON
%cmake_build

%install
%cmake_install

%files
%license LICENSE.md
%doc README.md
%{_libdir}/libglfw.so
%{_libdir}/libglfw.so.3
%{_libdir}/libglfw.so.3.6
%{_includedir}/GLFW/
%{_libdir}/cmake/glfw3/
%{_libdir}/pkgconfig/glfw3.pc

%changelog
* Tue Sep 22 2026 openEuler Builder <builder@openeuler.org> - 3.6.0-1
- Initial package