From b3087157fc33e554964fa05f87d02726b9cd7254 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:06:38 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.3.6-1mamba;Wed Feb 02 2022] --- README.md | 2 ++ glfw.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 glfw.spec diff --git a/README.md b/README.md index e6fadfc..f8b8698 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # glfw +A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input. + diff --git a/glfw.spec b/glfw.spec new file mode 100644 index 0000000..9036bdf --- /dev/null +++ b/glfw.spec @@ -0,0 +1,77 @@ +Name: glfw +Version: 3.3.6 +Release: 1mamba +Summary: A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.glfw.org/ +Source: https://github.com/glfw/glfw.git/%{version}/glfw-%{version}.tar.bz2 +License: zlib/libpng +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input. + +%package -n lib%{name} +Group: System/Libraries +Summary: A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input + +%description -n lib%{name} +A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input. +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libglfw.so.* +%doc LICENSE.md + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/GLFW +%{_includedir}/GLFW/glfw3*.h +%dir %{_libdir}/cmake/glfw3 +%{_libdir}/cmake/glfw3/glfw3*.cmake +%{_libdir}/libglfw.so +%{_libdir}/pkgconfig/glfw3.pc +%doc README.md + +%changelog +* Wed Feb 02 2022 Silvan Calarco 3.3.6-1mamba +- package created using the webbuild interface