glfw/glfw.spec

78 lines
2.1 KiB
RPMSpec

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 3.3.6-1mamba
- package created using the webbuild interface